-
Small example:
I compile this code and run the exe. when clicking the button, the system popuped a series of windows and breakdown. But it runs aright on pyCharm and spyder. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This won't work with PyInstaller, because the parallel framework you are using ( Either way, what's happening is that when you press a button, the multiprocess framework attempts to spawn worker processes using your frozen executable, and with following arguments: i.e., a resource tracker process, and 10 worker processes corresponding to your jobs. But because the entry-point script in your frozen program does not explicitly handle these arguments, your A similar pattern occurs with regular So as long as similar support for |
Beta Was this translation helpful? Give feedback.
This won't work with PyInstaller, because the parallel framework you are using (
joblib
) or at least its default backend (loky
) is not supported. (It might work withmultiprocess
backend, but you will probably explicitly need to addmultiprocess.freeze_support()
...)Either way, what's happening is that when you press a button, the multiprocess framework attempts to spawn worker processes using your frozen executable, and with following arguments:
['program.exe', '--multiprocessing-fork', '1420']
['program.exe', '--multiprocessing-fork', '1516']
['program.exe', '--multiprocessing-fork', '1324']
['program.exe', '--multiprocessing-fork', '1548']
['program.exe', '-B', '-S', '-E', '-s', '-c', '…