title: Why can't python find my file?
body: <p>So someone wrote a joke trapifier script (as in, 'Trap music') and I can't get it to work.</p>
  
  <pre><code>usage: trapifier.py [-h] [--samples [SAMPLES]] inputfile outputfile
  </code></pre>
  
  <p>Yet, despite the folder looking like this</p>
  
  <pre><code>ls -l
  total 14288
  -rwxrwxrwx   1 ________  ________  7295612 Mar  2  2008 Chicago.mp3
  -rwxr-xr-x@  1 ________  ________     1074 Apr 12 17:00 LICENSE
  -rwxr-xr-x@  1 ________  ________     2871 Apr 12 17:00 README.md
  -rwxr-xr-x@  1 ________  ________        6 Apr 12 17:00 requirements.txt
  drwxr-xr-x@ 48 ________  ________     1632 Apr 12 17:00 samples
  -rwxr-xr-x   1 ________  ________     2923 Apr 12 17:00 trapifier.py
  </code></pre>
  
  <p>This command always results in a [Errno 2] No such file or directory</p>
  
  <pre><code>./trapifier.py Chicago.mp3 Chiraq.mp3
  </code></pre>
  
  <p>or</p>
  
  <pre><code>python trapifier.py Chicago.mp3 Chiraq.mp3
  </code></pre>
  
  <p>or even</p>
  
  <pre><code>./trapifier.py /full/path/to/Chicago.mp3 Chiraq.mp3
  </code></pre>
  
  <p>What gives? I feel like there is a rookie mistake somewhere.</p>
  
  <p>The full error message by request:</p>
  
  <pre><code>    Traceback (most recent call last):
    File "./trapifier.py", line 89, in &lt;module&gt;
      overlay(parse())
    File "./trapifier.py", line 32, in parse
      base_track = pydub.AudioSegment.from_mp3(inputfile)
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pydub/audio_segment.py", line 297, in from_mp3
      return cls.from_file(file, 'mp3')
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pydub/audio_segment.py", line 284, in from_file
      subprocess.call(convertion_command, stderr=open(os.devnull))
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 493, in call
      return Popen(*popenargs, **kwargs).wait()
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 679, in     __init__
      errread, errwrite)
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1249,     in _execute_child
      raise child_exception
  OSError: [Errno 2] No such file or directory
  </code></pre>
  
  <p>Source of the script is hosted at <a href="https://github.com/japesinator/trapifier.py" rel="nofollow">https://github.com/japesinator/trapifier.py</a></p>
  
  <p>I have all the required libraries (argparse, pydub, os, random).</p>
  
  <p>First Useful Edit: It appears that pydub.AudioSegment failing to load is the culprit. However, things get stranger. In a python terminal I can do</p>
  
  <pre><code>from pydub import AudioSegment
  </code></pre>
  
  <p>but I get a no such module error when I do</p>
  
  <p>import pydub.AudioSegment</p>