-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[2020-resolver] pip seems to download older package versions #9928
Comments
From your logs
This means that pip tried multiple versions of As for why pip thinks I am going to close this as invalid since everyhing is working as intended according to the information you made available. Feel free to reopen with more detailed description if your investigation reveals pip is doing something unreasonable. |
That is a very big change in behavior and definitely different from prior behavior. And I imagine it will cause issues for many people downstream. I wouldn't dismiss the issue so quickly.
I will dig into this, my assumption is some of the many packages in the mix depend on slightly different versions of the same package. And that's a problem for layered products like mine for example. Do we have a way to force pip into not trying multiple versions other than pinning every single version across every single repository I have ? |
Yes, it was a big change introduced in the 20.3 release, and we publicalised the change as much as we could both before and after the release, for example: https://pyfound.blogspot.com/2020/11/pip-20-3-new-resolver.html This stirred things a lot last year, it’s unfortunate you missed the message at the time.
We are discussing a |
@uranusjr I did pin versions but it's still happening |
Description
A pip install where many dependencies use exact versions leads to quite unexpected versions which later leads to a pylint warning about method signature mismatch and will lead to more problems because our software uses libraries which had removed methods or changed behavior in certain versions.
Maybe related to #9922
Expected behavior
Latest versions are installed.
pip version
pip 21.1
Python version
3.6.13
OS
Ubuntu (GitHub Actions)
How to Reproduce
Output
https://github.com/kiwitcms/github-app/pull/50/checks?check_run_id=2475410935
From the "github-app" application:
From the
kiwitcms
package:What I can spot from the output above is:
Additional information:
The problem & the full logs can be seen at kiwitcms/github-app#50
The previous commit which executed the same test jobs and reported PASS was kiwitcms/github-app@c3a47e1 2 months ago on Feb 14th 2021 (minus the
pip install -U pip
part). This is the test job for that commit: https://github.com/kiwitcms/github-app/runs/1899170145.From there I see:
Successfully installed Django-3.1.5 ... PyGithub-1.54.1 ... kiwitcms-9.0
which is correct at the time! I don't see a reference for the pip version but it isn't telling me that a new version exists so probably latest-ish at the time.The text was updated successfully, but these errors were encountered: