Page 5 of 6

Re: [Tutorial] Python PSP Programming

Posted: Fri Apr 04, 2014 12:16 am
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.

Re: [Tutorial] Python PSP Programming

Posted: Fri Apr 04, 2014 12:27 am
by Joel16
well are you sure the 'font.png' is in the path specified?

Re: [Tutorial] Python PSP Programming

Posted: Fri Apr 04, 2014 12:48 am
by alevisawesom
There is no path specified.

Re: [Tutorial] Python PSP Programming

Posted: Fri Apr 04, 2014 12:53 am
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.

Re: [Tutorial] Python PSP Programming

Posted: Fri Apr 04, 2014 10:34 pm
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.

Re: [Tutorial] Python PSP Programming

Posted: Fri Apr 04, 2014 10:57 pm
by hgoel0974
do you have python.zip in the same folder?

Re: [Tutorial] Python PSP Programming

Posted: Sat Apr 05, 2014 12:10 am
by alevisawesom
Yes.

Re: [Tutorial] Python PSP Programming

Posted: Fri Jun 20, 2014 12:04 am
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++?

Re: [Tutorial] Python PSP Programming

Posted: Fri Jun 20, 2014 12:34 am
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.

Re: [Tutorial] Python PSP Programming

Posted: Fri Jun 20, 2014 7:26 am
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/