title: Python subprocess.CalledProcessError: Command '['tar', '-xf', '/home//filename.tar.gz']' returned non-zero exit status 2
body: <p>I am trying to extract contents of a .tar.gz file via a python script submit. my code is</p>
  <pre><code>#extract archive file contents in home directory#
  import subprocess
  subprocess.check_call(['tar','-xf','filename.tar.gz'])
  </code></pre>
  <p>This is extracting the file in the desired location but also returning me error <code>subprocess.CalledProcessError: Command '['tar', '-xf', '/home//filename.tar.gz']' returned non-zero exit status 2</code> because of which my script stops running. Any help would be greatly appreciatd.
  Thanks,
  vsg</p>