Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Stackless python on PPSSPP
#1
Hi, did someone successfull run the stackless python framework on PPSSPP ?
I tried with the EBOOT.PBP of the version 2.5.2, and a python script (that runs on the real PSP), but the script is not played.
For info, the file named "script.py" should be executed.
Reply
#2
(12-17-2021, 06:05 AM)jchome Wrote: Hi, did someone successfull run the stackless python framework on PPSSPP ?
I tried with the EBOOT.PBP of the version 2.5.2, and a python script (that runs on the real PSP), but the script is not played.
For info, the file named "script.py" should be executed.

I am wanting to get some python programs on my psp and I got the EBOOT.PBP file and other folders but I can't find such a file "script.py". Where can I find it?
Reply
#3
I am also trying to get it working, But I can't find a script.py file. Where can I find it?
Reply
#4
This homebrew python interpreter works fine:
   
althrough it's usage on emulator seems questionable considering you can use python natively on better platforms than the emulated PSP.
http://forums.ppsspp.org/showthread.php?tid=6594 - Custom PPSSPP Shaders!
http://forums.ppsspp.org/showthread.php?tid=3590&pid=117172#pid117172 - simple CE scripts to help creating CWCheats,
https://github.com/LunaMoo/PPSSPP_workarounds - CWCheat workarounds.
Reply
#5
Hi !
Thanks for your answer.

SignalRumble, here is the link for downloading: https://code.google.com/archive/p/pspsta.../downloads
I've tried StacklessPSP-2.5.2_R1.zip.

LunaMoo, How did you do this ? Have you configured PPSSPP or put special files somewhere ?
Reply
#6
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.
http://forums.ppsspp.org/showthread.php?tid=6594 - Custom PPSSPP Shaders!
http://forums.ppsspp.org/showthread.php?tid=3590&pid=117172#pid117172 - simple CE scripts to help creating CWCheats,
https://github.com/LunaMoo/PPSSPP_workarounds - CWCheat workarounds.
Reply
#7
(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
...
Reply


Forum Jump: