-
-
Notifications
You must be signed in to change notification settings - Fork 612
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 20.2 incompatibility #1192
Comments
Hello @Nicusor97, Thanks for the report! Have you tried to increase max rounds using |
Hi @atugushev , I already tried to use the |
Perhaps, we should increase the default |
is this an intended change? I mean, maybe there is a bug in the process and if we will increase the number of the |
Nothing has changed on the |
Ok, I agree. I can do the changes needed to increase the number of the default value for the |
Let's increase it to |
Hello! Joining in with @Nicusor97 (we are colleagues working on the same project). The issue occurs with our internal package(s) on a private index, so sharing the requirements.in won't allows to reproduce. One important thing to add that we figured out: the number of round to isn't constant anymore. Sometime it takes 10, sometimes 12. FYI, I once met an issue with pipenv in the past when it integrated a patched version of pip-tools for its dependencies resolving where the number of rounds was unstable, and it was related to a change done on the requirements objects returned by pip (in get_best_match IIRC). I might have to go digging trying to find what exactly caused this. In any case, that unstable number of rounds points to a new bug IMO, so increasing the number of rounds will really just be a workaround until we find why the number of rounds taken isn't stable. I'll keep digging and come back with my findings 👷 🔍 |
We have come across this on our CI for Kedro as well.
Using pip 20.2. |
Hello @vphilippon, thanks for the detailed info! Yeah, unconstant rounds must be a bug. |
I've found part of the reason for the unconstant number of rounds. Here's a bit of the end of the pip-compile verbose output I get with my internal project:
Notice how the dependencies change are just about changes on trailling In the complete output, I've noted that some packages depends on |
Hi, Same random issue in our CI. Here my configuration if it can help:
Command line:
With files: requirements.txt
requirements_codegen.in
requirements_deployment.in
requirements_ide.in
requirements_misc.in
requirements_svc.in
requirements_tests.in
requirements_tools.in
Connexion wheel is built from https://github.com/Jyhess/connexion/tree/custom |
I think I've found a fix, I'm testing it and adding some tests for it. A PR should come soon-ish™. In short, I'm improving the |
pip-tools 5.3.1 was released! 🚀 |
pip-compile fails when trying to use the latest version of pip in the finding dependencies process
Environment Versions
$ python -V
=> Python 2.7.8 and Python 3.6$ pip --version
=> 20.2$ pip-compile --version
=> 5.3.0Steps to replicate
pip-compile -v --upgrade --no-header -r dev_requirements.txt -o frozen_requirements.txt
Expected result
pip-compile completes successfully
Actual result
The pip-compile process fails in the finding dependencies process after 10 rounds.
Here is my call stack:
Result of round 10: not stable Traceback (most recent call last): File "C:\Python36\Lib\runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "C:\Python36\Lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "E:\build_infra_repos\package_checker\pip_compile_venv3\Scripts\pip-compile.exe\__main__.py", line 9, in <module> File "e:\build_infra_repos\package_checker\pip_compile_venv3\lib\site-packages\click\core.py", line 829, in __call__ return self.main(*args, **kwargs) File "e:\build_infra_repos\package_checker\pip_compile_venv3\lib\site-packages\click\core.py", line 782, in main rv = self.invoke(ctx) File "e:\build_infra_repos\package_checker\pip_compile_venv3\lib\site-packages\click\core.py", line 1066, in invoke return ctx.invoke(self.callback, **ctx.params) File "e:\build_infra_repos\package_checker\pip_compile_venv3\lib\site-packages\click\core.py", line 610, in invoke return callback(*args, **kwargs) File "e:\build_infra_repos\package_checker\pip_compile_venv3\lib\site-packages\click\decorators.py", line 21, in new_func return f(get_current_context(), *args, **kwargs) File "e:\build_infra_repos\package_checker\pip_compile_venv3\lib\site-packages\piptools\scripts\compile.py", line 458, in cli results = resolver.resolve(max_rounds=max_rounds) File "e:\build_infra_repos\package_checker\pip_compile_venv3\lib\site-packages\piptools\resolver.py", line 164, in resolve "This is likely a bug.".format(max_rounds=max_rounds) RuntimeError: No stable configuration of concrete packages could be found for the given constraints after 10 rounds of resolving. This is likely a bug.
I checked the code and the default version for the max_rounds is 10 but not sure how the process gets to do 10 rounds. With the previous version of pip and the same version of pip-tools, the process of finding the dependencies process is ok in only 5 rounds.
The text was updated successfully, but these errors were encountered: