subprocess.Popen([sys.executable, “-u”, “testsubprocess.py”],
A frozen application does not ship a Python interpreter. Instead sys.executable points to your EXE file which is equivalent to python testsubprocess.py so what you’re effectively running is subprocess.Popen(["python", "testsubprocess.py", "-u", "testsubprocess.py"], which will result in an infinite loop of subprocesses with every process invoking another child process. As Steve says, use the multiprocessing module and make sure you use the freeze_support() <https://docs.python.org/3/library/multiprocessing.html#multiprocessing.freeze_support> function. And for the reference, the issue with having to assign all 3 stdin, stdout, stderr is only applicable to --windowed mode and simply results in an exception of you don’t do it. -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/2b3b1dd0-b8eb-4a85-81e0-7affe7c88fden%40googlegroups.com.
