-
Notifications
You must be signed in to change notification settings - Fork 412
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
3.0.1 switched to a deprecated importlib.metadata
API that's removed in Python 3.12
#545
Comments
This is a regression in fd4f336. CC @gentooboontoo |
importlb.metadata
API that's removed in Python 3.12importlib.metadata
API that's removed in Python 3.12
I have the same issue. It is causing crashes on python 3.12 github actions CI just like 3.0.0 did. For projects that use pygal as a dependency, supporting 3.12 is therefore currently not possible. I hope a patch release comes available soon. |
Make it backward compatible with every supported Python version. Could be a fix to #545.
I have just released version 3.0.3 which should fix the problem with Python 3.12 without breaking previous versions >= 3.8. Please note that running
It seems related to this problem. BTW, if I manually upgrade
Please tell me if the new release works for you and if this issue could be considered as resolved despite the tox / pip problem. |
|
All that tox does is install a package in isolation. If it does not work in tox, it means there are hidden dependencies that are not listed, and users will run into problems. Not working in tox means it is not ready for release. EDIT: I added the importlib-metadata dependency to my own project's setup.py and that solved all problems I had. |
For the time being, adding #548 will add that as a dependency here, |
Version 3.0.4 is now available. Thanks for feedbacks and submitted PRs. Please tell if any associated issues persist. |
The 3.0.1 version switches from
pkg_resources
toimportlib.metadata
. However, it uses the deprecate pre-3.10 API that doesn't work with Python 3.12 anymore:See "compatibility note" at the bottom of:
https://docs.python.org/3.11/library/importlib.metadata.html#entry-points
This is what happens in 3.12, so
.get()
is no longer valid.The text was updated successfully, but these errors were encountered: