Skip to content

pkg_resources deprecated in Python 3.12 #5

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

Open
ljlamarche opened this issue Apr 29, 2025 · 0 comments
Open

pkg_resources deprecated in Python 3.12 #5

ljlamarche opened this issue Apr 29, 2025 · 0 comments

Comments

@ljlamarche
Copy link

h5view breaks in Python 3.12 or later because pkg_resources has been removed from the standard library. The following traceback comes from entering h5view on the command line after installing in a Python 3.13 environment.

Traceback (most recent call last):
  File "/Users/e30737/venvs/py313/bin/h5view", line 5, in <module>
    from h5view import main
  File "/Users/e30737/venvs/py313/lib/python3.13/site-packages/h5view/__init__.py", line 6, in <module>
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

The pkg_resources docs recommends using importlib instead.

This issue describes the problem in more detail: mu-editor/mu#2485

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