Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'ruamel' #3276

Closed
m4rkl1u opened this issue Jan 6, 2021 · 4 comments
Closed

ModuleNotFoundError: No module named 'ruamel' #3276

m4rkl1u opened this issue Jan 6, 2021 · 4 comments

Comments

@m4rkl1u
Copy link

m4rkl1u commented Jan 6, 2021

Environment:

  • NNI version: 1.9.0
  • NNI mode (local|remote|pai): Local
  • Client OS: Ubuntu
  • Server OS (for remote mode only): Local
  • Python version: 3.6.0
  • PyTorch/TensorFlow version: tensorflow==2.3.0
  • Is conda/virtualenv/venv used?: conda
  • Is running in Docker?:Yes

Log message:

   /opt/conda/lib/python3.6/site-packages/nni/package_utils.py in <module>
          8 from pathlib import Path
          9 import importlib
    ---> 10 import ruamel.yaml as yaml
         11 
         12 from .constants import BuiltinAlgorithms
    
    ModuleNotFoundError: No module named 'ruamel'
 

What issue meet, what's expected?:
It seems the conda install ruamel is ruamel_yaml, I expect that if the nni running in docker+conda environment could identify the ruamel path

How to reproduce it?:

Additional information:

@liuanhua110
Copy link

change the 'import ruamel.yaml as yaml' to 'import ruamel_yaml as yaml' it works for me

@kvartet
Copy link
Contributor

kvartet commented Jan 7, 2021

change the 'import ruamel.yaml as yaml' to 'import ruamel_yaml as yaml' it works for me

Thanks for your solution, maybe @m4rkl1u can try his method.

@potoo0
Copy link

potoo0 commented Jun 9, 2021

  • windows 10
  • python 3.8
    could install ruamel.yaml to solve this:
pip install --ignore-installed ruamel.yaml

@kvartet
Copy link
Contributor

kvartet commented Jun 10, 2021

To avoid this issue, NNI substitutes ruamel.yaml with PyYAML in pr #3702, which will be released in v2.3. If you meet this error, please update to the latest version(>2.3).

@kvartet kvartet closed this as completed Jun 10, 2021
@microsoft microsoft locked and limited conversation to collaborators Jun 10, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

5 participants