Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Stackless python on PPSSPP
12-17-2021, 06:05 AM
Post: #1
Stackless python on PPSSPP
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.
Find all posts by this user
Quote this message in a reply
12-31-2021, 05:28 PM
Post: #2
RE: Stackless python on PPSSPP
(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?
Find all posts by this user
Quote this message in a reply
12-31-2021, 05:29 PM
Post: #3
RE: Stackless python on PPSSPP
I am also trying to get it working, But I can't find a script.py file. Where can I find it?
Find all posts by this user
Quote this message in a reply
01-01-2022, 10:09 AM
Post: #4
RE: Stackless python on PPSSPP
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.
Find all posts by this user
Quote this message in a reply
02-03-2022, 11:46 AM
Post: #5
RE: Stackless python on PPSSPP
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 ?
Find all posts by this user
Quote this message in a reply
02-07-2022, 09:04 PM
Post: #6
RE: Stackless python on PPSSPP
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.
Find all posts by this user
Quote this message in a reply
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 


Forum Jump: