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 importlib #1076

Open
AnjaConev opened this issue Dec 3, 2023 · 2 comments
Open

No module named importlib #1076

AnjaConev opened this issue Dec 3, 2023 · 2 comments

Comments

@AnjaConev
Copy link

Hi,

upon the new 0.5.5 release you have changed the deprecated dependency of pkg_resources to importlib-metadata. However, I keep getting an error: No module named 'importlib.metadata'

~/anaconda3/envs/core/lib/python3.6/site-packages/umap/init.py in
34 import numba
35
---> 36 from importlib.metadata import version, PackageNotFoundError
37
ModuleNotFoundError: No module named 'importlib.metadata'

I have importlib-metadata installed (version 4.8.2).

Online sources say that the imports should be from importlib_metadata instead of from importlib.metadata.

@lmcinnes
Copy link
Owner

lmcinnes commented Dec 6, 2023

I believe you need python 3.8 or newer and then importlib.metadata is in the stdlib.

@baggiponte
Copy link

I think UMAP-learn should specify in the requirements in setup.py something like "importlib_resources>=5.10.2; python_version < \"3.9\"" depending on the required Python version.

Related: #1065

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

3 participants