i take the configuration like given on GitHub, but this happens:
INFO Starting Mopidy backends: RadioDeBackend, StreamBackend, M3UBackend, FileBackend, SpotifyBackend, SpotifyTunigoBackend
ERROR Got un-handled exception from RadioDeBackend
Traceback (most recent call last):
File “/usr/lib/python2.7/dist-packages/mopidy/commands.py”, line 237, in _actor_error_handling
yield
File “/usr/lib/python2.7/dist-packages/mopidy/commands.py”, line 385, in start_backends
config=config, audio=audio).proxy()
File “/usr/lib/python2.7/dist-packages/pykka/actor.py”, line 94, in start
obj = cls(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/mopidy_radio_de/actor.py”, line 48, in init
proxy=proxy)
File “/usr/local/lib/python2.7/dist-packages/mopidy_radio_de/api.py”, line 57, in init
if len(proxy):
TypeError: object of type ‘NoneType’ has no len()
My Configuration:
[radio-de]
enabled = true
language = german
favorites = Tagesschau, NDR 2, NDR Kultur
if you still have the problem, there is a fix from the author of the mopidy-radio-de plugin which is already on GitHub itself. However, I think, the fix is not included when you install the plugin using “pip” (see https://github.com/hechtus/mopidy-radio-de/issues/10) - which was also the problem in my case now.
How to fix it manually (assuming current raspbian linux)
If you want to manually fix the issue, see which file and what has changed here.
If you have installed the plugin with “sudo pip install mopidy-radio-de”, you just have to modify two lines and recompile the source files. The plugin and source files might have been downloaded to “/usr/local/lib/python2.7/dist-packages/mopidy_radio_de/” on your system.
Switch to that folder
Open the file “api.py” with an editor of your choice
Navigate to the appropriate lines which are listed in the link above and fix the issues manually, i.e.: change “proxy=None” instead of " proxy=’’ " and change “proxy is not None” instead of “len(proxy)”
Save the file and exit the editor
Remove the currently existing compiled file and recompile everything in that folder (or only the file) with:
sudo rm ./api.pyc (attention: use the correct extionsion with c at the end!)
sudo python -m compileall .