-
Notifications
You must be signed in to change notification settings - Fork 62
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
Incompatibility with packaging>=22.0: cannot import name 'LegacyVersion' from 'packaging.version' #426
Comments
) * Set maximum version for packaging, which has removed LegacyVersion pip-audit uses `packaging.version.LegacyVersion` to parse some version numbers, and this is removed in packaging 22.0 (pypa/packaging#407) Closes #426 * test: Remove `pyparsing` as this is no longer a dependency of `packaging` Co-authored-by: Alex Cameron <asc@tetsuo.sh>
I think we might want to pursue dropping support for |
(If this is due to vendored code from |
It's in |
It might also make sense to get a patch release out the door for #427, since Edit: Never mind, you read my mind 😅 |
Thanks for the quick turnaround for this. Is there an estimate for when this PR #429 will be released? |
We'll probably do it with the next bugfix release, which will most likely be after a fix for #433 is merged. Are you currently experiencing breakage? Both |
Not quite breakage, but due to how |
Got it, thanks for explaining! In that case we can push another patch out; I'll do that in a moment. |
#435 has the bump. |
Cut as 2.4.9. Thanks again! |
Thanks @woodruffw . Unfortunately, I was looking at the wrong PR and this new version of |
I believe that this is not fully solved as still getting error in my ansible role pipeline
pip-audit is installed in previous task and is 2.4.10 |
@juju4 could you provide the result of
|
From https://github.com/juju4/ansible-cartography/actions/runs/3726085523/jobs/6319299805#step:7:807 |
Earlier in your CI:
so it sounds like your local dependency state is invalid: |
Bug description
pip-audit is incompatible with latest version of
packaging
, due to removedLegacyVersion
Reproduction steps
pip install pip-audit
packaging
version is >= 22.0pip freeze | pip-audit --no-deps -r -
to check the currently installed packagesExpected behavior
pip-audit
installs a compatible version ofpackaging
Screenshots and logs
Platform information
pip-audit
version (pip-audit -V
): 2.4.7python -V
orpython3 -V
): 3.9.15pip
version (pip -V
orpip3 -V
): 22.0.4The text was updated successfully, but these errors were encountered: