Issue #38 wontfix

distribute_setup.py FAIL - invalid command 'easy_install' (when setuptools is installed to ~/.local)

Sridhar Ratnakumar
created an issue

Try installing Distribute via distribute_setup.py on a virtualenv created using --no-site-packages. And we get this error:

{{{ sridharr@whymac:~/distribute > bin/python distribute_setup.py Scanning installed packages Setuptools installation detected at /Users/sridharr/distribute/lib/python2.6/site-packages/setuptools-0.6c9-py2. 6.egg Egg installation Patching... Renaming /Users/sridharr/distribute/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg into /Users/sridharr/distribute/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg.OLD.1251758736.6 Patched done. Relaunching... Scanning installed packages Setuptools installation detected at /Users/sridharr/distribute/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg Egg installation Already patched. Downloading http://pypi.python.org/packages/2.6/d/distribute/distribute-0.6-py2.6.egg usage: distribute_setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: distribute_setup.py --help [cmd1 cmd2 ...] or: distribute_setup.py --help-commands or: distribute_setup.py cmd --help error: invalid command 'easy_install' }}}

Comments (7)

  1. Tarek Ziadé repo owner

    I can't reproduce, I need more information

    • Do you use the distribute_setup.py located at nightly.ziade.org ?
    • Are you trying to install from the root of the project ? using the latest source ?
  2. Tarek Ziadé repo owner

    Ok I could reproduce this problem.

    It's a Virtualenv problem : if you install virtualenv using --no-site-packages, the distributions installed using --user will be present in the path nevertheless.

    So, --no-site-packages doesn't work with user installed package.

    I will post a mail to the virtualenv ML, and mark this issue as invalid (but I will also detail this problem in the FAQ in README.txt)

  3. Rémy HUBSCHER

    I had this problem today.

    What I did is to remove the virtualenv repository then I used:

    $ sudo -s 
    # pip uninstall setuptools
    # curl http://python-distribute.org/distribute_setup.py | python
    

    Then I start again the virtualenv creation

  4. Log in to comment