Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Stackless python on PPSSPP
02-07-2022, 09:13 PM (This post was last modified: 02-07-2022 09:23 PM by jchome.)
Post: #7
RE: Stackless python on PPSSPP
(02-07-2022 09:04 PM)LunaMoo Wrote:  There's nothing special with this homebrew, I wrote many times around the forums and github how to maximize your chances to run all of the nasty PSP homebrew, ie. here:
https://github.com/hrydgard/ppsspp/issue...-552916267

In this case, if you can't even run the test demo, you probably ran it from outside of it's proper folder(which has to be under PSP/GAME directory) or simply didn't provided it with the demo script.py or named it incorrectly.

Hi LunaMoo,
Thanks for your message.

I've done more tests and here my status:
- My code runs very well in the real PSP. It's not easy to upload and test on it.
- This sample program is too small to be a real python code. There is no imports of standard libraries. With my code, the module "os" cannot be imported.... why ? I didn't found yet the solution.
- I've seen that a text file is used as log for the error. I'm trying to correct my code.

Edit: I've found the issue !!
I need to unzip the python.zip that is used in the real PSP, and set the folder in the python path, with:

import sys
# For PPSSPP
sys.path.insert(0,'.')
sys.path.insert(0,'./python')

import my_lib ## now, it will work with the '.' added
import os ## now, it will work with the './python' added
...
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Stackless python on PPSSPP - jchome - 12-17-2021, 06:05 AM
RE: Stackless python on PPSSPP - LunaMoo - 01-01-2022, 10:09 AM
RE: Stackless python on PPSSPP - jchome - 02-03-2022, 11:46 AM
RE: Stackless python on PPSSPP - LunaMoo - 02-07-2022, 09:04 PM
RE: Stackless python on PPSSPP - jchome - 02-07-2022 09:13 PM

Forum Jump: