-
-
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
pip-compile doesn't support the new pip resolver #1190
Comments
Hello @rouge8, Thanks for the issue! Yes, currently, |
Well pip never considers the internal API stable right? :) For my purposes I don’t actually need the new resolver logic except to deal with pypa/pip#5780. If you don’t think the new resolver internals are stable enough for pip-tools yet, I’m sure I can come up with some hack to work around this issue. :) |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I'm hitting this error too. The new resolver is going to be the default from middle or end of October if I understand correctly. It probably makes sense to ensure pip-tools works with both |
@atugushev @graingert How much do you already know about what needs to be done here in |
This issue is critical as the new resolver is days away from becoming default. If you was one of those that added |
So weirdly the 5.4 release seems to have fixed this for Python 3. But it still breaks for Python 2 (I know, I know). Can someone confirm this behavior, or is it just me? |
@hynek |
I…uh…played a bit with the settings hence and forth and suddenly it started working and I can't break it anymore. 😳 It was 100% 5.4.0/20.3 before. I guess my computer is just haunted. |
Can't we just use |
This bus is still a big PITA because even latest version will choke if you happen to define:
This used to be a popular method to enable the new resolver before it was released, so we would detect issues at CI level. |
I believe you can work around that for now using |
Well,.. I removed that line from that CI pipeline that was running pip-compile, but having to do this on multiple projects is no joy. We should still have to fix it. Sadly lots of people interested but nobody willing to do it. |
Is anyone working on this? Thinking about taking a look but don't want to duplicate work. |
This should actually be working now. I think this issue could be closed. Which version of |
okay well I have something that works with
|
I have simplest example:
pip-compile fails with:
but pip install succeed with:
Tested on both pypi and github-master versions of pip-tools. Latest pip (since pip-tools required it). If I change
Then I get pip-compile succeed with:
|
confirmed pip-compile can't handle,
but pip finds valid solution:
So sounds like no ones working on this? |
Hi, I'm a maintainer at https://github.com/pantsbuild/pants. We're working on a revamp of our 3rd-party support with lockfiles at the crux of the changes. We've been using pip-compile so far and are really happy with it so far, great UX! This issue is a blocker for us to call the project complete. We're interested in taking on this issue, but are trying to scope it out: how much work would you anticipate this change will take? Also, would anyone be available to help, like giving some tips or pair programming? Finally, Pants still supports Python 2.7, so we'd ideally backport this feature to pip-tools 5, in addition to pip-tools 6. How feasible do you expect a backport like that would be? |
@Eric-Arellano there's a new lock file spec here too https://www.python.org/dev/peps/pep-0665/ |
Ohh yeah, it only took me to read the header to guess what this pep will propose: more TOML :( ... few pages later, I got my guess confirmed. |
#1539 adds support for new resolver and fixes the issue: Details
|
The resolver is released as part of pip-tools |
@atugushev I can't say how much this saved the day for me - thank you for getting this in there when you did! |
pip-compile doesn't support using the 2020 resolver.
Environment Versions
$ python -V
: Python 3.7.8$ pip --version
: pip 20.2$ pip-compile --version
: pip-compile, version 5.3.0Steps to replicate
t.txt
:pip-compile t.txt
:Expected result
pip-compile
completes successfully.Actual result
pip-compile
errors out.The text was updated successfully, but these errors were encountered: