rzellem / EXOTIC

EXOplanet Transit Interpretation Code
Other
86 stars 45 forks source link

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

Closed ivenzor closed 4 weeks ago

ivenzor commented 1 month ago

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 inexotic/__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 commented 1 month ago

@jpl-jengelke @tamimfatahi I guess we could change import importlib_metadata as metadatafor 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 commented 1 month ago

https://github.com/rzellem/EXOTIC/pull/1332