Note that there are some explanatory texts on larger screens.

plurals
  1. POPython can't locate distutils_path on Mac OSX
    primarykey
    data
    text
    <p>I've been using virtualenv + pip for python development. I'm not sure what happened, but suddenly whenever I try to run a command-line tool or import libraries, I get this error message:</p> <pre><code>Traceback (most recent call last): File "/Users/kyle/.virtualenvs/fj/bin/pip", line 4, in &lt;module&gt; import pkg_resources File "/Users/kyle/.virtualenvs/fj/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 698, in &lt;module&gt; the platform/python version defined at initialization are added. File "/Users/kyle/.virtualenvs/fj/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 701, in Environment search_path = sys.path File "/Users/kyle/.virtualenvs/fj/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 96, in get_supported_platform 'Environment', 'WorkingSet', 'ResourceManager', File "/Users/kyle/.virtualenvs/fj/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 221, in get_build_platform if provDarwin: File "/Users/kyle/.virtualenvs/fj/lib/python2.6/distutils/__init__.py", line 14, in &lt;module&gt; exec open(os.path.join(distutils_path, '__init__.py')).read() IOError: [Errno 2] No such file or directory: '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/__init__.py' </code></pre> <p>From what I can decipher, Python is trying to find <code>distutils_path</code> in the Mac OSX system version Python, <em>not</em> my virtualenv version like it should be.</p> <p>Not sure why this suddenly started happening. Maybe a recent OSX update? Another possibility is that my hard drive was about to die, so Apple gave me a new one and ran Migration Assistant. Maybe something didn't transferred across correctly?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

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