We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
dfetch uses importlib to find the reosurces in the package (template.yaml, schema). Users with pythn 3.7.0 report:
dfetch
ModuleNotFoundError: No module named 'importlib.resources'
When running dfetch nder python 3.7.0
importlib.resources should be part of 3.7.0, to be investigated.
importlib.resources
The text was updated successfully, but these errors were encountered:
Workaround is to install a newer version, python 3.7.9 is reported to work
Sorry, something went wrong.
Work-around (tested on python 3.6.5):
pip install importlib-resources
--- a/dfetch/resources/__init__.py +++ b/dfetch/resources/__init__.py @@ -1,6 +1,9 @@ """Resources needed when dfetch is distributed.""" -import importlib.resources as pkg_resources +try: + import importlib.resources as pkg_resources +except ModuleNotFoundError: + import importlib_resources as pkg_resources from dfetch import resources # pylint: disable=import-self
ben-edna
Successfully merging a pull request may close this issue.
dfetch
uses importlib to find the reosurces in the package (template.yaml, schema).Users with pythn 3.7.0 report:
ModuleNotFoundError: No module named 'importlib.resources'
When running dfetch nder python 3.7.0
importlib.resources
should be part of 3.7.0, to be investigated.The text was updated successfully, but these errors were encountered: