ModuleNotFoundError: No module named 'ruamel.yaml'
See original GitHub issueExperimenting with boa gives me this error (running from the project directory:
$ boa .
Traceback (most recent call last):
File "/opt/conda/bin/boa", line 33, in <module>
sys.exit(load_entry_point('boa', 'console_scripts', 'boa')())
File "/opt/conda/bin/boa", line 25, in importlib_load_entry_point
return next(matches).load()
File "/opt/conda/lib/python3.8/importlib/metadata.py", line 77, in load
module = import_module(match.group('module'))
File "/opt/conda/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/test/boa/boa/cli/render.py", line 2, in <module>
from ruamel.yaml import YAML
ModuleNotFoundError: No module named 'ruamel.yaml'
Installing ruamel
and ruamel_yaml
does not help (adapted from the readme):
mamba install conda-build colorama pip ruamel ruamel_yaml -c conda-forge
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
[Fixed] ModuleNotFoundError: No module named 'ruamel-yaml'
How to Fix “ModuleNotFoundError: No module named 'ruamel-yaml'” in PyCharm · Open File > Settings > Project from the PyCharm menu. · Select...
Read more >Conda 'ImportError: No module named ruamel.yaml.comments'
Try pip install ruamel.yaml. It works for me.
Read more >ModuleNotFoundError: No module named 'ruamel' · Issue #106
With certain new versions of pip and conda the ruamel.yaml installation fails. This is a problem with conda: conda/conda#10178.
Read more >ModuleNotFoundError: No module named 'ruamel' - AMSET
Dear developer, I have just installed AMSET by pip. Now I have a problem when starting the first testing step : amset run...
Read more >Fix ModuleNotFoundError: No module named 'ruamel' When ...
import ruamel.yaml ModuleNotFoundError: No module named 'ruamel'. But then the abyss shows itself. When you try pip to install ruamel (if ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
yeah there might be some issue when mixing the pip and conda packages… I remember something with this particular package. Maybe the correct package is https://anaconda.org/conda-forge/ruamel.yaml from conda-forge and not
ruamel_yaml
?Using
conda mambabuild
. My recipe isconda-recipe/meta.yaml
, and I have norecipe.yaml
, so boa doesn’t seem to know what to do.The recipe is online by the way: https://gitlab.astro-wise.org/micado/micadowise/-/blob/standardcado/conda-recipe/meta.yaml But our channel is not, because it has some dependencies cannot distribute, so you cannot build the recipe unfortunately.