-
-
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
Error importing BAR_TYPES with new pip 22.1 release #1617
Error importing BAR_TYPES with new pip 22.1 release #1617
Comments
Looks like |
There's a fix for this in the new resolver PR, and we either need pull that bit out for a more immediate release, or finalize and merge that PR, which still has at least one problem. |
Just hit this in our CI |
Pulling that out into a more immediate release seems reasonable to me. :) |
For now i am just pinning |
I can't be at a computer for a little while, @atugushev want to do a small release soon? |
IIRC this isn't the first time a new pip release has broken pip-tools. Would it be a good idea to have upper bounds in its dependency? |
That commit has been in the pip main branch for a month. ideally, this repo should be testing against that regularly to catch for this kind of thing early, rather than needing to add a version cap that would just get in the way later. oh dear, it does regularly check for this: https://github.com/jazzband/pip-tools/runs/6267937837?check_suite_focus=true edit: oh yeah, here's where the relevant discussion continues, back through this wormhole to January: #1558 (comment) |
A new version of pip removed a variable used by piptools. Pin the pip version to avoid running into this problem. See jazzband/pip-tools#1617.
I'm a bit puzzled why pip and pip-tools are not kept within the same project. pip-tools is instrumental to using pip since pip-compiles enables devs to separate direct dependencies from indirect ones. Also, it is great for fixing versions. |
Also temporarily pins pip<22.1 in pip-tools.txt while jazzband/pip-tools#1617 is addressed. ENT-5823
This also came up the last quarter, so I'll repeat #1558 (comment):
Also, the pip team are very busy working on pip and we can't expect them to maintain pip-tools as well. In fact, moving pip-tools out of Jazzband would be a backwards step: it would mean that fewer people are able to maintain it. As noted by @wizpig64 above, pip-tools does indeed have a daily cron regularly testing against pip's main branch, in fact it did catch the change in pip (but remember: pip has no official API) and started failing a month ago. This also happened last quarter, so I'll also repeat #1558 (comment):
|
Fixes jazzband/pip-tools#1617 Signed-off-by: Zack Cerza <zack@redhat.com>
Fixes jazzband/pip-tools#1617 Signed-off-by: Zack Cerza <zack@redhat.com>
what was the fix there?
|
Can you provide a reproducible procedure? |
Sorry I clicked the wrong button! |
thanks for replying. I fixed the issue. My team is using I made some dependencies change to force using some version:
and fixed the issue. |
For me it worked after doing:
Thanks to @lafolle for pointing the latest working version. |
EDIT: Have been using old version of PIP-Tools in Pre-Commit |
That worked fine for me. Thanks =) |
This avoids jazzband/pip-tools#1617
This commit upgrades the version of pip-tools used in this repository from 6.6.0 to 6.6.2. In version 6.6.0 of pip-tools, there is a bug that is preventing pip-tools from working. This is breaking the Python requirements update GitHub action in this repository. The error is "ImportError: cannot import name 'BAR_TYPES' from 'pip._internal.cli.progress_bars'". The error was reported here: jazzband/pip-tools#1617. The fix to this bug was released in version 6.6.2 of pip-tools. See the comment here: jazzband/pip-tools#1617 (comment). Version 6.6.1 of pip-tools also has a bug, which is fixed in version 6.6.2. I observed this issue breaking the Python requirements update GitHub action in another repository, so I have upgrade the version straight to 6.6.2. The issue in version 6.6.1 was reported here: jazzband/pip-tools#1624.
jazzband/pip-tools#1617 was fixed in pip-tools==6.6.1
The pip-tools version currently used breaks with the error "ImportError: cannot import name 'BAR_TYPES' from 'pip._internal.cli.progress_bars'" during the deployment. This is fixed in the version 6.6.2 as reported in jazzband/pip-tools#1617. So, this commit pins the pip-tools version to 6.6.2
The pip-tools version currently used breaks with the error "ImportError: cannot import name 'BAR_TYPES' from 'pip._internal.cli.progress_bars'" during the deployment. This is fixed in the version 6.6.2 as reported in jazzband/pip-tools#1617. So, this commit pins the pip-tools version to 6.6.2
pip-tools breaks with the new version of pip "22.1". Error:
Environment Versions
OS: Ubuntu 20.04
Python version: 3.9
pip version: 22.1
pip-tools version: 6.6.0
Steps to replicate
Expected result
Compilation is successful
Actual result
Full traceback from my CI job.
The text was updated successfully, but these errors were encountered: