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

Fails with python 3.12: AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'? #39

Open
KIC opened this issue Jun 22, 2024 · 0 comments

Comments

@KIC
Copy link

KIC commented Jun 22, 2024

Since Python 3.12. removed the long-deprecated pkgutil.ImpImporter class any import zbarlight fails with:

    import zbarlight
  File "/env/lib/python3.12/site-packages/zbarlight/__init__.py", line 3, in <module>
    import pkg_resources
  File "/env/lib/python3.12/site-packages/pkg_resources/__init__.py", line 2191, in <module>
    register_finder(pkgutil.ImpImporter, find_on_path)
                    ^^^^^^^^^^^^^^^^^^^
AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?
This was referenced Jun 22, 2024
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

1 participant