-
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
Pip fails to install satisfiable requirements due to bug in backjumping optimization #12317
Comments
Hi @notatallshaw, just checking in on the status of this issue. I know that we haven't bumped the vendored resolvelib yet, but would sarugaku/resolvelib#152 address this? (yes, I'm aware that you've seemingly ran into an edge-case surrounding extras.) |
Ah, nevermind. My apologies! sarugaku/resolvelib#154 |
Yeah, sarugaku/resolvelib#152 helps some known failures, but isn't an overall fix, it's a fallback with the hope that the resolution algorithm can recover. I thought the edge cases might be caused by extras, but they are not, backjumping requires the provider to act in a certain way which pip does not do, at least yet. |
This issue will be fixed once resolvelib is released and vendored: sarugaku/resolvelib#152 (and the other cases I mentioned are covered by #12768) |
Updating to pip 25.0 milestone as I reason here: sarugaku/resolvelib#159 (comment) |
Description
On Python 3.9 Linux pip fails to install with the following requirements:
Expected behavior
Should install the satisfiable requirements:
pip version
23.2.1
Python version
3.9
OS
Linux
How to Reproduce
Output
Code of Conduct
Context
This is a regression since Pip 23.1 which vendored resolvelib which included this change to backtracking: sarugaku/resolvelib#113
There is already an issue on resolvelib side: sarugaku/resolvelib#134
But given this has a bigger impact because it causes Pip to fail to install requirements when there is a valid solution I feel there should be an issue on Pip side until it is resolved.
The text was updated successfully, but these errors were encountered: