Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem executing python scripts - ImportError: No module named functools #5

Closed
oumad opened this issue Mar 2, 2018 · 1 comment
Closed

Comments

@oumad
Copy link
Owner

oumad commented Mar 2, 2018

Description :
When you execute any script that uses python as the process, it outputs this error :

Traceback (most recent call last): File "C:\Users\Mohamed\Desktop\protonio-v1.0.0-win32-x64\resources\app\src\menu\libs\python\lib\site.py", line 703, in main() File "C:\Users\Mohamed\Desktop\protonio-v1.0.0-win32-x64\resources\app\src\menu\libs\python\lib\site.py", line 692, in main aliasmbcs() File "C:\Users\Mohamed\Desktop\protonio-v1.0.0-win32-x64\resources\app\src\menu\libs\python\lib\site.py", line 515, in aliasmbcs import locale, codecs File "C:\Users\Mohamed\Desktop\protonio-v1.0.0-win32-x64\resources\app\src\menu\libs\python\lib\locale.py", line 17, in import functools ImportError: No module named functools

Steps to reproduce
Just choose a script that uses python, for example an image processing script or search and replace script, and try to execute it by hitting apply.

Cause & temporal solution
I think I didn't embed python in the app properly. So a temporal solution would be to install python v2.7 because that's where "protonio-v1.0.0-win32-x64\resources\app\src\menu\libs\python\Lib\orig-prefix.txt" is looking at.
You can also make the scripts point to your own version of python, by going to Builder (right click in tray icon, select Builder), and start typing the name of the script then select it in the dropdown list, and just change the Proton Process input to your python exe path.
You can also change this directly in the interface.json of the script instead.

@oumad
Copy link
Owner Author

oumad commented Mar 4, 2018

This issue has been fixed now. I found that python 3 is available in embedded version, so I used that instead. proton-io v1.0.1 now comes with an embedded python 3.6.

@oumad oumad closed this as completed Mar 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant