-
-
Notifications
You must be signed in to change notification settings - Fork 610
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 fails with pip==22.0 #1558
Comments
|
I pushed a merge request that fixes the issue for me, but it's failing tests. |
this is a big bug 🤯 |
* Add mls library from GitHub to allow for helper utilities like locate_data - Use hashable URL for piptools to generate hashes (of the form https://github.com/<repo org>/<repo name>/archive/<commit hash>.zip) - Add emcee as required by mls * Add tables as required by pandas.read_hdf() * Use stable base image tag jupyter/minimal-notebook:lab-3.2.8 * Restrict pip<22.0 given pip-tools bug jazzband/pip-tools#1558
Thanks for the merge request 🙏🏻 |
pip-tools is incompatible with pip>=22 for now. It is triggering an error on install. See issue jazzband/pip-tools#1558
The workaround, for folks affected, is |
I think we may have to do more than
|
Thanks!
…________________________________
From: Stefan Baack ***@***.***>
Sent: Monday, January 31, 2022 12:02 PM
To: jazzband/pip-tools ***@***.***>
Cc: Rajiv Abraham ***@***.***>; Comment ***@***.***>
Subject: Re: [jazzband/pip-tools] pip-compile fails with pip==22.0 (Issue #1558)
I think we may have to do more than pip install pip<22? I just tried that but my next command to install pip-tools downloads pip 22 again?
You can add pip < 22 to your requirements.in file (or to setup.cfg/pyproject.toml if you use that instead) to prevent pip-tools from reinstalling the latest pip version. Just make sure you remove that line again once this issue here is fixed
—
Reply to this email directly, view it on GitHub<#1558 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AABUJLO3VB2NY7RDIXYXNALUY26BFANCNFSM5NERFCWQ>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.Message ID: ***@***.***>
|
@RAbraham Or as commands, you need to either install pip-tools first and then downgrade pip, e.g. |
Restrict pip to <22 for now until jazzband/pip-tools#1558 is fixed.
It seems that with pip>=22 pip-tools removes dash normalization https://pip.pypa.io/en/stable/news/#id73 even if it was done in pip==21.2 🙄 |
pip-downgrade should be removed after `pip-tools` team's solution regarding pip log bug be merged and released Related to: jazzband/pip-tools#1558
A similar occurrence happened when On it there was some mention of making sure the I wonder if this could be alleviated by moving the |
I was at pip version |
This repo does have a daily cron to test against pip https://github.com/jazzband/pip-tools/actions/workflows/cron.yml However, the Python 3.6 job started failing three months ago when pip dropped support for 3.6: Which masked all the jobs started failing two months ago due to other internal pip changes: https://github.com/jazzband/pip-tools/runs/4195776918?check_suite_focus=true https://github.com/jazzband/pip-tools/runs/4419708428?check_suite_focus=true I'm not sure whether a change in organisation would necessarily help, the pip team will continue to change their private internal functions as they need to (and there will be more changes to use Rich more for better output). Wherever it lives, I'd suggest a closer eye is paid to the integration of pip with pip-tools, especially in the lead up to pip's quarterly releases. (And look out for the pip release issues for planned release dates e.g. pypa/pip#10726.) |
It looks like it should be possible to adjust the code that is poking at pip's logging internals to skip it when running against a version of pip that uses |
Re-inserted handler assertions; included RichPipStreamHandler from pip internal logging module. Fix idea taken from: jazzband#1558 (comment)
Please see #1567 for a fix. |
Just to add my 2 cents, I wish |
* Added -allow-unsafe flag to pip_compile in pip_tools.py Without flag command "fab pip.sync" falling with error "setuptools" version is not fixed. https://github.com/jazzband/pip-tools/#deprecations * Temp pip version downgrade in git workflow Pip-tools has issue on pip version >=22.0 jazzband/pip-tools#1558
make upgrade failed because of jazzband/pip-tools#1558
I updated pip and pip-tools to the latest versions (22.0.3 and 6.5.1, respectively). Then I tried to run pip-compile:
But there is absolutely no output (also no error message), and the file When I downgrade pip-tools to 6.4.0 (but keep pip at version 22) I get an AssertionError. It seems that the only way to fix my problem is to downgrade pip to version 21.3. Wasn't EDIT: I managed to get
|
Upgrade some for security Upgrade pip-tools as older version doesn't work with newest pip jazzband/pip-tools#1558 importlib_metadata is only needed on versions less than python 3.8. This runs on 3.8 on RTD; see readthedocs.yml Previous versions of this file must have been compiled with older versions of Python
Upgrade some for security Upgrade pip-tools as older version doesn't work with newest pip jazzband/pip-tools#1558 importlib_metadata is only needed on versions less than python 3.8. This runs on 3.8 on RTD; see readthedocs.yml Previous versions of this file must have been compiled with older versions of Python
Upgrade some for security Upgrade pip-tools as older version doesn't work with newest pip jazzband/pip-tools#1558 This version reorders some entries, but the content is unchanged importlib_metadata & zipp is only needed on versions less than python 3.8. This runs on 3.8 on RTD; see readthedocs.yml Previous versions of this file must have been compiled with older versions of Python
1. Pillow: for CVE-2022{22817,24303} 2. pip-tools: for jazzband/pip-tools#1558
1. Pillow: for CVE-2022-{22817,24303} 2. pip-tools: for jazzband/pip-tools#1558
We got in a situation where the newest version of pip breaks the pinned version of pip-tools from running correctly. jazzband/pip-tools#1558 The issue is fixed in newer version of pip-tools so the only way to resolve this is to first manually upgrade pip-tools and re-compile the pip-tools.txt requirements file and then run `make upgrade`.
1. Pillow: for CVE-2022-{22817,24303} 2. pip-tools: for jazzband/pip-tools#1558
1. Pillow: for CVE-2022-{22817,24303} 2. pip-tools: for jazzband/pip-tools#1558
The following comment is borrowed from this pull request, with changes: openedx/opaque-keys#218 This failure started happening in the automated requirements upgrade GitHub action: https://github.com/openedx/edx-submissions/runs/5704384647?check_suite_focus=true The bug was being caused by an interaction between pip and pip-tools, described here: jazzband/pip-tools#1558 The bug is fixed in pip-tools==6.5.0 - from this PR: jazzband/pip-tools#1567 This pull requests bumps the version of pip-tools manually to get the automated upgrades working again.
The following comment is borrowed from this pull request, with changes: openedx/opaque-keys#218 This failure started happening in the automated requirements upgrade GitHub action: https://github.com/openedx/edx-submissions/runs/5704384647?check_suite_focus=true The bug was being caused by an interaction between pip and pip-tools, described here: jazzband/pip-tools#1558 The bug is fixed in pip-tools==6.5.0 - from this pull request: jazzband/pip-tools#1567 This pull requests bumps the version of pip-tools manually to get the automated upgrades working again.
I upgraded Pip to latest version 22.0 today and pip-tools stopped working.
When I run pip-compile to upgrade my requirements, I now get the following stack trace:
As soon as I downgrade pip to v. 21.3.1 for example, the above command succeeds as expected.
Environment Versions
The text was updated successfully, but these errors were encountered: