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

pkg_resources is deprecated #38

Open
The-Compiler opened this issue Sep 12, 2023 · 1 comment
Open

pkg_resources is deprecated #38

The-Compiler opened this issue Sep 12, 2023 · 1 comment

Comments

@The-Compiler
Copy link

With Python 3.11, python3 -Wall -c "import zbarlight" results in:

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

Assuming support for Python < 3.8 is dropped (those all are out of support anyways), the current usage can be changed to:

from importlib import metadata
__version__ = metadata.version('zbarlight')
@KIC
Copy link

KIC commented Jun 22, 2024

Now with 3.12 definitely fails with
#39

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