Advertising (This ad goes away for registered users. You can Login or Register)

[Tutorial] Python PSP Programming

Forum rules
Forum rule Nº 15 is strictly enforced in this subforum.
User avatar
alevisawesom
Posts: 106
Joined: Sun Mar 16, 2014 5:34 pm

Re: [Tutorial] Python PSP Programming

Post by alevisawesom » Fri Apr 04, 2014 12:16 am

Code: Select all

-------------- Python-PSP started Thu Apr  3 20:12:15 2014

Free memory: 719872
PyPSP running in: ms0:/PSP/GAME/Hello
Could not find platform independent libraries <prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Search path: python.zip;ms0:/lib/python21.zip;ms0:/python/site-packages;ms0:/python

Traceback (most recent call last):
  File "script.py", line 2, in <module>
    font = psp2d.font("font.png")
AttributeError: 'module' object has no attribute 'font'
--------------------------------------------------------------------------------
So... it appears that there's something wrong with the libs or it's having trouble finding font.png. Do you have anything? Thanks in advance.
Advertising
Please refer to me as arcticsn0w, not alevisawesom.

PSP 2001 - 6.61 ME-2.3 (main)
PS2 Slim - FMCB
iPod touch 5 - 8.1.1 jailbroken
iPad 2 - 8.1.1 jailbroken
OG Pebble - 2.8.1 PebbleBits
Android Tab - 4.2.2 rooted
Wii - 4.3, HBC
2010 MBP - OS X 10.10

User avatar
Joel16
Posts: 899
Joined: Wed Oct 12, 2011 8:47 pm

Re: [Tutorial] Python PSP Programming

Post by Joel16 » Fri Apr 04, 2014 12:27 am

well are you sure the 'font.png' is in the path specified?
Advertising
"Forever in darkness, a guardian devil."

User avatar
alevisawesom
Posts: 106
Joined: Sun Mar 16, 2014 5:34 pm

Re: [Tutorial] Python PSP Programming

Post by alevisawesom » Fri Apr 04, 2014 12:48 am

There is no path specified.
Please refer to me as arcticsn0w, not alevisawesom.

PSP 2001 - 6.61 ME-2.3 (main)
PS2 Slim - FMCB
iPod touch 5 - 8.1.1 jailbroken
iPad 2 - 8.1.1 jailbroken
OG Pebble - 2.8.1 PebbleBits
Android Tab - 4.2.2 rooted
Wii - 4.3, HBC
2010 MBP - OS X 10.10

User avatar
Joel16
Posts: 899
Joined: Wed Oct 12, 2011 8:47 pm

Re: [Tutorial] Python PSP Programming

Post by Joel16 » Fri Apr 04, 2014 12:53 am

alevisawesom wrote:There is no path specified.
Meaning it should be in the same folder where the script is located. Correct me if I'm wrong.
"Forever in darkness, a guardian devil."

User avatar
alevisawesom
Posts: 106
Joined: Sun Mar 16, 2014 5:34 pm

Re: [Tutorial] Python PSP Programming

Post by alevisawesom » Fri Apr 04, 2014 10:34 pm

Yes, it is in that folder. It might be an error in where the lib is installed... or I might need to upgrade to Python 3.
Please refer to me as arcticsn0w, not alevisawesom.

PSP 2001 - 6.61 ME-2.3 (main)
PS2 Slim - FMCB
iPod touch 5 - 8.1.1 jailbroken
iPad 2 - 8.1.1 jailbroken
OG Pebble - 2.8.1 PebbleBits
Android Tab - 4.2.2 rooted
Wii - 4.3, HBC
2010 MBP - OS X 10.10

User avatar
hgoel0974
Retired Mod
Posts: 2154
Joined: Mon Jul 23, 2012 11:42 pm
Location: Maia, Pleiades Nebula

Re: [Tutorial] Python PSP Programming

Post by hgoel0974 » Fri Apr 04, 2014 10:57 pm

do you have python.zip in the same folder?
"If the truth is a cruel mistress, then a lie must be a nice girl"

User avatar
alevisawesom
Posts: 106
Joined: Sun Mar 16, 2014 5:34 pm

Re: [Tutorial] Python PSP Programming

Post by alevisawesom » Sat Apr 05, 2014 12:10 am

Yes.
Please refer to me as arcticsn0w, not alevisawesom.

PSP 2001 - 6.61 ME-2.3 (main)
PS2 Slim - FMCB
iPod touch 5 - 8.1.1 jailbroken
iPad 2 - 8.1.1 jailbroken
OG Pebble - 2.8.1 PebbleBits
Android Tab - 4.2.2 rooted
Wii - 4.3, HBC
2010 MBP - OS X 10.10

Wizardinblack
Posts: 38
Joined: Wed Sep 26, 2012 7:08 am

Re: [Tutorial] Python PSP Programming

Post by Wizardinblack » Fri Jun 20, 2014 12:04 am

This is a pretty cool tutorial, even though i am not a very big fan of python. are there any ways you know of that would allow me to write code for psp using c++?
Lenovo ideapad Y510p (Steam: DemonLung0x1a4)
- 2x GeForce GT755m (SLI)

(PSN: WizardinBlack71)
PS Vita 3g
PS4
PS3

User avatar
Omega2058
Developer
Posts: 246
Joined: Tue Sep 28, 2010 4:27 am
Contact:

Re: [Tutorial] Python PSP Programming

Post by Omega2058 » Fri Jun 20, 2014 12:34 am

Wizardinblack wrote:This is a pretty cool tutorial, even though i am not a very big fan of python. are there any ways you know of that would allow me to write code for psp using c++?
If you look in the PSPSDK, there should be some C++ examples that you can go off of. There's also various tutorials online here and there as well.

User avatar
noname120
Developer
Posts: 775
Joined: Thu Oct 07, 2010 4:29 pm

Re: [Tutorial] Python PSP Programming

Post by noname120 » Fri Jun 20, 2014 7:26 am

Wizardinblack wrote:This is a pretty cool tutorial, even though i am not a very big fan of python. are there any ways you know of that would allow me to write code for psp using c++?
And here is a C library for the PSP, you can of course use it with C++:
https://github.com/dogo/oslibmodv2/
Funny stuff
<yifanlu> I enjoy being loud and obnoxious
<yifanlu> rooting an android is like getting a hooker pregnant
<xerpi> I sometimes think I should leave all this stressing **** and be a farmer instead

Post Reply

Return to “Programming and Security”