Skip to content

How to compile pyqt5 app including parallel function with pyinstaller? #5773

Answered by rokm
hcji asked this question in Help
Discussion options

You must be logged in to vote

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 with multiprocess backend, but you will probably explicitly need to add multiprocess.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', '…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rokm
Comment options

Answer selected by hcji
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #5772 on April 26, 2021 09:49.