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.
alevisawesom
Posts: 106
Joined: Sun Mar 16, 2014 5:34 pm

Re: [Tutorial] Python PSP Programming

Post by alevisawesom »

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
Joel16
Posts: 914
Joined: Wed Oct 12, 2011 8:47 pm

Re: [Tutorial] Python PSP Programming

Post by Joel16 »

well are you sure the 'font.png' is in the path specified?
Advertising
"Forever in darkness, a guardian devil."
alevisawesom
Posts: 106
Joined: Sun Mar 16, 2014 5:34 pm

Re: [Tutorial] Python PSP Programming

Post by alevisawesom »

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
Joel16
Posts: 914
Joined: Wed Oct 12, 2011 8:47 pm

Re: [Tutorial] Python PSP Programming

Post by Joel16 »

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."
alevisawesom
Posts: 106
Joined: Sun Mar 16, 2014 5:34 pm

Re: [Tutorial] Python PSP Programming

Post by alevisawesom »

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
hgoel0974
Retired Mod
Posts: 2155
Joined: Mon Jul 23, 2012 11:42 pm
Location: New York

Re: [Tutorial] Python PSP Programming

Post by hgoel0974 »

do you have python.zip in the same folder?
"If the truth is a cruel mistress, then a lie must be a nice girl"
alevisawesom
Posts: 106
Joined: Sun Mar 16, 2014 5:34 pm

Re: [Tutorial] Python PSP Programming

Post by alevisawesom »

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 »

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
Omega2058
Developer
Posts: 246
Joined: Tue Sep 28, 2010 4:27 am
Contact:

Re: [Tutorial] Python PSP Programming

Post by Omega2058 »

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.
noname120
Developer
Posts: 777
Joined: Thu Oct 07, 2010 4:29 pm

Re: [Tutorial] Python PSP Programming

Post by noname120 »

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
Locked

Return to “Programming and Security”