I got the same error while I forgot to use shell=True
in the subprocess.call
.
subprocess.call('python modify_depth_images.py', shell=True)
To run an external command without interacting with it, such as one would do with
os.system()
, Use thecall()
function.import subprocess Simple command subprocess.call(['ls', '-1'], shell=True)