I am using pyinstaller(v3.2.1) to build a --onefile windows exe. I am using multiprocessing within my python (v3.5.3) script. I have implemented the below mentioned workaround for windows.
Logically, my python script does not span multiple process unless required / conditions are met and is working as expected. The issue I have is that, whenever multiple processes are involved, everything seems fine. But in case, if multiprocess is not involed, the below "Fatal: Could not execute the script" dialog box flashes for couple of seconds or more and then disappears still returning the expected results.
Is there anything I am missing that is causing the fatal error dialog to appear and disappear ? I suspect the multiprocessing.freeze()
statement right after if __name__ == __main__ :
might be causing the issue when new processes are not created!