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

No module named 'pkg_resources' #924

Open
kwatsen opened this issue Feb 15, 2025 · 1 comment
Open

No module named 'pkg_resources' #924

kwatsen opened this issue Feb 15, 2025 · 1 comment

Comments

@kwatsen
Copy link

kwatsen commented Feb 15, 2025

Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.12.9/x64/bin/pyang", line 5, in <module>
    from pyang.scripts.pyang_tool import run
  File "/opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/pyang/scripts/pyang_tool.py", line 12, in <module>
    from pyang import plugin
  File "/opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages/pyang/plugin.py", line 5, in <module>
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

This is because pkg_resources is longer part of the standard Python library: see pkg_resources is deprecated and removed in Python 3.12.

From the linked page, pyang should migrate to importlib.resources or, alternatively, declare a dependency on setuptools.

@mbj4668
Copy link
Owner

mbj4668 commented Feb 18, 2025

This was recently fixed. Did you try with the the latest code from master?

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