Mopidy Not Recognizing Scrobbler Extension

I installed Mopidy-Scrobbler globally using “sudo pip…” and have added to my conf:

[scrobbler]
enabled = true
username = username
password = pw

However, when run either as service or from /user/bin/mopidy, it doesn’t load. I see the following in the console output:

INFO Enabled extensions: mpd, http, stream, m3u, softwaremixer, file, local

I also noticed that the [scrobbler] block doesn’t appear in the output of “mopidy config” (or “mopidyctl config”).

Anyone have an idea of what I’m doing wrong?

I am using Mopidy 2.1.0.

Thanks!

You don’t provide enough details for me to be sure, but I’m guessing that you might have a mix of Python 2 and Python 3 here.

Mopidy 2.1.0 is quite old and only runs on Python 2. If the pip command you used to install Mopidy-Scrobbler was from a Python 3 installation, you have installed the Python 3 version of Mopidy-Scrobbler. As the Python 2 and 3 installations are entirely separate, the pieces won’t detect each other.

I recommend that you upgrade to Mopidy 3, which runs on Python 3, and make sure to use sudo python3 -m pip install ... to install extensions so that you are entirely sure to get the Python 3 compatible versions.

Thanks for the quick reply!

You’re correct, I have python 2.7, python 3.6 (default for python3; can’t change without breaking gnome-terminal), and python 3.8.

I created a virtual environment and installed through PyPI. I was able to run it successfully from the venv with the scrobbler extension. I wasn’t able to get it to install successfully through apt or not in a venv.

I am now having trouble figuring out how to run this as a service- I need have the virtual environment as source before running. I believe I can point the main python file to my venv’s install of python, but I’m not sure where or how to do this.

I’ve tried running Mopidy from the venv lib (python /path/to/mopidy/__main__.py) but this throws errors that “http.client” is not installed. Am I going about this the wrong way?

If this is out of scope for this forum, please let me know and I can do some more intense googling to try and figure this out. Thanks!

If you are trying to install on Ubuntu 18.04 then https://mopidy.com/blog/2019/12/27/mopidy-3-faq/#what-about-mopidy-3-on-ubuntu-1804-lts might be helpful.

Alright I got it working!

I was unable to install mopidy on my system version of python3.8 or 3.7.

I installed mopidy from the deb file after manually resolving a few dependencies. Python3-pykka depended on sphinx-rtd-theme-common version > 0.4.3, but the latest version in the ubuntu repository is 0.2, so I found the deb online.

I pointed the /usr/local/bin/mopidy file to my virtual environment’s version of python, and was able to run fine. I now have it configured as a service.

Thanks for the help guys!