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

Can't install ipython #295

Closed
yang opened this Issue May 31, 2011 · 7 comments

Comments

Projects
None yet
2 participants
@yang

yang commented May 31, 2011

$ virtualenv --version
1.6.1

$ virtualenv testenv
Using real prefix '/usr'
New python executable in testenv/bin/python
Installing setuptools............done.
Installing pip...............done.

$ source testenv/bin/activate

(testenv)
$ pip install --upgrade pip
Downloading/unpacking pip
 Downloading pip-1.0.1.tar.gz (104Kb): 104Kb downloaded
 Running setup.py egg_info for package pip
  warning: no files found matching '*.html' under directory 'docs'
  warning: no previously-included files matching '*.txt' found under
directory 'docs/_build'
  no previously-included directories found matching 'docs/_build/_sources'
Installing collected packages: pip
 Found existing installation: pip 1.0.1
  Uninstalling pip:
    Successfully uninstalled pip
 Running setup.py install for pip
  warning: no files found matching '*.html' under directory 'docs'
  warning: no previously-included files matching '*.txt' found under
directory 'docs/_build'
  no previously-included directories found matching 'docs/_build/_sources'
  Installing pip script to /home/yang/testenv/bin
  Installing pip-2.6 script to /home/yang/testenv/bin
Successfully installed pip
Cleaning up...

(testenv)
$ pip --version
pip 1.0.1 from /home/yang/testenv/lib/python2.6/site-packages (python 2.6)

(testenv)
$ strace -f -e trace=open pip install --log=>(xz > /tmp/log.xz) -I
ipython 3>&2 2>&1 1>&3- | xz > /tmp/trace.xz
Downloading/unpacking ipython
 Downloading ipython-0.10.2.zip (6.4Mb): 6.4Mb downloaded
 Running setup.py egg_info for package ipython
Cleaning up...

(testenv)
$ ls testenv/bin/
activate      activate.fish     easy_install      pip      python
activate.csh  activate_this.py  easy_install-2.6  pip-2.6

(testenv)
$ ls testenv/lib/python2.6/site-packages/
easy-install.pth  pip-1.0.1-py2.6.egg-info     setuptools.pth
pip               setuptools-0.6c11-py2.6.egg

Attached log.xz and trace.xz in original thread: https://groups.google.com/d/topic/python-virtualenv/je1wmqECTyQ/discussion

Carl Meyer's response:

I can duplicate this using -I, not otherwise. It appears that -I is not working as it should. Please file a bug at https://github.com/pypa/pip/issues - in the meantime, -U should be adequate as a workaround.

@pnasrat

This comment has been minimized.

Show comment
Hide comment
@pnasrat

pnasrat Jun 1, 2011

Contributor
(ve)pnasrat@dhcp-172-16-18-182:~/foo$ pip install -I ipython
Downloading/unpacking ipython
  Downloading ipython-0.10.2.zip (6.4Mb): 6.4Mb downloaded
  Running setup.py egg_info for package ipython
    Leopard libedit detected.
Installing collected packages: ipython
  Running setup.py install for ipython
    Leopard libedit detected.
    Installing iptest script to /Users/pnasrat/foo/ve/bin
    Installing ipythonx script to /Users/pnasrat/foo/ve/bin
    Installing ipcluster script to /Users/pnasrat/foo/ve/bin
    Installing ipython script to /Users/pnasrat/foo/ve/bin
    Installing pycolor script to /Users/pnasrat/foo/ve/bin
    Installing ipcontroller script to /Users/pnasrat/foo/ve/bin
    Installing ipengine script to /Users/pnasrat/foo/ve/bin
Successfully installed ipython
Cleaning up...
(ve)pnasrat@dhcp-172-16-18-182:~/foo$ ls ve/bin/
activate        easy_install-2.6    ipython         python
activate.csh        ipcluster       ipythonx        python2.6
activate.fish       ipcontroller        pip
activate_this.py    ipengine        pip-2.6
easy_install        iptest          pycolor
(ve)pnasrat@dhcp-172-16-18-182:~/foo$ pip --version
pip 1.0.1 from /Users/pnasrat/foo/ve/lib/python2.6/site-packages/pip-1.0.1-py2.6.egg (python 2.6)
Contributor

pnasrat commented Jun 1, 2011

(ve)pnasrat@dhcp-172-16-18-182:~/foo$ pip install -I ipython
Downloading/unpacking ipython
  Downloading ipython-0.10.2.zip (6.4Mb): 6.4Mb downloaded
  Running setup.py egg_info for package ipython
    Leopard libedit detected.
Installing collected packages: ipython
  Running setup.py install for ipython
    Leopard libedit detected.
    Installing iptest script to /Users/pnasrat/foo/ve/bin
    Installing ipythonx script to /Users/pnasrat/foo/ve/bin
    Installing ipcluster script to /Users/pnasrat/foo/ve/bin
    Installing ipython script to /Users/pnasrat/foo/ve/bin
    Installing pycolor script to /Users/pnasrat/foo/ve/bin
    Installing ipcontroller script to /Users/pnasrat/foo/ve/bin
    Installing ipengine script to /Users/pnasrat/foo/ve/bin
Successfully installed ipython
Cleaning up...
(ve)pnasrat@dhcp-172-16-18-182:~/foo$ ls ve/bin/
activate        easy_install-2.6    ipython         python
activate.csh        ipcluster       ipythonx        python2.6
activate.fish       ipcontroller        pip
activate_this.py    ipengine        pip-2.6
easy_install        iptest          pycolor
(ve)pnasrat@dhcp-172-16-18-182:~/foo$ pip --version
pip 1.0.1 from /Users/pnasrat/foo/ve/lib/python2.6/site-packages/pip-1.0.1-py2.6.egg (python 2.6)
@yang

This comment has been minimized.

Show comment
Hide comment
@yang

yang Jun 1, 2011

@pnasrat Dunno what to tell you. Repro'd this on two Ubuntu hosts already.

yang commented Jun 1, 2011

@pnasrat Dunno what to tell you. Repro'd this on two Ubuntu hosts already.

@pnasrat

This comment has been minimized.

Show comment
Hide comment
@pnasrat

pnasrat Jun 1, 2011

Contributor

Sure, not doubting it's an issue just trying to understand the bug - and capture data on it

Some other thoughts - do you have ipython installed as a system package?

I'll try repro on an ubuntu box momentarily.

Contributor

pnasrat commented Jun 1, 2011

Sure, not doubting it's an issue just trying to understand the bug - and capture data on it

Some other thoughts - do you have ipython installed as a system package?

I'll try repro on an ubuntu box momentarily.

@pnasrat

This comment has been minimized.

Show comment
Hide comment
@pnasrat

pnasrat Jun 1, 2011

Contributor

Worked for me on ubuntu box without ipython installed in system. However if I have a system ipython I can reproduce.

Contributor

pnasrat commented Jun 1, 2011

Worked for me on ubuntu box without ipython installed in system. However if I have a system ipython I can reproduce.

@pnasrat

This comment has been minimized.

Show comment
Hide comment
@pnasrat

pnasrat Jun 1, 2011

Contributor

Quick manual testing shows it was broken in 0.8.3, 0.7.1 seems to work

(ve)pnasrat@dhcp-172-16-18-182:~/Development/pip (issue-295-install-I-fail)$ pip --version
pip 0.8.3 from /Users/pnasrat/Development/pip/ve/lib/python2.6/site-packages/pip-0.8.3-py2.6.egg (python 2.6)
(ve)pnasrat@dhcp-172-16-18-182:~/Development/pip (issue-295-install-I-fail)$ pip install -I ipythonDownloading/unpacking ipython
  Downloading ipython-0.10.2.zip (6.4Mb): 6.4Mb downloaded
  Running setup.py egg_info for package ipython
    Leopard libedit detected.
Cleaning up...
(ve)pnasrat@dhcp-172-16-18-182:~/Development/pip (issue-295-install-I-fail)$ pip --version
pip 0.7.1 from /Users/pnasrat/Development/pip/ve/lib/python2.6/site-packages/pip-0.7.1-py2.6.egg (python 2.6)
(ve)pnasrat@dhcp-172-16-18-182:~/Development/pip (issue-295-install-I-fail)$ pip install -I ipythonDownloading/unpacking ipython
  Downloading ipython-0.10.2.zip (6.4Mb): 6.4Mb downloaded
  Running setup.py egg_info for package ipython
    Leopard libedit detected.
Installing collected packages: ipython
  Running setup.py install for ipython
    Leopard libedit detected.
    Installing iptest script to /Users/pnasrat/Development/pip/ve/bin
    Installing ipythonx script to /Users/pnasrat/Development/pip/ve/bin
    Installing ipcluster script to /Users/pnasrat/Development/pip/ve/bin
    Installing ipython script to /Users/pnasrat/Development/pip/ve/bin
    Installing pycolor script to /Users/pnasrat/Development/pip/ve/bin
    Installing ipcontroller script to /Users/pnasrat/Development/pip/ve/bin
    Installing ipengine script to /Users/pnasrat/Development/pip/ve/bin
Successfully installed ipython
Cleaning up...
Contributor

pnasrat commented Jun 1, 2011

Quick manual testing shows it was broken in 0.8.3, 0.7.1 seems to work

(ve)pnasrat@dhcp-172-16-18-182:~/Development/pip (issue-295-install-I-fail)$ pip --version
pip 0.8.3 from /Users/pnasrat/Development/pip/ve/lib/python2.6/site-packages/pip-0.8.3-py2.6.egg (python 2.6)
(ve)pnasrat@dhcp-172-16-18-182:~/Development/pip (issue-295-install-I-fail)$ pip install -I ipythonDownloading/unpacking ipython
  Downloading ipython-0.10.2.zip (6.4Mb): 6.4Mb downloaded
  Running setup.py egg_info for package ipython
    Leopard libedit detected.
Cleaning up...
(ve)pnasrat@dhcp-172-16-18-182:~/Development/pip (issue-295-install-I-fail)$ pip --version
pip 0.7.1 from /Users/pnasrat/Development/pip/ve/lib/python2.6/site-packages/pip-0.7.1-py2.6.egg (python 2.6)
(ve)pnasrat@dhcp-172-16-18-182:~/Development/pip (issue-295-install-I-fail)$ pip install -I ipythonDownloading/unpacking ipython
  Downloading ipython-0.10.2.zip (6.4Mb): 6.4Mb downloaded
  Running setup.py egg_info for package ipython
    Leopard libedit detected.
Installing collected packages: ipython
  Running setup.py install for ipython
    Leopard libedit detected.
    Installing iptest script to /Users/pnasrat/Development/pip/ve/bin
    Installing ipythonx script to /Users/pnasrat/Development/pip/ve/bin
    Installing ipcluster script to /Users/pnasrat/Development/pip/ve/bin
    Installing ipython script to /Users/pnasrat/Development/pip/ve/bin
    Installing pycolor script to /Users/pnasrat/Development/pip/ve/bin
    Installing ipcontroller script to /Users/pnasrat/Development/pip/ve/bin
    Installing ipengine script to /Users/pnasrat/Development/pip/ve/bin
Successfully installed ipython
Cleaning up...

@ghost ghost assigned pnasrat Jun 1, 2011

pnasrat added a commit to pnasrat/pip that referenced this issue Jun 2, 2011

Fix for pypa#295 install -I when package installed
Add simple test and fix to ensure install() runs with -I.

Tests run clean on 2.4, 2.7, 3.2
@pnasrat

This comment has been minimized.

Show comment
Hide comment
@pnasrat

pnasrat Jun 3, 2011

Contributor

Yang - have you tried with my patch?

Contributor

pnasrat commented Jun 3, 2011

Yang - have you tried with my patch?

carljm added a commit that referenced this issue Jun 5, 2011

Merge pull request #296 from pnasrat/issue-295-install-I-fail
Fix for #295 install -I when package installed

tswicegood added a commit to tswicegood/pip that referenced this issue Jun 24, 2011

Fix for pypa#295 install -I when package installed
Add simple test and fix to ensure install() runs with -I.

Tests run clean on 2.4, 2.7, 3.2

pnasrat added a commit that referenced this issue Jul 16, 2011

Fix for #295 install -I when package installed
Add simple test and fix to ensure install() runs with -I.

Tests run clean on 2.4, 2.7, 3.2
@pnasrat

This comment has been minimized.

Show comment
Hide comment
@pnasrat

pnasrat Aug 14, 2011

Contributor

This was merged.

Contributor

pnasrat commented Aug 14, 2011

This was merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment