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

Can't install using pip 8.1.2 #9518

Closed
jason-curtis opened this issue Jun 1, 2016 · 10 comments
Closed

Can't install using pip 8.1.2 #9518

jason-curtis opened this issue Jun 1, 2016 · 10 comments
Milestone

Comments

@jason-curtis
Copy link

jason-curtis commented Jun 1, 2016

I can't install ipython==4.2.0 using pip==8.1.2.
This is apparently due to an incorrectly-hyphenated dependency on backports.shutil-get-terminal-size. The real package is underscored: backports.shutil_get_terminal_size.

I haven't been able to track down where that package is referenced from within ipython.

Install works with pip version 7.0.1 but not pip 8.1.2, since the newer version does not cover for the hyphens-to-underscores issue.

Repro

> pip install pip --upgrade
Successfully installed pip-8.1.2

> pip install ipython==4.2.0
[...]
Could not find a version that satisfies the requirement backports.shutil-get-terminal-size (from ipython==4.2.0) (from versions: )

> pip install ipython==4.1.2 # older version of ipython is fine...
[...]
Successfully installed ipython-4.1.2

> pip uninstall ipython; pip install pip==7.0.1; pip install ipython==4.2.0 # Older version of pip is fine
[...]
Successfully installed ipython-4.2.0
@takluyver
Copy link
Member

We express the dependency with underscores in setup.py, so I'm not sure what's going on there.

@Carreau
Copy link
Member

Carreau commented Jun 2, 2016

Dashes in package names are fine:

$ pip  --version && pip install pip-magic && pip uninstall pip-magic -y && pip install pip_magic
pip 8.1.2 from /Users/bussonniermatthias/anaconda/lib/python3.5/site-packages (python 3.5)
Collecting pip-magic
  Using cached pip_magic-0.2.2-py2.py3-none-any.whl
Installing collected packages: pip-magic
Successfully installed pip-magic-0.2.2
Uninstalling pip-magic-0.2.2:
  Successfully uninstalled pip-magic-0.2.2
Collecting pip_magic
  Using cached pip_magic-0.2.2-py2.py3-none-any.whl
Installing collected packages: pip-magic
Successfully installed pip-magic-0.2.2

They get automatically converted to _ or - depending on the context.

PyPI had a few trouble a few hours ago, can you just retry ?

@jason-curtis
Copy link
Author

@Carreau strange, that is not how it's working for me on pip 8.1.2 + python 2.7 + Ubuntu 14.04. see also pypa/pip#3757 .

@Carreau
Copy link
Member

Carreau commented Jun 2, 2016

@Carreau strange, that is not how it's working for me on pip 8.1.2 + python 2.7 + Ubuntu 14.04. see also pypa/pip#3757 .

Hum, weird.

@Carreau
Copy link
Member

Carreau commented Jun 2, 2016

Is that in .tox env ? or something else ?
I just nuked all my caches, and still seem to work...

$ python2.7 -m pip install 'ipython==4.2' --upgrade
Collecting ipython==4.2
  Downloading ipython-4.2.0-py2-none-any.whl (736kB)
    100% |████████████████████████████████| 737kB 1.5MB/s
Requirement already up-to-date: traitlets in /usr/local/lib/python2.7/site-packages (from ipython==4.2)
Requirement already up-to-date: gnureadline; sys_platform == "darwin" and platform_python_implementation == "CPython" in /usr/local/lib/python2.7/site-packages (from ipython==4.2)
Requirement already up-to-date: pexpect; sys_platform != "win32" in /usr/local/lib/python2.7/site-packages (from ipython==4.2)
Requirement already up-to-date: simplegeneric>0.8 in /usr/local/lib/python2.7/site-packages (from ipython==4.2)
Collecting backports.shutil-get-terminal-size (from ipython==4.2)
  Downloading backports.shutil_get_terminal_size-1.0.0-py2.py3-none-any.whl
Requirement already up-to-date: decorator in /usr/local/lib/python2.7/site-packages (from ipython==4.2)
Requirement already up-to-date: setuptools>=18.5 in /usr/local/lib/python2.7/site-packages (from ipython==4.2)
Requirement already up-to-date: pickleshare in /usr/local/lib/python2.7/site-packages (from ipython==4.2)
Requirement already up-to-date: appnope; sys_platform == "darwin" in /usr/local/lib/python2.7/site-packages (from ipython==4.2)
Requirement already up-to-date: ipython-genutils in /usr/local/lib/python2.7/site-packages (from traitlets->ipython==4.2)
Requirement already up-to-date: ptyprocess>=0.5 in /usr/local/lib/python2.7/site-packages (from pexpect; sys_platform != "win32"->ipython==4.2)
Requirement already up-to-date: pathlib2; python_version in "2.6 2.7 3.2 3.3" in /usr/local/lib/python2.7/site-packages (from pickleshare->ipython==4.2)
Requirement already up-to-date: six in /usr/local/lib/python2.7/site-packages (from pathlib2; python_version in "2.6 2.7 3.2 3.3"->pickleshare->ipython==4.2)
Installing collected packages: backports.shutil-get-terminal-size, ipython
Successfully installed backports.shutil-get-terminal-size-1.0.0 ipython-4.2.0

@jason-curtis
Copy link
Author

it is in a .tox virtualenv. I just tried in a fresh virtualenv and I'm also unable to repro. Does that give you an idea of where the issue might be coming from?
I tried removing all other dependencies from my .tox env and the issue still reproed inside the tox env but not outside it.

@Carreau
Copy link
Member

Carreau commented Jun 2, 2016

No, not sure, I'm not too familiar with Tox. I just inferred that from the report on PyPA repository.

@jason-curtis
Copy link
Author

OK, feel free to close this since it seems to be some kind of complex interaction that I won't ask you to track down and fix. Thanks for your help!

@Carreau Carreau added this to the no action milestone Jun 2, 2016
@Carreau
Copy link
Member

Carreau commented Jun 2, 2016

OK, feel free to close this since it seems to be some kind of complex interaction that I won't ask you to track down and fix. Thanks for your help!

I'll leave open and mark as no-action, if you fill other bug report of figured it out, feel free to link it here.
We'll close that at some point if there is nothing we can do.

@Carreau
Copy link
Member

Carreau commented Jul 19, 2017

Hi,

This issue has been quiet for almost a year, and I don't think there is anything we can do. It has been marked as no-action, and I'm going to close it to attempt to reduce the number of opened issue. Feel free to reopen if needed.

Thanks.

@Carreau Carreau closed this as completed Jul 19, 2017
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