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-compile claims conflict between boto3 and dvc (whereas pip installs smoothly) #1420
Comments
Hi @atugushev, any idea of when such resolver related issues could be tackled? I think it should be top priority as it almost kills all the purpose of |
There are more and more problems arising from this one; solving it should now be considered an emergency (we are unfortunately seriously thinking to drop out @atugushev any info on a potential patch? |
In case it's useful for others, an alternative approach I've experimented with is to just use the pip resolver, by installing the Here's a longer write-up of how I use this approach to freeze dependencies when using conda and pip together: https://gist.github.com/jli/b2d2d62ad44b7fcb5101502c08dca1ae This is missing a bunch of the pip-compile features (eg the resulting lock file doesn't have comments indicating what installed all the transitive dependencies), but it replicates the core functionality of going from a high-level spec file to a fully versioned/pinned lock file. |
Sure, thanks for the suggestion; there are other tools having more or less the same features. However, moving to an alternate approach will be a no return move for us (so I hope my previous message will highlights the criticality of this issue). |
I'm working on a new resolver, it's pretty close to the finish line and should fix this and the other issues. Could you try this atugushev#10? UPDATE: try #1539 instead |
I've tried with the new resolver - it works: see details
|
@AmitAronovitch, is this solved for you as the issue author? |
@jondo, yes it solves the issue (I have the exact same one); however, the PR is still awaiting to be merged... |
This has been fixed in #1539 with the backtracking resolver, try |
Trying to specify
boto3
anddvc[s3]
(both unrestricted) in requirements.in causes "incompatible versions" (while pip install can easily install them together without warnings).See example below.
Conflict seems to be caused because the version that piptools had itself selected at stage1 conflicts with secondary dependencies.
Same results are generated if I add
botocore<1.20.50
instead ofdvc[s3]
Environment Versions
3.8.6
21.1.2
6.1.0
Steps to replicate
$ cat requirements.in
dvc[s3]
boto3
$ pip-compile -v requirements.in
Expected result
requirements.txt containing a valid solution:
At the time of writing, the following is consistent:
Actual result
Error including the following
However, note that line 2 did not specify any constraint. In the verbose outpyt, I can see that the version of boto3 was selected in an earlier round, despite being incompatible with the restrictions on botocore.
The text was updated successfully, but these errors were encountered: