Forum rules: Forum rule Nº 15 is strictly enforced in this subforum.
#343649 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
#343651 by Joel16
Fri Apr 04, 2014 12:27 am
well are you sure the 'font.png' is in the path specified?
Advertising
#343653 by alevisawesom
Fri Apr 04, 2014 12:48 am
There is no path specified.
#343656 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.
#343732 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.
#343753 by alevisawesom
Sat Apr 05, 2014 12:10 am
Yes.
#352709 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++?
#352712 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.
#352744 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/

Who is online

Users browsing this forum: No registered users and 2 guests