Issue #91 wontfix

install glitch when using pip + virtualenv

Tarek Ziadé
repo owner created an issue

virtualenv (before the --distribute option got in)

{{{ $ virtualenv --no-site-packages . $ bin/easy_install pip $ bin/pip install distribute $ bin/pip install distribute Downloading/unpacking distribute Downloading distribute-0.6.8.tar.gz (390Kb): 390Kb downloaded Running setup.py egg_info for package distribute Installing collected packages: distribute Running setup.py install for distribute Before install bootstrap. Scanning installed packages Setuptools installation detected at /private/tmp/bn/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg Egg installation Patching... Renaming /private/tmp/bn/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg into /private/tmp/bn/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg.OLD.1257970643.75 Patched done. Relaunching... Traceback (most recent call last): File "<string>", line 1, in <module> NameError: name 'install' is not defined Complete output from command /private/tmp/bn/bin/python -c "import setuptools; file='/private/tmp/bn/build/distribute/setup.py'; execfile('/private/tmp/bn/build/distribute/setup.py')" install --single-version-externally-managed --record /var/folders/co/coINndRqF4aciz8l6yiqIE+++TI/-Tmp-/pip-9hmsWO-record/install-record.txt --install-headers /private/tmp/bn/lib/include: Before install bootstrap.

Scanning installed packages

Setuptools installation detected at /private/tmp/bn/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg

Egg installation

Patching...

Renaming /private/tmp/bn/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg into /private/tmp/bn/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg.OLD.1257970643.75

Patched done.

Relaunching...

Traceback (most recent call last):

File "<string>", line 1, in <module>

NameError: name 'install' is not defined


Command /private/tmp/bn/bin/python -c "import setuptools; file='/private/tmp/bn/build/distribute/setup.py'; execfile('/private/tmp/bn/build/distribute/setup.py')" install --single-version-externally-managed --record /var/folders/co/coINndRqF4aciz8l6yiqIE+++TI/-Tmp-/pip-9hmsWO-record/install-record.txt --install-headers /private/tmp/bn/lib/include failed with error code 1 Storing complete log in ./pip-log.txt }}}

Comments (9)

  1. Anonymous

    Here's a me-too; the fix for me was (without re-running virtualenv with --distribute):

    source bin/activate
    wget http://python-distribute.org/distribute_setup.py
    python distribute_setup.py
    
  2. Stéphane Travostino

    I'm using the --distribute flag when creating the virtualenv and i'm getting the same error, CentOS 5.9 with python 2.7 installed alongside default python 2.5 installation. I confirm that +anonymous workaround works for me.

    Why is this "wontfix"? I'm hitting this error when running (inside the venv)

    pip install -r requirements.txt
    

    which contains

    Django==1.5.1
    distribute==0.6.28
    [...]
    
  3. Jason R. Coombs

    Distribute is now considered deprecated and replaced by setuptools. I suggest replacing 'distribute==0.6.28' in requirements.txt with 'setuptools==1.0' or similar. The latest versions of pip (>=1.4) and setuptools (>=0.7) have better support for the unified code and upgrades and seek to obviate issues like the one encountered here.

  4. Log in to comment