ModuleNotFoundError: No module named 'ruamel'

Dear developer,
I have just installed AMSET by pip. Now I have a problem when starting the first testing step : amset run -h , then occurs
Traceback (most recent call last):
File “/opt/anaconda3/bin/amset”, line 5, in
from amset.tools.cli import cli
File “/opt/anaconda3/lib/python3.8/site-packages/amset/tools/cli.py”, line 7, in
from ruamel.yaml.error import MantissaNoDotYAML1_1Warning
ModuleNotFoundError: No module named ‘ruamel’
I have tried to reinstall ‘ruamel’ but failed.
Please help me and I will appreciate any advice you can give.

1 Like

Can you try pip install ruamel.yaml and then try running amset again.

If that works I will update the project requirements.

I have already tried it, but it doesn’t work.
(base) my@macdeMacBook-Air ~ amset run -h Traceback (most recent call last): File "/opt/anaconda3/bin/amset", line 5, in <module> from amset.tools.cli import cli File "/opt/anaconda3/lib/python3.8/site-packages/amset/tools/cli.py", line 7, in <module> from ruamel.yaml.error import MantissaNoDotYAML1_1Warning ModuleNotFoundError: No module named 'ruamel' (base) my@macdeMacBook-Air ~ pip install ruamel.yaml
Requirement already satisfied: ruamel.yaml in /opt/anaconda3/lib/python3.8/site-packages (0.15.87)

Dear,
maybe you can try:
pip install --upgrade ruamel.yaml --ignore-installed ruamel.yaml
Best,
zhenqing

2 Likes

Open cli.py. Do “ruamel.yaml.error” → “ruamel_yaml.error”.

It may work.

Thanks a lot, I will try it later.

Thanks very much, I will try it later.

The problem was solved after I just upgraded pymatgen and its other dependencies. Thanks again for all the received advice and guidance.

1 Like

Fantastic, I am glad your issue is solved.

It’s being bothering me for days,thanks a lot!!!