Compability with joblib

42 views
Skip to first unread message

Tijmen W

unread,
Nov 12, 2020, 3:17:13 AM11/12/20
to PyInstaller
Hi all,

 I have been using pyinstaller recently to transform a package of .py files t an executable with a gui, created via PySimpleGui.

The problem lies with some functions that I am using, which are based on joblib.When the .exe runss into the parallel processing command, mutiple windows pop (#cores) up and the .exe stops responding. 

I don't run into this problem when executing the files from Spyder.

Any help here would be appreciated.

Kind regards,
Tijmen Wartenberg

bwoodsend

unread,
Nov 12, 2020, 8:34:03 AM11/12/20
to PyInstaller

There’s a multiprocessing.freeze_support() which has to be called in your if __name__ == "__main__:" block. I’ve never used joblib so I don’t know if they’ve wrapped it up in their own API but it should be enough just to use the original from multiprocessing directly.

Reply all
Reply to author
Forward
0 new messages