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

setuptools>66 - DeprecationWarning: pkg_resources is deprecated as an API. #26

Open
adelosa opened this issue Jun 29, 2024 · 1 comment

Comments

@adelosa
Copy link

adelosa commented Jun 29, 2024

When using pluginbase 1.0.1 with setuptools module version greater than 66, receiving the following warning:
setuptools==67.8.0

venv39/lib/python3.9/site-packages/pkg_resources/__init__.py:121
  .../venv39/lib/python3.9/site-packages/pkg_resources/__init__.py:121: DeprecationWarning: pkg_resources is deprecated as an API
    warnings.warn("pkg_resources is deprecated as an API", DeprecationWarning)

setuptools==70.1.1

venv39/lib/python3.9/site-packages/pluginbase.py:438
  .../venv39/lib/python3.9/site-packages/pluginbase.py:438: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
    return self._system_import(import_name, globals, locals,
@nanonyme
Copy link

Are you sure it's actually this package that is triggering the warning? I have noticed this package has the nasty behaviour that when its consumer imports pkg_resources, stack trace can claim pluginbase is the culprit.

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