You can get around it by explicitly setting unused pipes to 
subprocess.DEVNULL rather than letting them default to inheriting an 
invalid pipe. So if you were using:

from subprocess import run, PIPE

run(["echo", "hello"], stdout=PIPE)

you should explicitly redirect the unused stdin and stderr to NULL:

from subprocess import run, PIPE, DEVNULL

run(["echo", "hello"], stdout=PIPE, stdin=DEVNULL, stderr=DEVNULL)

-- 
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/b49ad2e8-643c-4e6c-8603-f827ce24c8f5n%40googlegroups.com.

Reply via email to