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

Cannot install backports.shutil-get-terminal-size, no versions listed #3757

Closed
jason-curtis opened this issue May 27, 2016 · 3 comments
Closed
Labels
auto-locked Outdated issues that have been locked by automation

Comments

@jason-curtis
Copy link
Contributor

jason-curtis commented May 27, 2016

  • Pip version: 8.1.2
  • Python version: 2.7
  • Operating System: Ubuntu 14.04

Description:

Getting a strange error when trying to install the package backports.shutil-get-terminal-size - works in pip 7.0.2 but not in 8.1.2. It seems that the package is not found, maybe because of the '.' in the package name?

What I've run:

repro:

> pip --version
pip 8.1.2 from /.../.tox/py27/local/lib/python2.7/site-packages (python 2.7)
> pip install backports.shutil-get-terminal-size
...
Could not find a version that satisfies the requirement backports.shutil-get-terminal-size (from versions: )

> pip install pip==7.0.2
...
Successfully installed pip-7.0.2
> pip install backports.shutil-get-terminal-size
...
Successfully installed backports.shutil-get-terminal-size-1.0.0
@jamadden
Copy link
Member

The registered name on PyPI is backports.shutil_get_terminal_size (https://pypi.python.org/pypi/backports.shutil_get_terminal_size). Try installing it with that name. If you try to visit https://pypi.python.org/pypi/backports.shutil-get-terminal-size you'll find it redirect to the version with the underscores.

Dashes are normalized to underscores, this is behaviour that has changed somewhat in recent pip releases, but is specified by a PEP.

@jason-curtis
Copy link
Contributor Author

Thanks, it looks like the solution is to update our dependency to the correct name, since the incorrect name will no longer work!

@ulope
Copy link

ulope commented Jun 13, 2016

FYI: This is (at least in some cases) related to older versions of devpi: http://doc.devpi.net/latest/announce/server-4.0.html

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 4, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation
Projects
None yet
Development

No branches or pull requests

3 participants