-
-
Notifications
You must be signed in to change notification settings - Fork 129
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
Linux builds break PyInstaller #276
Comments
Thanks for the report. Vaguely looks this module should be present, e.g., 60d4e65. I'm not sure what's going on — I'm not particularly familiar with how PyInstaller works. |
No problem. I can try to dig deeper when I have some time. I can confirm that the Portable Python builds for x86_64 macOS and Windows don't have this problem, they work fine with PyInstaller. Seems to just be the Linux (x86_64, at least) builds. |
Tried on a fresh Ubuntu 24.04 VM using the following import multiprocessing
print("hello world") Then followed the steps in the OP to compile $ dist/main
Traceback (most recent call last):
File "PyInstaller/hooks/rthooks/pyi_rth_multiprocessing.py", line 107, in <module>
File "PyInstaller/hooks/rthooks/pyi_rth_multiprocessing.py", line 95, in _pyi_rthook
File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
File "multiprocessing/popen_forkserver.py", line 7, in <module>
File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
File "multiprocessing/forkserver.py", line 11, in <module>
File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
File "multiprocessing/connection.py", line 22, in <module>
ModuleNotFoundError: No module named '_multiprocessing'
[13284] Failed to execute script 'pyi_rth_multiprocessing' due to unhandled exception! Looks like C modules from the standard library are tripping up PyInstaller on Linux with the Portable Python builds, it's not just |
I installed the portable Python 3.12.3 build like so:
Rye downloads and uses the IndyGreg Portable Python builds
Basic case to reproduce
Create the base case file:
Run PyInstaller on the file:
Then run the compiled binary:
The expected result, using the system Python, is:
The text was updated successfully, but these errors were encountered: