Label-studio: Launching label-studio causes error - No module named 'ruamel'

Created on 18 Mar 2021  路  9Comments  路  Source: heartexlabs/label-studio

Describe the bug
A clear and concise description of what the bug is.

ModuleNotFoundError: No module named 'ruamel'

To Reproduce
Steps to reproduce the behavior:

  1. Open terminal
  2. pip install -U label-studio
  3. label-studio
  4. ModuleNotFoundError: No module named 'ruamel'

Expected behavior
Label-studio launches a browser and opens the login page

Screenshots
If applicable, add screenshots to help explain your problem.
image

Environment (please complete the following information):

  • OS: Catelina
  • Label Studio Version 1.0.0

Additional context

bug

Most helpful comment

Understood. This was a conda issue and following installation just worked for me:

conda install ruamel.yaml

Thank you so much for responding

All 9 comments

@karnsaurabhkumar does manual pip install ruamel solve this problem? (After this you need to install LS again)

No. Manual install throws another error:

ERROR: Could not find a version that satisfies the requirement ruamel (from versions: none)
ERROR: No matching distribution found for ruamel

The package is called "ruamel-yaml" or "ruamel_yaml" there may be issues depending on the pip version you have (see https://github.com/conda/conda/issues/10178). I was using conda and tried uninstalling it with pip and reinstalling with conda. Also if using conda make sure the environment is based on python 3.8 for the 1.0.0 release, for me this was enough to avoid any issues for a clean install and didnt run in to the above issue.

So it's supposed to be the problem with the (base) conda environment. Creating conda environment should fix this problem:

conda create --name ls-env python=3
conda activate ls-env
pip install label-studio

Understood. This was a conda issue and following installation just worked for me:

conda install ruamel.yaml

Thank you so much for responding

@smoreface Could you please add this issue to installation troubleshooting as "Anaconda problem with ruamel" or something like this?

Yes, will do! Thanks!

@smoreface have you added this into docs?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Rishabh-hyperverge picture Rishabh-hyperverge  路  6Comments

andreaferretti picture andreaferretti  路  5Comments

dalekube picture dalekube  路  5Comments

potipot picture potipot  路  4Comments

fakyras picture fakyras  路  3Comments