You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upon installing modulus with pip, importing the library throws import error because importlib_metadata is not included in the dependencies for base and dev install.
Import error is thrown due to this line in the code.
Traceback (most recent call last):
File "<stdin>", line 1, in<module>
File "/home/<username>/anaconda3/envs/mod/lib/python3.10/site-packages/modulus/__init__.py", line 17, in<module>
from .models.meta import ModelMetaData
File "/home/<username>/anaconda3/envs/mod/lib/python3.10/site-packages/modulus/models/__init__.py", line 15, in<module>
from .module import Module
File "/home/<username>/anaconda3/envs/mod/lib/python3.10/site-packages/modulus/models/module.py", line 29, in<module>
from modulus.registry import ModelRegistry
File "/home/<username>/anaconda3/envs/mod/lib/python3.10/site-packages/modulus/registry/__init__.py", line 15, in<module>
from .model_registry import ModelRegistry
File "/home/<username>/anaconda3/envs/mod/lib/python3.10/site-packages/modulus/registry/model_registry.py", line 19, in<module>
import importlib_metadata
ModuleNotFoundError: No module named 'importlib_metadata'
For anyone else facing this issue, if it's not obvious, the solution is to run pip install importlib-metadata in your environment. Other dependencies not installed in the same overlooked way are the requests and warp-lang modules.
Reproducing here as well, as recently as Modulus version 0.9.0a0 (latest at time of wriing). Maintaining a full list of missing dependencies I've encountered:
Version
0.5.0
On which installation method(s) does this occur?
Pip
Describe the issue
Upon installing modulus with pip, importing the library throws import error because
importlib_metadata
is not included in the dependencies for base and dev install.Import error is thrown due to this line in the code.
Minimum reproducible example
Relevant log output
Environment details
The text was updated successfully, but these errors were encountered: