Jellyfin Forum
Mopidy instruction error - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: Mopidy instruction error (/t-mopidy-instruction-error)



Mopidy instruction error - Computerboss - 2024-03-02

Hello everyone,

unfortunately I can't get any further with the installation instructions for Mopidy Raspberry Pi (Remote Controlled Speakers) at https://jellyfin.org/docs/general/clients/mopidy/#raspberry-pi-remote-controlled-speakers

does not work. Since step 5 (Install the Jellyfin extension and any other Mopidy related packages you want:
sudo pip3 install mopidy-jellyfin mopidy-musicbox-webclient)
always runs into an error:

error: externally-managed-environment

× This environment is managed externally
╰─> To install Python packages system-wide, try apt install
    python3-xyz, where xyz is the package you are trying to
    install.
   
    If you want to install a Python package that is not included in Debian,
    create a virtual environment with python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make sure
    that you have installed python3-full.

After my research I have read that you can install an environment, I have also done this with the following commands:

python3 -m venv my_venv
Source my_venv/bin/activat
When I then entered sudo pip3 install mopidy-jellyfin mopidy-musicbox-webclient again, I got the same error:
error: extern-managed-environment

× This environment is managed externally
╰─> To install Python packages system-wide, try apt install
    python3-xyz, where xyz is the package you are trying to
    install.
   
    If you want to install a Python package that is not included in Debian,
    create a virtual environment with python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make sure
    that you have installed python3-full.
   
    For more information visit http://rptl.io/venv


It's a pity that the instructions have an error, because I installed everything exactly according to the instructions and step 4 Install required OS packages: sudo apt install mopidy mopidy-mpd gstreamer1.0-plugins-bad python3-pip
has also run successfully. But I just can't get any further. I hope someone knows.

The instructions would also have to be revised, as they are faulty if I can see that correctly.

Best regards and have a nice weekend

Translated with www.DeepL.com/Translator (free version)


RE: Mopidy instruction error - Computerboss - 2024-03-02

Update: now i tried

pip3 install mopidy-jellyfin mopidy-musicbox-webclient

without sudo in the python enviroment
(python3 -m venv my_venv
Source my_venv/bin/activat)
and it says it installs but when i check the active mopidy conf it doesnt find an extension:
WARNING [MainThread] mopidy.config Ignoring config section 'jellyfin' because no matching extension was found

thats so sad. I think i found a solution but nothing worked Slightly-frowning-face