subprocess random hang
Closed this issue · 3 comments
subprocess.call / subprocess.Popen().wait() and os.system() don't work properly.
Sometimes the command just hangs no response, it's not consistent.
Making manually the commands from the terminal/cmd works though
Found in this so post a function which provides a traceback but still doesn't fix the issue...
The cause may be the environment variables confusion.
When calling 'pip install xxxx' pip from local dir may conflict with pip from environment varable by making some race condition on which gets first executed (pip from the python installed or pip from the embeded python) that's way sometimes it works and sometimes it doesn't.
Will try to set/unset PATH environment variables, maybe it will work
I had no issues on python 3.6 maybe that this issue is only for 3.4
needs python 3.5 or higher!