Not working after plugin installation

Hello,

After a plugin installation, mopidy is not longer running.
I try to uninstall all (apt source for mopidy and some plugins by pip), and just reinstall the package Mopidy from apt source. But it’s still not working. I have an error at launch.

pi@raspberrypi ~ $ mopidy
Traceback (most recent call last):
  File "/usr/bin/mopidy", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2707, in <module>
    working_set.require(__requires__)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 686, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 584, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: certifi
pi@raspberrypi ~ $ which mopidy
/usr/bin/mopidy
pi@raspberrypi ~ $ mopidy deps
Traceback (most recent call last):
  File "/usr/bin/mopidy", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2707, in <module>
    working_set.require(__requires__)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 686, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 584, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: certifi

Thanks.

certifi is a dependency of Tornado >= 4.0. Neither Debian, Ubuntu or Raspbian come with a newer Tornado than 3.2 yet. Thus this indicates that you have remnants of Tornado from pip installed.

Try removing any pip-installed certifi and Tornado completely:

sudo pip uninstall certifi tornado

You should already have an apt-installed Tornado as the python-tornado package is a dependency of the mopidy Debian package.

Hello,

Thanks for the fast answer.
And this help solved my problem.
You can close this issue.

Merci :smiley:

Hi,

Your help solved my first problem but now i cant install new plugins.
If I install a plugin by pip, the mopidy server dont load him.
For exemple I try to install musicbox web client with this command :

sudo pip install Mopidy-MusicBox-Webclient

But i cant find him after a restart of the mopidy service.

pi@raspberrypi ~ $ sudo cat /etc/mopidy/mopidy.conf
[logging]
config_file = /etc/mopidy/logging.conf
debug_file = /var/log/mopidy/mopidy-debug.log

[local]
data_dir = /var/lib/mopidy/local
media_dir = /var/lib/mopidy/media

[m3u]
playlists_dir = /var/lib/mopidy/playlists

[musicbox_webclient]
enabled = true
musicbox = false

[http]
enabled = true
hostname = 0.0.0.0
port = 6680
static_dir =
zeroconf = Mopidy HTTP server on $hostname
pi@raspberrypi ~ $ sudo mopidyctl deps
Running "/usr/bin/mopidy --config /usr/share/mopidy/conf.d:/etc/mopidy/mopidy.conf deps" as user mopidy
X11 connection rejected because of wrong authentication.
Executable: /usr/bin/mopidy
Platform: Linux-3.18.13-v7+-armv7l-with-debian-7.8
Python: CPython 2.7.3 from /usr/lib/python2.7
Mopidy: 1.0.4 from /usr/lib/python2.7/dist-packages
  Pykka>=1.1: 1.2.0 from /usr/lib/python2.7/dist-packages
  tornado>=2.3: 2.3 from /usr/lib/python2.7/dist-packages
GStreamer: 0.10.36.0 from /usr/lib/python2.7/dist-packages/gst-0.10/gst
  Detailed information:
    Python wrapper: gst-python 0.10.22.0
    Relevant elements:
      Found:
        uridecodebin
        souphttpsrc
        appsrc
        alsasink
        osssink
        oss4sink
        pulsesink
        id3demux
        id3v2mux
        lame
        mad
        mp3parse
        vorbisdec
        vorbisenc
        vorbisparse
        oggdemux
        oggmux
        oggparse
        flacdec
        flacparse
        shout2send
      Not found:
        flump3dec

Ok, i found one solution.

Uninstall all python package by using :

pip freeze | xargs pip uninstall -y

And reinstall mopidy :smile: