raveberry / raveberry

A multi-user music server with a focus on participation
GNU Lesser General Public License v3.0
716 stars 44 forks source link

Spotify (including device playback) not working on a fresh install #140

Open copykatze opened 2 months ago

copykatze commented 2 months ago

Hi, I tried to install the raveberry from scratch (latest raspian lite on a pi3), but the system install fails with

fatal: [localhost]: FAILED! => {"changed": false, "msg": "No package matching 'mopidy-spotify' is available"}

I tried installing mopidy-spotify via pip with

$ sudo python3 -m pip install Mopidy-Spotify

but that did not work, because libspotify is gone:

build/temp.linux-aarch64-cpython-311/spotify._spotify.c:573:10: fatal error: libspotify/api.h: No such file or directory
        573 | #include "libspotify/api.h"

I found that there have been some recent developments with the mopidy-spotify plugin (https://github.com/mopidy/mopidy-spotify/issues/394) and I installed the latest version:

$ wget https://github.com/kingosticks/gst-plugins-rs-build/releases/download/gst-plugin-spotify_0.13.1-1/gst-plugin-spotify_0.13.1-1_armhf.deb
$ sudo dpkg -i gst-plugin-spotify_0.13.1-1_armhf.deb
$ sudo apt --fix-broken install
$ dpkg -l | grep gst-plugin-spotify
ii  gst-plugin-spotify:armhf             0.13.1-1                         armhf        GStreamer Spotify Plugin

$ sudo python3 -m pip install --break-system-packages Mopidy-Spotify==5.0.0a1

but in the ravebrerry settings I get

"Please configure spotify during installation to use this feature" - which I did of course.

I also tried flashing an old image and updating it to the latest version of raveberry, hoping the old plugin would still work enough for spotify device playback, and installing mopidy-spotify via pip on this system gives me:

$ sudo python3 -m pip install Mopidy-Spotify
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: Mopidy-Spotify in /usr/local/lib/python3.9/dist-packages (4.1.1)
Requirement already satisfied: Mopidy>=3.0.0 in /usr/lib/python3/dist-packages (from Mopidy-Spotify) (3.1.1)
Requirement already satisfied: Pykka>=2.0.1 in /usr/lib/python3/dist-packages (from Mopidy-Spotify) (2.0.3)
Requirement already satisfied: requests>=2.20.0 in /usr/lib/python3/dist-packages (from Mopidy-Spotify) (2.25.1)
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from Mopidy-Spotify) (52.0.0)

but in the ravebrerry settings I also get

"Please configure spotify during installation to use this feature"

Are there any known options to get raveberry working with spotify these days (with device playback or any other way)? It would be awesome to get something working for tomorrow night, so any hints or even dirty hacks appreciated 8)

Thanks and cheers!

jjhdtv commented 12 hours ago

Having the same issue hoping it got resolved. Trying a fresh install, edited the raveberry.yaml file ("true" for spotify). The installation fails at installing Spotify dependencies "no package matching 'modidy-spotify' is available" Web interface does not load.