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

Wrong name for the importlib resources #4

Closed
ss7pro opened this issue Apr 25, 2022 · 2 comments
Closed

Wrong name for the importlib resources #4

ss7pro opened this issue Apr 25, 2022 · 2 comments

Comments

@ss7pro
Copy link
Contributor

ss7pro commented Apr 25, 2022

This should be: import importlib_resources

import importlib.resources

BENCHMARKS_CONFIG_PATH: Iterator[Path] = importlib.resources.path(

JOBS_CONFIG_PATH: Iterator[Path] = importlib.resources.path(

TOOLCHAIN_CONFIG_PATH: Iterator[Path] = importlib.resources.path(

Our Python is 3.8.12

Found by Phil

@excelle08
Copy link
Contributor

Hi Tomasz,

Does the python3 in your system point to 3.8.12 or an older version? If it still points to the older version (like 3.6) then you can use alternatives --config python3 to make python3 point to the newer one. Besides, you may need to use pip-3.8 instead of pip3 to have the required python packages installed in python 3.8's library.

importlib_resources is a third-party PyPI package that provides backport for python older than 3.7. For Python of later than 3.7, it should be importlib.resources (https://docs.python.org/3/library/importlib.html#module-importlib.resources)

@ss7pro
Copy link
Contributor Author

ss7pro commented Apr 26, 2022

thanks!

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