`pip install --unstable-feature=resolver` fails with "ResolutionTooDeep: 100"
See original GitHub issueEnvironment
- pip version: 20.1
- Python version: 2.7.17
- OS: MacOS 10.15.4
Description
I have a project with a very long list of dependencies, and the experimental resolver fails with the ResolutionTooDeep
exception.
Expected behavior
It should be able to handle my long list of dependencies (pip freeze | wc
counts 223 packagess installed).
How to Reproduce
pip install --unstable-feature=resolver -r requirements.txt
Where requirements.txt contains a lot of dependencies.
Output
[...]
ERROR: Exception:
Traceback (most recent call last):
File "/Users/youtux/paylogic/paylogic/env/lib/python2.7/site-packages/pip/_internal/cli/base_command.py", line 188, in _main
status = self.run(options, args)
File "/Users/youtux/paylogic/paylogic/env/lib/python2.7/site-packages/pip/_internal/cli/req_command.py", line 185, in wrapper
return func(self, options, args)
File "/Users/youtux/paylogic/paylogic/env/lib/python2.7/site-packages/pip/_internal/commands/install.py", line 333, in run
reqs, check_supported_wheels=not options.target_dir
File "/Users/youtux/paylogic/paylogic/env/lib/python2.7/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 80, in resolve
self._result = resolver.resolve(requirements)
File "/Users/youtux/paylogic/paylogic/env/lib/python2.7/site-packages/pip/_vendor/resolvelib/resolvers.py", line 413, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "/Users/youtux/paylogic/paylogic/env/lib/python2.7/site-packages/pip/_vendor/resolvelib/resolvers.py", line 323, in resolve
raise ResolutionTooDeep(max_rounds)
ResolutionTooDeep: 100
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:17 (11 by maintainers)
Top Results From Across the Web
What does the error message about pip --use-feature=2020 ...
ERROR : After October 2020 you may experience errors when installing or updating packages. This is because pip will change the way that...
Read more >Pip download (just the source packages, no building, no ...
To summarise: pip needs to get package metadata to verify a downloaded sdist. Since sdist metadata is currently not trustworthy (problem 1), pip...
Read more >User Guide - pip documentation v21.1.dev0
The purpose of this section of documentation is to provide practical suggestions to pip users who encounter an error where pip cannot install...
Read more >"Some packages could not be installed" error ... - Ask Ubuntu
Just remove the python-pip-whl package and try again: sudo apt-get remove python-pip-whl.
Read more >pip-tools - PyPI
source /path/to/venv/bin/activate (venv) $ python -m pip install pip-tools. Note: all of the remaining example commands assume you've activated your ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I tested again with the master branch of pip, and indeed I don’t get the error anymore. The new resolver found some incompatible dependencies that were there for quite some time in a project, which is great! Not even
pip check
could spot that problem.@ei8fdb I was following this issue for quite some time, that’s where I saw that the new feature was available.
I am up for the interview!
I retested with pip 20.2b1 and this is fixed for edx-platform. 🎉