Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I had a similar error message after following similar steps. I suspect it's because I tried to install the distribute module, and it tried to install a new version of setuptools which didn't quite work because it failed to correctly override the Mac OS X supplied setuptools. But that's only a suspicion.</p> <p>I fixed my problem by doing the following. I found that the directory <code>/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python</code> had 4 files with .OLD in the name. When I did a compare with similarly named files without the .OLD from when things worked (via Time Machine) I found that they were the same except for the name. So I did the following renames:</p> <blockquote> <p>setuptools.OLD.1305936263.57 <strong>-></strong> setuptools<br /> setuptools-0.6c9-py2.6.egg-info.OLD.1305936263.57 <strong>-></strong> setuptools-0.6c9-py2.6.egg-info<br /> pkg_resources.py.OLD.1305936263.57 <strong>-></strong> pkg_resources<br /> site.py.OLD.1305936263.59 <strong>-></strong> site.py</p> </blockquote> <p>I had to use the command line and <code>sudo mv</code> because the files are owned by root. For example: <code>sudo mv setuptools.OLD.1305936263.57 setuptools</code>. You'll have to enter your password.</p> <p>The other thing I did was clean the <code>/Library/Python/2.6/site-packages</code> directory. I used Time Machine to set it back to its pre-messed up state. If you don't have Time Machine, then you should be able to recover if you delete any files or folders beginning with distribute, easy-install, pip, pkg_resources, setuptools and site.</p> <p>If that doesn't do the trick, uninstall any modules you can from that directory. For example use <code>pip uninstall</code> if you installed modules with pip. The reason to do this is that installation can copy files into <code>usr/local/bin</code> and other places that pip will remove for you.</p> <p>Next it's time to remove any remaining modules. Rename the folder (in case there's something you want later) and make a new empty one.</p> <p>Reinstall the modules you want and with a little luck you're back in business...</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload