title: "OSError: [Errno 2] No such file or directory" while using python subprocess with command and arguments
body: <p>I am trying to run a program to make some system calls inside Python code using <code>subprocess.call()</code> which throws the following error:</p>
  <pre class="lang-none prettyprint-override"><code>Traceback (most recent call last):
        File &quot;&lt;console&gt;&quot;, line 1, in &lt;module&gt;
        File &quot;/usr/lib/python2.7/subprocess.py&quot;, line 493, in call
        return Popen(*popenargs, **kwargs).wait()
        File &quot;/usr/lib/python2.7/subprocess.py&quot;, line 679, in __init__
  errread, errwrite)
        File &quot;/usr/lib/python2.7/subprocess.py&quot;, line 1249, in _execute_child
        raise child_exception
        OSError: [Errno 2] No such file or directory
  </code></pre>
  <p>My actual Python code is as follows:</p>
  <pre><code>url = &quot;/media/videos/3cf02324-43e5-4996-bbdf-6377df448ae4.mp4&quot;
  real_path = &quot;/home/chanceapp/webapps/chanceapp/chanceapp&quot;+url
  fake_crop_path = &quot;/home/chanceapp/webapps/chanceapp/chanceapp/fake1&quot;+url
  fake_rotate_path = &quot;/home/chanceapp/webapps/chanceapp.chanceapp/fake2&quot;+url
  crop = &quot;ffmpeg -i %s -vf &quot;%(real_path)+&quot;crop=400:400:0:0 &quot;+ &quot;-strict -2 %s&quot;%(fake_crop_path)
  rotate = &quot;ffmpeg -i %s -vf &quot;%(fake_crop_path)+&quot;transpose=1 &quot;+&quot;%s&quot;%(fake_rotate_path)
  move_rotated = &quot;mv&quot;+&quot; %s&quot;%(fake_rotate_path)+&quot; %s&quot;%(real_path)
  delete_cropped = &quot;rm &quot;+&quot;%s&quot;%(fake_crop_path)
  #system calls:
  subprocess.call(crop)
  </code></pre>
  <p>Can I get some relevant advice on how to solve this?</p>