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

replace deprecated pkg_resources with importlib.resources #452

Closed
wants to merge 3 commits into from

Conversation

danielfromearth
Copy link
Collaborator

@danielfromearth danielfromearth commented Feb 7, 2024

@danielfromearth danielfromearth linked an issue Feb 7, 2024 that may be closed by this pull request
@chuckwondo
Copy link
Collaborator

@danielfromearth, importlib.resources.files was added in 3.9, which is why the build on 3.8 is failing. See https://docs.python.org/3/library/importlib.resources.html#importlib.resources.files

To support earlier versions of Python, you should use importlib_resources (an external package), which acts as a "backport". See https://importlib-resources.readthedocs.io/en/latest/migration.html

@danielfromearth
Copy link
Collaborator Author

This PR has been superseded by #497

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

Successfully merging this pull request may close these issues.

DeprecationWarning: pkg_resources is deprecated as an API.
2 participants