title: Python traceback points to non-existent file
body: <p>I'm trying to run a <code>setup.py</code> script (for <a href="http://mnemosyne-proj.org/" rel="nofollow">mnemosyne</a>).  The script fails, and I'm pretty sure I know how to fix the problem, if I could only find the file to edit.  The problem is that the traceback points to a non-existent file:</p>
  
  <pre><code>  File "build/bdist.macosx-10.5-x86_64/egg/macholib/MachOGraph.py", line 49, in locate
      loader=loader.filename)
  TypeError: dyld_find() got an unexpected keyword argument 'loader'
  </code></pre>
  
  <p>I believe that should be <code>loader_path</code>.  The problem is that <code>MachOGraph.py</code> file doesn't exist -- not anywhere in my current path, or in my anaconda distribution.  There is a <code>build/bdist.macosx-10.5-x86_64/</code> directory, but no <code>egg</code>.  There are a few <code>MachOGraph.py</code> files on my system, but none of them have that line.  Nothing under this directory contains the string <code>loader.filename</code>.</p>
  
  <p>What's going on?  How can I find that file?</p>
  
  <p>For completeness, here is the complete traceback:</p>
  
  <pre><code>Traceback (most recent call last):
    File "/Users/mike/.continuum/anaconda/lib/python2.7/site-packages/ipdb/__main__.py", line 157, in main
      pdb._runscript(mainpyfile)
    File "/Users/mike/.continuum/anaconda/lib/python2.7/pdb.py", line 1233, in _runscript
      self.run(statement)
    File "/Users/mike/.continuum/anaconda/lib/python2.7/bdb.py", line 400, in run
      exec cmd in globals, locals
    File "&lt;string&gt;", line 1, in &lt;module&gt;
    File "setup.py", line 241, in &lt;module&gt;
      app = py2app_app
    File "/Users/mike/.continuum/anaconda/lib/python2.7/distutils/core.py", line 151, in setup
      dist.run_commands()
    File "/Users/mike/.continuum/anaconda/lib/python2.7/distutils/dist.py", line 953, in run_commands
      self.run_command(cmd)
    File "/Users/mike/.continuum/anaconda/lib/python2.7/distutils/dist.py", line 972, in run_command
      cmd_obj.run()
    File "/usr/local/src/Mnemosyne-2.3.1/py2app-0.8.1-py2.7.egg/py2app/build_app.py", line 654, in run
      self._run()
    File "/usr/local/src/Mnemosyne-2.3.1/py2app-0.8.1-py2.7.egg/py2app/build_app.py", line 860, in _run
      self.run_normal()
    File "/usr/local/src/Mnemosyne-2.3.1/py2app-0.8.1-py2.7.egg/py2app/build_app.py", line 950, in run_normal
      self.create_binaries(py_files, pkgdirs, extensions, loader_files)
    File "/usr/local/src/Mnemosyne-2.3.1/py2app-0.8.1-py2.7.egg/py2app/build_app.py", line 1110, in create_binaries
      platfiles = mm.run()
    File "build/bdist.macosx-10.5-x86_64/egg/macholib/MachOStandalone.py", line 105, in run
      mm.run_file(fn)
    File "build/bdist.macosx-10.5-x86_64/egg/macholib/MachOGraph.py", line 84, in run_file
      self.scan_node(m)
    File "build/bdist.macosx-10.5-x86_64/egg/macholib/MachOGraph.py", line 110, in scan_node
      m = self.load_file(filename, caller=node)
    File "build/bdist.macosx-10.5-x86_64/egg/macholib/MachOGraph.py", line 93, in load_file
      newname = self.locate(name, loader=caller)
    File "build/bdist.macosx-10.5-x86_64/egg/macholib/MachOStandalone.py", line 23, in locate
      newname = super(FilteredMachOGraph, self).locate(filename, loader)
    File "build/bdist.macosx-10.5-x86_64/egg/macholib/MachOGraph.py", line 49, in locate
      loader=loader.filename)
  TypeError: dyld_find() got an unexpected keyword argument 'loader'
  </code></pre>