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 installs stale version #5731

Closed
rubenhak opened this issue Aug 24, 2018 · 6 comments
Closed

Pip installs stale version #5731

rubenhak opened this issue Aug 24, 2018 · 6 comments
Labels
auto-locked Outdated issues that have been locked by automation

Comments

@rubenhak
Copy link

Environment

  • pip version: 18.0
  • Python version: 2.7.15
  • OS: Linux 4.9.93

Description
A package "berlioz=0.0.13" uploaded and shows up at pypi web ui (https://pypi.org/project/berlioz/). Though when installing package it installs version 0.0.10 instead of the latest version 0.0.13.

Expected behavior
The pip command was supposed to install the version 0.0.13

How to Reproduce
Run:

  1. pip install berlioz

Output

Successfully built berlioz py-zipkin thriftpy
Installing collected packages: six, python-dateutil, jmespath, docutils, botocore, futures, s3transfer, boto3, chardet, urllib3, certifi, idna, requests, websocket-client, ply, thriftpy, py-zipkin, berlioz
Successfully installed berlioz-0.0.10 boto3-1.7.84 botocore-1.10.84 certifi-2018.8.13 chardet-3.0.4 docutils-0.14 futures-3.2.0 idna-2.7 jmespath-0.9.3 ply-3.11 py-zipkin-0.13.0 python-dateutil-2.7.3 requests-2.19.1 s3transfer-0.1.13 six-1.11.0 thriftpy-0.3.9 urllib3-1.23 websocket-client-0.51.0
@pradyunsg
Copy link
Member

Could you try again? It might be a transient issue, due to pip caching the web page listing the releases for a package for 10 minutes.

@rubenhak
Copy link
Author

It has been more than 24 hours. Few more details:

$ pip search berlioz
berlioz (0.1.2)  - Python SDK for Berlioz Cloud
  INSTALLED: 0.0.10
  LATEST:    0.1.2

$ pip install berlioz==0.1.2
Collecting berlioz==0.1.2
  Could not find a version that satisfies the requirement berlioz==0.1.2 (from versions: 0.0.4, 0.0.5, 0.0.6, 0.0.7, 0.0.8, 0.0.9, 0.0.10)
No matching distribution found for berlioz==0.1.2

@rubenhak
Copy link
Author

Apparently the setup.py had contradicting python version rule which prevented pip to use the version.
Maybe pip can be improved to show more reasonable output to catch such issues easier.
The setup.py contained:

python_requires='>=2.7,>=3.6',

@pradyunsg
Copy link
Member

Yeah. That's #5003.

@pradyunsg pradyunsg added the S: needs triage Issues/PRs that need to be triaged label Sep 12, 2018
@xavfernandez
Copy link
Member

Closing in favor of #5003

@lock
Copy link

lock bot commented May 31, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label May 31, 2019
@triage-new-issues triage-new-issues bot removed the S: needs triage Issues/PRs that need to be triaged label May 31, 2019
@lock lock bot locked as resolved and limited conversation to collaborators May 31, 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