-
-
Notifications
You must be signed in to change notification settings - Fork 611
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
--require-hashes mode problem #1866
Comments
Looks like a pip issue, unless you have input and output files to show with a full reproducer... |
I tested with the latest pip:
Same error:
This is the input file
This is the lock file:
|
You say you're using Python 3.9.16, and you may be for installing, but as your lockfile indicates, you've compiled with Python 3.11. Pytest requires tomli only when using Python <3.11, so tomli does not make it into the lockfile (and so no hash for it either). If you use the same environment (or at least the same Python version) for compiling as installing, it should work. |
Only under pre-resolvelib pip or with |
I have the same Problem:
This looks absolutely correct, isn't it? pip failed installing with Python 3.11:
With Python 3.10 and 3.9 installing works. So it's a pip bug pypa/pip#9644 , isn't it? |
tomli only needed for Python <3.11, but see pip bug: pypa/pip#9644 / jazzband/pip-tools#1866
It seems like the bug here is that We ran into a build failure today because ipython specifies a conditional dependency like @jedie mentions above. As a result, Without this we'll just have to stop using |
Indirect requirement
work-a-round for: jazzband/pip-tools#1866
Creating a lock file with
pytest==7.3.1
generates an invalid lock fileEnvironment Versions
3.9.16
22.0.4
6.13.0
Steps to replicate
Create a lockfile with pytest==7.3.1
Compile it with:
Now install it:
Expected result
It should install correctly
Actual result
It fails while installing it
The text was updated successfully, but these errors were encountered: