Mopidy doesn't see mopidy_tunein

I installed mopidy on raspberry pi via apt-get.
I installed MusicBox_Webclient using pip
I installed Mopidy_TuneIn using pip
I added [tunein] config section to mopidy.conf

When I start mopidy I see:

INFO     Starting Mopidy 0.19.4
INFO     Loading config from: builtin defaults, /usr/share/mopidy/conf.d, /etc/mopidy/mopidy.conf, command line options
INFO     Enabled extensions: spotify, mpd, alsamixer, http, stream, musicbox_webclient
INFO     Disabled extensions: softwaremixer, local

No sign of ‘tunein’.

Installing it yielded:

root@musicbox01:/var/log/mopidy# pip install Mopidy-TuneIn
Downloading/unpacking Mopidy-TuneIn
  Downloading Mopidy_TuneIn-0.1.2-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): Mopidy>=0.18 in /usr/lib/python2.7/dist-packages (from Mopidy-TuneIn)
Requirement already satisfied (use --upgrade to upgrade): distribute in /usr/lib/python2.7/dist-packages (from Mopidy-TuneIn)
Requirement already satisfied (use --upgrade to upgrade): Pykka>=1.1 in /usr/lib/python2.7/dist-packages (from Mopidy-TuneIn)
Downloading/unpacking requests>=2.0.0 (from Mopidy-TuneIn)
  Downloading requests-2.4.3-py2.py3-none-any.whl (459kB): 459kB downloaded
Requirement already satisfied (use --upgrade to upgrade): tornado>=2.3 in /usr/lib/python2.7/dist-packages (from Mopidy>=0.18->Mopidy-TuneIn)
Installing collected packages: Mopidy-TuneIn, requests
Successfully installed Mopidy-TuneIn requests
Cleaning up...

Contents of /usr/local/lib/python2.7/dist-packages:

mopidy_musicbox_webclient
Mopidy_MusicBox_Webclient-1.0.3.egg-info
mopidy_tunein
Mopidy_TuneIn-0.1.2.dist-info
pip
pip-1.5.6.egg-info
requests
requests-2.4.3.dist-info

What’s the output of this command?

mopidy deps

Hi Stein,

This is the output of ‘mopidy deps’:

Platform: Linux-3.12.28+-armv6l-with-debian-7.6
Python: CPython 2.7.3 from /usr/lib/python2.7
Mopidy: 0.19.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
Mopidy-MusicBox-Webclient: 1.0.3 from /usr/local/lib/python2.7/dist-packages
  setuptools: 0.6c11 from /usr/lib/python2.7/dist-packages
  Mopidy>=0.19: 0.19.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
Mopidy-ALSAMixer: 1.0.3 from /usr/share/mopidy
  Mopidy>=0.19: 0.19.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
  Pykka>=1.1: 1.2.0 from /usr/lib/python2.7/dist-packages
  pyalsaaudio: 0.5 from /usr/lib/pymodules/python2.7
Mopidy-Spotify: 1.2.0 from /usr/share/mopidy
  Mopidy>=0.18: 0.19.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
  Pykka>=1.1: 1.2.0 from /usr/lib/python2.7/dist-packages
  pyspotify>=1.9,<1.999: 1.11 from /usr/lib/pymodules/python2.7
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
        id3demux
        id3v2mux
        lame
        mad
        mp3parse
        vorbisdec
        vorbisenc
        vorbisparse
        oggdemux
        oggmux
        oggparse
        flacdec
        flacparse
        shout2send
      Not found:
        pulsesink
        flump3dec

Thanks for looking into this.

Marc

Ok, it’s not found by Mopidy at all, and thus not by setuptools/pkg_resources.

I tried creating a new empty virtualenv, installed Mopidy and Mopidy-TuneIn, and Mopidy-TuneIn was found on the first run of Mopidy, so there’s nothing wrong with the Mopidy-TuneIn package from PyPI.

Can you try uninstalling and reinstalling Mopidy-TuneIn?

sudo pip uninstall Mopidy-TuneIn
sudo pip install Mopidy-TuneIn

I know this is an old post but i just wanted to say i had the same problem.

Installing the tunein package from apt sources instead of using pip fixed this.

So don’t use: sudo python3 -m pip install Mopidy-TuneIn
or uninstall using sudo python3 -m pip uninstall Mopidy-TuneIn

but use: sudo apt install mopidy-tunein

Now you can browse through the tunein stations