question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ModuleNotFoundError: No module named 'ruamel.yaml'

See original GitHub issue

Experimenting 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:closed
  • Created 3 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
wolfvcommented, Jul 13, 2020

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?

0reactions
hugobuddelcommented, Jul 13, 2020

Using conda mambabuild. My recipe is conda-recipe/meta.yaml, and I have no recipe.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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found