TuneIn not working after upgrade to Ubuntu 21, Mopidy 3.2

hey friends,

Just upgraded my pi-based mopidy installation to Ubuntu 21, aka Hirsute Hippo and got the bump to Mopidy v3.2. Nice so far!

After troubleshooting some missing plugins, namely IRIS, and reinstalling through pip, I noticed TuneIn wasn’t available in my list of browse plugins.

journalctl -u mopidy gives me this:

Feb 08 12:26:25 pavi mopidy[2743]: INFO     [MainThread] mopidy.__main__ Enabled extensions: tunein, alsamixer, m3u, file, http, podcast, softwaremixer, stream, iris, local
Feb 08 12:26:25 pavi mopidy[2743]: INFO     [MainThread] mopidy.__main__ Disabled extensions: none
Feb 08 12:26:26 pavi mopidy[2743]: ERROR    [MainThread] mopidy.__main__ Extension stream failed during setup. This might have left the registry in a bad state.
Feb 08 12:26:26 pavi mopidy[2743]: Traceback (most recent call last):
Feb 08 12:26:26 pavi mopidy[2743]:   File "/usr/lib/python3/dist-packages/mopidy/__main__.py", line 129, in main
Feb 08 12:26:26 pavi mopidy[2743]:     extension.setup(registry)
Feb 08 12:26:26 pavi mopidy[2743]:   File "/usr/lib/python3/dist-packages/mopidy/stream/__init__.py", line 28, in setup
Feb 08 12:26:26 pavi mopidy[2743]:     from .actor import StreamBackend
Feb 08 12:26:26 pavi mopidy[2743]:   File "/usr/lib/python3/dist-packages/mopidy/stream/actor.py", line 12, in <module>
Feb 08 12:26:26 pavi mopidy[2743]:     from mopidy.internal import http, playlists
Feb 08 12:26:26 pavi mopidy[2743]:   File "/usr/lib/python3/dist-packages/mopidy/internal/http.py", line 4, in <module>
Feb 08 12:26:26 pavi mopidy[2743]:     import requests
Feb 08 12:26:26 pavi mopidy[2743]:   File "/usr/lib/python3/dist-packages/requests/__init__.py", line 119, in <module>
Feb 08 12:26:26 pavi mopidy[2743]:     from . import packages
Feb 08 12:26:26 pavi mopidy[2743]:   File "/usr/lib/python3/dist-packages/requests/packages.py", line 7, in <module>
Feb 08 12:26:26 pavi mopidy[2743]:     locals()[package] = __import__(package)
Feb 08 12:26:26 pavi mopidy[2743]: ModuleNotFoundError: No module named 'idna'
Feb 08 12:26:26 pavi mopidy[2743]: ERROR    [MainThread] mopidy.__main__ Extension tunein failed during setup. This might have left the registry in a bad state.
Feb 08 12:26:26 pavi mopidy[2743]: Traceback (most recent call last):
Feb 08 12:26:26 pavi mopidy[2743]:   File "/usr/lib/python3/dist-packages/mopidy/__main__.py", line 129, in main
Feb 08 12:26:26 pavi mopidy[2743]:     extension.setup(registry)
Feb 08 12:26:26 pavi mopidy[2743]:   File "/usr/lib/python3/dist-packages/mopidy_tunein/__init__.py", line 27, in setup
Feb 08 12:26:26 pavi mopidy[2743]:     from .actor import TuneInBackend
Feb 08 12:26:26 pavi mopidy[2743]:   File "/usr/lib/python3/dist-packages/mopidy_tunein/actor.py", line 5, in <module>
Feb 08 12:26:26 pavi mopidy[2743]:     import requests
Feb 08 12:26:26 pavi mopidy[2743]:   File "/usr/lib/python3/dist-packages/requests/__init__.py", line 119, in <module>
Feb 08 12:26:26 pavi mopidy[2743]:     from . import packages
Feb 08 12:26:26 pavi mopidy[2743]:   File "/usr/lib/python3/dist-packages/requests/packages.py", line 7, in <module>
Feb 08 12:26:26 pavi mopidy[2743]:     locals()[package] = __import__(package)
Feb 08 12:26:26 pavi mopidy[2743]: ModuleNotFoundError: No module named 'idna'

looks like an install of “idna” via pip is what I need to do, but just wondering if anyone has any other thoughts before I do this.

cheers!

Update: I went ahead and ran sudo python3 -m pip install idna and after a restart of the mopidy server, it’s reappeared in my list. Hope this helps someone!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.