Skip to content
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

DeprecationWarning: pkg_resources is deprecated as an API #2

Open
agsimmons opened this issue Aug 31, 2023 · 1 comment
Open

DeprecationWarning: pkg_resources is deprecated as an API #2

agsimmons opened this issue Aug 31, 2023 · 1 comment

Comments

@agsimmons
Copy link

When using this library on Python 3.11, the following warning is emitted:

lib/python3.11/site-packages/monkeybiz/__init__.py:3: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html

https://setuptools.pypa.io/en/latest/pkg_resources.html

@tari
Copy link

tari commented Oct 5, 2023

This issue becomes more important with Python 3.12 because setuptools is no longer installed by default. The better solution to address the deprecation warning is to use importlib.resources (supported since Python 3.7), but a bandaid that can also be applied to projects depending on this library is to manually add a dependency on setuptools.

danlamanna added a commit to ImageMarkup/isic that referenced this issue Dec 14, 2023
Until it supports py312, it's not critical enough to keep around.
See theatlantic/python-monkey-business#2.
danlamanna added a commit to ImageMarkup/isic that referenced this issue Dec 14, 2023
Until it supports py312, it's not critical enough to keep around.
See theatlantic/python-monkey-business#2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants