kodi-community-addons / plugin.audio.spotify

Unofficial spotify plugin for Kodi
GNU General Public License v3.0
295 stars 103 forks source link

Can't login on RPi #94

Closed franksny closed 6 years ago

franksny commented 6 years ago

I have a Rasberry Pi running OSMC. I have been using this addon for a year or so (thanks!) but about two weeks ago I started having problems to login. Tested same account on Windows x64 and works fine.

Kodi log shows this: ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <type 'exceptions.SyntaxError'> Error Contents: unexpected EOF while parsing (, line 0) Traceback (most recent call last): File "/home/osmc/.kodi/addons/plugin.audio.spotify/service.py", line 14, in MainService() File "/home/osmc/.kodi/addons/plugin.audio.spotify/resources/lib/main_service.py", line 60, in init self.renew_token() File "/home/osmc/.kodi/addons/plugin.audio.spotify/resources/lib/main_service.py", line 167, in renew_token username = self.get_username() File "/home/osmc/.kodi/addons/plugin.audio.spotify/resources/lib/main_service.py", line 134, in get_username username = self.spotty.get_username() File "/home/osmc/.kodi/addons/plugin.audio.spotify/resources/lib/utils.py", line 522, in get_username data = eval(data) File "", line 0

^

SyntaxError: unexpected EOF while parsing -->End of Python script error report<--

KarolisL commented 6 years ago

I've also stumbled this issue. It's related to some nasty spotify authentication code (on this plugin's, not spotify end).

This is caused by an empty file, just delete it:

rm /home/osmc/.kodi/userdata/addon_data/plugin.audio.spotify/credentials.json

It should fix your problem.

franksny commented 6 years ago

Thanks! It works perfect now!