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

Python 3.12 ModuleNotFoundError: No module named 'importlib_metadata' #1331

Closed
ivenzor opened this issue Oct 22, 2024 · 2 comments · Fixed by #1332
Closed

Python 3.12 ModuleNotFoundError: No module named 'importlib_metadata' #1331

ivenzor opened this issue Oct 22, 2024 · 2 comments · Fixed by #1332
Assignees

Comments

@ivenzor
Copy link
Contributor

ivenzor commented Oct 22, 2024

Although importlib_metadata is listed in the requirements only for Python 3.6 and 3.7, it was still installed in Python 3.10 as a prerequisite for keyring , which is a dependency of astroquery.
However, in Python 3.12 importlib_metadata is not installed as a dependency of any other package but import_metadata is still used in exotic/__init__.py

(exotic_env2) C:\Users\ivenz>exotic
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\ivenz\miniconda3\envs\exotic_env2\Scripts\exotic.exe\__main__.py", line 5, in <module>
  File "C:\Users\ivenz\miniconda3\envs\exotic_env2\Lib\site-packages\exotic\__init__.py", line 38, in <module>
    import importlib_metadata as metadata
ModuleNotFoundError: No module named 'importlib_metadata'
@ivenzor
Copy link
Contributor Author

ivenzor commented Oct 23, 2024

@jpl-jengelke @tamimfatahi I guess we could change import importlib_metadata as metadata for the standard library importlib.metadata
I could work later tonight on this, unless you are already working on this or if you prefer other alternatives to deal with this error.

@ivenzor
Copy link
Contributor Author

ivenzor commented Oct 23, 2024

#1332

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants