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
[BUG] import pkg_resources
emits DeprecationWarning
#2885
Comments
The warning is intentionally emitted by packaging, which was updated in this version. The use of unsupported versions was previously deprecated, so I’m slightly surprised the error wasn’t triggered at the earlier warning in parse_version. Oh. I see that parse is being called directly, not through parse_version. I did not realize that Version.parse had its own fallback. In that case, I’m glad this caught the deprecation warning. Now we just have to figure out why a path is being passed as a version. |
It's unclear to me what factor is triggering the error. Do you know what I could do to replicate the environment where this issue occurs? I do see that Oh, my! I was able to replicate the issue easily just by invoking Python in Setuptools' own test environment:
I'm going to yank this version for now to limit disruption while I work out a solution later this week. |
setuptools version
setuptools==59.1.0
Python version
3.9.5
OS
Ubuntu
Additional environment information
No response
Description
DeprecationWarning
is emitted just by importingpkg_resources
.This seems like a regression in 59.1.0; this issue did not reproduce with 59.0.1.
Expected behavior
No warnings were emitted by import.
How to Reproduce
Output
Code of Conduct
The text was updated successfully, but these errors were encountered: