Mopidy-spotify not working

Hello,

I installed Mopidy + ncmpcpp and I have a few errors.

When launching mopidy I have this:

mopidy
INFO Starting Mopidy 2.1.0
INFO Loading config from builtin defaults
INFO Loading config from /home/arnauld/.config/mopidy/mopidy.conf
INFO Loading config from command line options
INFO Enabled extensions: spotify, mpd, http, stream, spotify_tunigo, m3u, softwaremixer, file, local, soundcloud
INFO Disabled extensions: none
ERROR Extension stream failed during setup, this might have left the registry in a bad state.
Traceback (most recent call last):
File “/usr/lib/python2.7/dist-packages/mopidy/main.py”, line 121, in main
extension.setup(registry)
File “/usr/lib/python2.7/dist-packages/mopidy/stream/init.py”, line 31, in setup
from .actor import StreamBackend
File “/usr/lib/python2.7/dist-packages/mopidy/stream/actor.py”, line 13, in
from mopidy.internal import http, playlists
File “/usr/lib/python2.7/dist-packages/mopidy/internal/http.py”, line 6, in
import requests
File “/usr/local/lib/python2.7/dist-packages/requests/init.py”, line 84, in
from urllib3.contrib import pyopenssl
File “/usr/local/lib/python2.7/dist-packages/urllib3/contrib/pyopenssl.py”, line 46, in
import OpenSSL.SSL
File “/usr/lib/python2.7/dist-packages/OpenSSL/init.py”, line 8, in
from OpenSSL import rand, crypto, SSL



INFO Starting Mopidy mixer: SoftwareMixer
INFO Starting Mopidy audio
INFO Starting Mopidy backends: M3UBackend, FileBackend, LocalBackend
INFO No local library metadata cache found at /home/arnauld/.local/share/mopidy/local/library.json.gz. Please run mopidy local scan to index your local music library. If you do not have a local music collection, you can disable the local backend to hide this message.
INFO Loaded 0 local tracks using json
INFO Starting Mopidy core
INFO Audio output set to “autoaudiosink”
INFO Starting Mopidy frontends: MpdFrontend, HttpFrontend
INFO MPD server running at [::ffff:127.0.0.1]:6600
INFO HTTP server running at [::ffff:127.0.0.1]:6680
INFO Starting GLib mainloop

I can browse my local music but none of my installed extensions are working, nospotify, no soundcloud.

Here are my configurations for Mopidy:

and Ncmpcpp:

Thank you for any help,

Looks like a dependency problem so we need the output of ‘mopidy deps’.

here it is:

Executable: /usr/bin/mopidy
Platform: Linux-4.13.0-32-generic-x86_64-with-LinuxMint-18.3-sylvia
Python: CPython 2.7.12 from /usr/lib/python2.7
Mopidy: 2.1.0 from /usr/lib/python2.7/dist-packages
Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
requests>=2.0: 2.18.4 from /usr/local/lib/python2.7/dist-packages
certifi>=2017.4.17: 2018.1.18 from /usr/local/lib/python2.7/dist-packages
chardet<3.1.0,>=3.0.2: 3.0.4 from /usr/local/lib/python2.7/dist-packages
idna<2.7,>=2.5: 2.6 from /usr/local/lib/python2.7/dist-packages
urllib3<1.23,>=1.21.1: 1.22 from /usr/local/lib/python2.7/dist-packages
tornado>=3.2: 4.5.3 from /usr/local/lib/python2.7/dist-packages
singledispatch: 3.4.0.3 from /usr/local/lib/python2.7/dist-packages
six: 1.11.0 from /usr/local/lib/python2.7/dist-packages
certifi: 2018.1.18 from /usr/local/lib/python2.7/dist-packages
backports_abc>=0.4: 0.5 from /usr/local/lib/python2.7/dist-packages
Mopidy-Spotify-Tunigo: 1.0.0 from /usr/lib/python2.7/dist-packages
Mopidy>=0.19.0: 2.1.0 from /usr/lib/python2.7/dist-packages
Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
requests>=2.0: 2.18.4 from /usr/local/lib/python2.7/dist-packages
certifi>=2017.4.17: 2018.1.18 from /usr/local/lib/python2.7/dist-packages
chardet<3.1.0,>=3.0.2: 3.0.4 from /usr/local/lib/python2.7/dist-packages
idna<2.7,>=2.5: 2.6 from /usr/local/lib/python2.7/dist-packages
urllib3<1.23,>=1.21.1: 1.22 from /usr/local/lib/python2.7/dist-packages
tornado>=3.2: 4.5.3 from /usr/local/lib/python2.7/dist-packages
singledispatch: 3.4.0.3 from /usr/local/lib/python2.7/dist-packages
six: 1.11.0 from /usr/local/lib/python2.7/dist-packages
certifi: 2018.1.18 from /usr/local/lib/python2.7/dist-packages
backports_abc>=0.4: 0.5 from /usr/local/lib/python2.7/dist-packages
Mopidy-Spotify>=1.2.0: 3.1.0 from /usr/lib/python2.7/dist-packages
Mopidy>=2.0: 2.1.0 from /usr/lib/python2.7/dist-packages
Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
requests>=2.0: 2.18.4 from /usr/local/lib/python2.7/dist-packages
certifi>=2017.4.17: 2018.1.18 from /usr/local/lib/python2.7/dist-packages
chardet<3.1.0,>=3.0.2: 3.0.4 from /usr/local/lib/python2.7/dist-packages
idna<2.7,>=2.5: 2.6 from /usr/local/lib/python2.7/dist-packages
urllib3<1.23,>=1.21.1: 1.22 from /usr/local/lib/python2.7/dist-packages
tornado>=3.2: 4.5.3 from /usr/local/lib/python2.7/dist-packages
singledispatch: 3.4.0.3 from /usr/local/lib/python2.7/dist-packages
six: 1.11.0 from /usr/local/lib/python2.7/dist-packages
certifi: 2018.1.18 from /usr/local/lib/python2.7/dist-packages
backports_abc>=0.4: 0.5 from /usr/local/lib/python2.7/dist-packages
Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
pyspotify>=2.0.5: 2.0.5 from /usr/lib/python2.7/dist-packages
cffi>=1.0.0: 1.11.4 from /usr/local/lib/python2.7/dist-packages
pycparser: 2.18 from /usr/local/lib/python2.7/dist-packages
requests>=2.0: 2.18.4 from /usr/local/lib/python2.7/dist-packages
certifi>=2017.4.17: 2018.1.18 from /usr/local/lib/python2.7/dist-packages
chardet<3.1.0,>=3.0.2: 3.0.4 from /usr/local/lib/python2.7/dist-packages
idna<2.7,>=2.5: 2.6 from /usr/local/lib/python2.7/dist-packages
urllib3<1.23,>=1.21.1: 1.22 from /usr/local/lib/python2.7/dist-packages
Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
tunigo>=1.0.0: 1.0.0 from /usr/lib/python2.7/dist-packages
requests>=2.0.0: 2.18.4 from /usr/local/lib/python2.7/dist-packages
certifi>=2017.4.17: 2018.1.18 from /usr/local/lib/python2.7/dist-packages
chardet<3.1.0,>=3.0.2: 3.0.4 from /usr/local/lib/python2.7/dist-packages
idna<2.7,>=2.5: 2.6 from /usr/local/lib/python2.7/dist-packages
urllib3<1.23,>=1.21.1: 1.22 from /usr/local/lib/python2.7/dist-packages
Mopidy-SoundCloud: 2.0.2 from /usr/lib/python2.7/dist-packages
Mopidy>=1.0: 2.1.0 from /usr/lib/python2.7/dist-packages
Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
requests>=2.0: 2.18.4 from /usr/local/lib/python2.7/dist-packages
certifi>=2017.4.17: 2018.1.18 from /usr/local/lib/python2.7/dist-packages
chardet<3.1.0,>=3.0.2: 3.0.4 from /usr/local/lib/python2.7/dist-packages
idna<2.7,>=2.5: 2.6 from /usr/local/lib/python2.7/dist-packages
urllib3<1.23,>=1.21.1: 1.22 from /usr/local/lib/python2.7/dist-packages
tornado>=3.2: 4.5.3 from /usr/local/lib/python2.7/dist-packages
singledispatch: 3.4.0.3 from /usr/local/lib/python2.7/dist-packages
six: 1.11.0 from /usr/local/lib/python2.7/dist-packages
certifi: 2018.1.18 from /usr/local/lib/python2.7/dist-packages
backports_abc>=0.4: 0.5 from /usr/local/lib/python2.7/dist-packages
Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
requests>=2.0.0: 2.18.4 from /usr/local/lib/python2.7/dist-packages
certifi>=2017.4.17: 2018.1.18 from /usr/local/lib/python2.7/dist-packages
chardet<3.1.0,>=3.0.2: 3.0.4 from /usr/local/lib/python2.7/dist-packages
idna<2.7,>=2.5: 2.6 from /usr/local/lib/python2.7/dist-packages
urllib3<1.23,>=1.21.1: 1.22 from /usr/local/lib/python2.7/dist-packages
Mopidy-Spotify: 3.1.0 from /usr/lib/python2.7/dist-packages
Mopidy>=2.0: 2.1.0 from /usr/lib/python2.7/dist-packages
Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
requests>=2.0: 2.18.4 from /usr/local/lib/python2.7/dist-packages
certifi>=2017.4.17: 2018.1.18 from /usr/local/lib/python2.7/dist-packages
chardet<3.1.0,>=3.0.2: 3.0.4 from /usr/local/lib/python2.7/dist-packages
idna<2.7,>=2.5: 2.6 from /usr/local/lib/python2.7/dist-packages
urllib3<1.23,>=1.21.1: 1.22 from /usr/local/lib/python2.7/dist-packages
tornado>=3.2: 4.5.3 from /usr/local/lib/python2.7/dist-packages
singledispatch: 3.4.0.3 from /usr/local/lib/python2.7/dist-packages
six: 1.11.0 from /usr/local/lib/python2.7/dist-packages
certifi: 2018.1.18 from /usr/local/lib/python2.7/dist-packages
backports_abc>=0.4: 0.5 from /usr/local/lib/python2.7/dist-packages
Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
pyspotify>=2.0.5: 2.0.5 from /usr/lib/python2.7/dist-packages
cffi>=1.0.0: 1.11.4 from /usr/local/lib/python2.7/dist-packages
pycparser: 2.18 from /usr/local/lib/python2.7/dist-packages
requests>=2.0: 2.18.4 from /usr/local/lib/python2.7/dist-packages
certifi>=2017.4.17: 2018.1.18 from /usr/local/lib/python2.7/dist-packages
chardet<3.1.0,>=3.0.2: 3.0.4 from /usr/local/lib/python2.7/dist-packages
idna<2.7,>=2.5: 2.6 from /usr/local/lib/python2.7/dist-packages
urllib3<1.23,>=1.21.1: 1.22 from /usr/local/lib/python2.7/dist-packages
GStreamer: 1.8.3.0 from /usr/lib/python2.7/dist-packages/gi
Detailed information:
Python wrapper: python-gi 3.20.0
Relevant elements:
Found:
uridecodebin
souphttpsrc
appsrc
alsasink
osssink
oss4sink
pulsesink
id3demux
id3v2mux
lamemp3enc
mad
mpegaudioparse
mpg123audiodec
vorbisdec
vorbisenc
vorbisparse
oggdemux
oggmux
oggparse
flacdec
flacparse
shout2send
Not found:
flump3dec

any idea ? As I have python 2.7 & 3.5 installed…

It just looks like an SSL installation problem. You could try reinstalling pyopenssl.

1 Like

Thank you a lot ! It worked, and I can access spotify now.