You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When frozen it goes into an endless loop (or if using argparse in the script, it will complain and exit). It appears that when setting the start method manually like this it will generate a semaphore tracking process and however many other processes the program creates.
You can test the patch in the latest development build: pip install --upgrade --pre --extra-index-url https://marcelotduarte.github.io/packages/ cx_Freeze
I tested the PR in Ubuntu 20.04 Python 3.10.6 but I expect that it should work from Python 3.8 to 3.12.
I need to use the forkserver (or spawn) start method in my Linux application. For example:
When running unfrozen it works fine and the processes show up as below:
When frozen it goes into an endless loop (or if using argparse in the script, it will complain and exit). It appears that when setting the start method manually like this it will generate a semaphore tracking process and however many other processes the program creates.
I can get it to run if I parse sys.argv like so:
Then it show up in the process list as:
I am not parsing the -S or -E switches here, but it seems to work.
Another option may be to bundle the standard python interpreter somehow with cx_Freeze and set the path to it with
multiprocessing.set_executable
?Has anyone come across this or know of any solutions, other than what I have above?
I am running python 3.4.3 and cx_Freeze 5.0.1 on Ubuntu.
Kind Regards,
David Anderson
The text was updated successfully, but these errors were encountered: