ImportError: cannot import name 'ModulusConfig' from 'modulus.hydra'

Running Modulus 22.9 on Ubuntu 20.04 bare metal, with Python 3.8
Cloned git repository from GitLab
Ran setup.py
Cloned ‘examples’ git repository
Got the import error trying to run any of the examples

File “helmholtz.py”, line 4, in
from modulus.hydra import to_absolute_path, instantiate_arch, ModulusConfig
ImportError: cannot import name ‘ModulusConfig’ from ‘modulus.hydra’ (/usr/local/lib/python3.8/dist-packages/modulus/hydra/init.py)

Fixed by removing older version of Modulus: 22.3

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.