Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install under virtualenv #106

Closed
woozyking opened this issue Jul 15, 2013 · 5 comments
Closed

pip install under virtualenv #106

woozyking opened this issue Jul 15, 2013 · 5 comments

Comments

@woozyking
Copy link

Virtualenv 1.9.1

Error log:

  Found existing installation: distribute 0.7.3
    Uninstalling distribute:
      Successfully uninstalled distribute
  Running setup.py install for distribute
    Before install bootstrap.
    Scanning installed packages
    Setuptools installation detected at /home/woozyking/py27/lib/python2.7/site-packages
    Non-egg installation
    Removing elements out of the way...
    Renaming /home/woozyking/py27/lib/python2.7/site-packages/setuptools-0.9.4-py2.7.egg-info into /home/woozyking/py27/lib/python2.7/site-packages/setuptools-0.9.4-py2.7.egg-info.OLD.1373919980.42
    Renaming /home/woozyking/py27/lib/python2.7/site-packages/setuptools into /home/woozyking/py27/lib/python2.7/site-packages/setuptools.OLD.1373919980.42
    Renaming /home/woozyking/py27/lib/python2.7/site-packages/pkg_resources.py into /home/woozyking/py27/lib/python2.7/site-packages/pkg_resources.py.OLD.1373919980.42
    Could not find the /home/woozyking/py27/lib/python2.7/site-packages/site.py element of the Setuptools distribution
    Patched done.
    Relaunching...
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    NameError: name 'install' is not defined
    Complete output from command /home/woozyking/py27/bin/python -c "import setuptools;__file__='/home/woozyking/py27/build/distribute/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-KD61Bg-record/install-record.txt --single-version-externally-managed --install-headers /home/woozyking/py27/include/site/python2.7:
    Before install bootstrap.

Scanning installed packages

Setuptools installation detected at /home/woozyking/py27/lib/python2.7/site-packages

Non-egg installation

Removing elements out of the way...

Renaming /home/woozyking/py27/lib/python2.7/site-packages/setuptools-0.9.4-py2.7.egg-info into /home/woozyking/py27/lib/python2.7/site-packages/setuptools-0.9.4-py2.7.egg-info.OLD.1373919980.42

Renaming /home/woozyking/py27/lib/python2.7/site-packages/setuptools into /home/woozyking/py27/lib/python2.7/site-packages/setuptools.OLD.1373919980.42

Renaming /home/woozyking/py27/lib/python2.7/site-packages/pkg_resources.py into /home/woozyking/py27/lib/python2.7/site-packages/pkg_resources.py.OLD.1373919980.42

Could not find the /home/woozyking/py27/lib/python2.7/site-packages/site.py element of the Setuptools distribution

Patched done.

Relaunching...

Traceback (most recent call last):

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

NameError: name 'install' is not defined

----------------------------------------
  Rolling back uninstall of distribute
Command /home/woozyking/py27/bin/python -c "import setuptools;__file__='/home/woozyking/py27/build/distribute/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-KD61Bg-record/install-record.txt --single-version-externally-managed --install-headers /home/woozyking/py27/include/site/python2.7 failed with error code 1 in /home/woozyking/py27/build/distribute
@woozyking
Copy link
Author

Additional info from pip freeze

(py27)woozyking@ubuntu:~$ pip freeze
argparse==1.2.1
distribute==0.7.3
wsgiref==0.1.2

@woozyking woozyking mentioned this issue Jul 15, 2013
@ijames
Copy link

ijames commented Aug 25, 2013

I'm getting the same problem but I don't know what it has to do with this module. I'm not even installing it! What a painful error! Virtualenv 1.10.1. python 2.6.6 CentOS.

@woozyking
Copy link
Author

@ijames can you try to use my pull request and see if it installs?

@ijames
Copy link

ijames commented Aug 26, 2013

Hi Runzhou,

I ended up rolling back to virtualenv 1.9 and everything seemed to work
correctly. (Turns out it was a requirement of the install I was working
on).

Thanks for the reply though.

James

On Sun, Aug 25, 2013 at 11:10 AM, Runzhou Li (Leo) <notifications@github.com

wrote:

@ijames https://github.com/ijames can you try to use my pull request
and see if it installs?


Reply to this email directly or view it on GitHubhttps://github.com/kennethreitz/httpbin/issues/106#issuecomment-23232473
.

J A M E S B E N N E T T S A X O N james@saxon.com
Biz: 310.823.0545 - Cell: 310.722.2785

@kevin1024
Copy link
Contributor

I believe this is fixed. I have recreated setup.py recently. I'm able to install httpbin under virtualenv:

$ virtualenv --version
1.11.6
$ virtualenv test
$ source test/bin/activate
$ pip install httpbin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants