My python script is working fine. I already tested it manually.
The output clearly shows that Popen()an exception occurred during the call OSError: No such file or directory.
This means that the program was not found, for example,
>>> from subprocess import Popen
>>> p = Popen(["ls", "-l"])
>>> total 0
>>> p = Popen(["no-such-program-in-current-path"])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
, (shell=False ) :
>>> p = Popen("ls -l")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
, :
: Popen() startupinfo Windows. , Windows, "No such file or directory" Unix.