-
-
Notifications
You must be signed in to change notification settings - Fork 614
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
Using a combination of --generate-hashes
, -c constraints.txt
, --resolver=backtracking
and --strip-extras
doesn't currently work
#1752
Comments
Ah, I just found the upstream issue in I guess there's nothing we can do on |
In your reproductions it looks like needed dependencies are not included in the compiled This may be a bug, or it may be a case of mismatched environments between compilation and installation. Looking at So probably you are running See also: |
You're 100% right about mixing Python 3.8 and 3.10 (my project Python version vs. the temporary venv I created to reproduce), but I'm almost certain that the bigger problem still stands (as 'confirmed' by pypa/pip#9644). I'll update the description in the coming days. |
@AndydeCleyre I updated issue description with pins from my production environment and making sure I'm doing everything on Python 3.8.13, pip 22.3.1 and pip-tools 6.10.0. Let me know if you still can't reproduce it. Like I said, I believe it's a known bug in pip's new resolver (pypa/pip#9644) with known workarounds (pypa/pip#9644 (comment)) and lack of resources to fix (pypa/pip#9644 (comment)) I guess there's nothing to do on FWIW, my current workaround is to stop using the new resolver until this gets fixed. |
My current workaround is to use |
Seen again as #1865 (closed as dupe of this one). The title here could probably use an update (note that |
pip-compile should have listed all required dependencies. There's something going on with extras that I don't fully understand. Issue here: jazzband/pip-tools#1752
pip-compile should have listed all required dependencies. There's something going on with extras that I don't fully understand. Issue here: jazzband/pip-tools#1752
Hi,
First of all, thanks for the package and all the hard work you put into it.
I tried looking through the repo for a similar bug, but I haven't found anything. At the same time, I don't think I'm doing anything too much out of the ordinary - I'm using:
--generate-hashes
, for obvious security reasons-c constraints.txt
at the top of the dev requirements files, as that's the recommended layered approach--resolver=backtracking
, for better package resolving (and it will be the default at some point)--strip-extras
, because otherwise using--resolver=backtracking
failed withConstraints cannot have extras
The above scenario unfortunately produces requirement files that cannot be installed because of this:
As I understand it,
--strip-extras
, which is needed for--resolver=backtracking
to work with-c constraints.txt
, is currently incompatible with--generate-hashes
, because it needs all dependencies to have hashes and (correctly?) differences betweenPyJWT[crypto]
andPyJWT
.My current workaround will probably involve dropping
--resolver=backtracking
and--strip-extras
for now, but I wanted to write up this issue while I'm debugging all this.Related issues: #398, #1092, #1300
Environment Versions
Steps to replicate
Given requirements files:
Expected result
I'd like to be able to use generated requirements files to install the packages.
Actual result
I can't install the packages, neither with
pip-sync
or withpip install -r
:The text was updated successfully, but these errors were encountered: