-
Notifications
You must be signed in to change notification settings - Fork 3k
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
After upgrading to pip 22.3, package fails hash check #11557
Comments
The hash you provided is for the source distribution, while the hash you got is for the wheel. So it seems to indicate something’s wrong with the hash filtering logic (IIRC pip should try both and download the one with matching hash). What happens if you add |
@uranusjr We have run into a similar issue with pipenv after upgrading to 22.3. I thought that design of pip has it prefer to find package in pypi by default, and in this example report pypa/pipenv#5444 we find that the command that is issued:
This shows the primary index being passed is still Also from reading your prior comment, I will try adding Edit: adding |
I don’t think index selection is the cause here; in the original post, both files are from the same index (PyPI). |
Could this have the same cause as #11527? |
This worked, but additionally added the following deprecation warning (which I assume is expected):
|
I could reproduce this, and I confirm that #11538 restores the pre 22.3 behaviour. |
Description
the following requirements file fails to install
with the following error
The install proceeds as expected with pip 22.2.2 and the expected SHA matches the sha on pypi
Expected behavior
The package is installed as expected
pip version
22.3
Python version
3.9.15
OS
WSL2, whatever's running in Github Actions
How to Reproduce
pip install --no-cache-dir -r requirements.txt
where requirements.txt contains the aforementioned contentOutput
Code of Conduct
The text was updated successfully, but these errors were encountered: