adamgot / python-plexlibrary

Create and maintain dynamic Plex libraries based on recipes.
BSD 3-Clause "New" or "Revised" License
204 stars 40 forks source link

ModuleNotFoundError: No module named 'ruamel' #77

Open typo2014 opened 4 years ago

typo2014 commented 4 years ago

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 commented 4 years ago

sudo apt-get install python3-dev

pip install ruamel.yaml

pip3 install ruamel.yaml if using Python3

chiggerz commented 4 years ago

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 commented 3 years ago

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)