Skip to content
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' #77

Open
typo2014 opened this issue Mar 28, 2020 · 3 comments
Open

ModuleNotFoundError: No module named 'ruamel' #77

typo2014 opened this issue Mar 28, 2020 · 3 comments

Comments

@typo2014
Copy link

typo2014 commented Mar 28, 2020

Hi

Installed based on wiki on ubuntu 18.04
everything up2date

whenever i try to run any command
e.g. python3 plexlibrary -l

i get the following error:

Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "plexlibrary/__main__.py", line 2, in <module>
    from plexlibrary import main
  File "plexlibrary/plexlibrary.py", line 21, in <module>
    import recipes
  File "plexlibrary/recipes.py", line 5, in <module>
    from utils import YAMLBase
  File "plexlibrary/utils.py", line 4, in <module>
    import ruamel.yaml
ModuleNotFoundError: No module named 'ruamel'

I tried installing ruamel but it tells me its already installed
i also installed mock as it was recommended as a possible solution but i still get the same error

Any idea how to solve it?

all the best
Typo

@justinglock40
Copy link

sudo apt-get install python3-dev

pip install ruamel.yaml

pip3 install ruamel.yaml if using Python3

@chiggerz
Copy link

chiggerz commented Sep 6, 2020

hi, did this resolve for OP as I am having the same issue. Tried the above, but still getting same error:
File "plexlibrary/utils.py", line 4, in
import ruamel.yaml
ModuleNotFoundError: No module named 'ruamel'

any help would be greatly appreciated, its frying my brain :-)

@AndyLow91
Copy link

AndyLow91 commented Dec 13, 2020

I've suddenly come up against this issue now after successfully running the script as a cron job for around 3 months. I've tried the suggestion above but only receive an error stating that ruamel.yml is already installed. Does anyone have any other suggestions for a fix?

Traceback (most recent call last): File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.8/runpy.py", line 87, in _run_code exec(code, run_globals) File "/home/carrotsoup/pyplex/plexlibrary/__main__.py", line 2, in <module> from plexlibrary import main File "/home/carrotsoup/pyplex/plexlibrary/plexlibrary.py", line 21, in <module> import recipes File "/home/carrotsoup/pyplex/plexlibrary/recipes.py", line 7, in <module> from utils import YAMLBase File "/home/carrotsoup/pyplex/plexlibrary/utils.py", line 4, in <module> import ruamel.yaml ModuleNotFoundError: No module named 'ruamel'

When I try the above command:

pip3 install ruamel.yaml

Requirement already satisfied: ruamel.yaml in /home/carrotsoup/.local/lib/python3.8/site-packages (0.16.12) Requirement already satisfied: ruamel.yaml.clib>=0.1.2; platform_python_implementation == "CPython" and python_version < "3.9" in /home/carrotsoup/.local/lib/python3.8/site-packages (from ruamel.yaml) (0.2.2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants