Open SerdarARIKAN opened 9 months ago
Try again after exiting Kodi. If it fails again then you need to look at the Kodi log for more error information. If you can get the log to me using pastebin or hastebin then I can help.
Same here. Can't Login.
`2023-11-29 18:21:27.002 T:1092 info
2023-11-29 18:21:28.429 T:1092 info
I'm not sure what device you're using but for some reason the authorisation command is failing. This is usually an incorrect username or password (you can check these in "/storage/.kodi/userdata/addon_data/plugin.audio.spotify/settings.xml").
If you can get to a command line, can you run the authorisation command:
/storage/.kodi/addons/plugin.audio.spotify/resources/lib/deps/spotty/x86-linux/spotty-muslhf --cache /home/greg/.kodi/userdata/addon_data/plugin.audio.spotify/spotty-cache --ap-port 54443 --verbose --enable-audio-cache --name temp-spotty --get-token --client-id 2eb96f9b37494be1824999d58028a305 --scope user-read-playback-state,user-read-currently-playing,user-modify-playback-state,playlist-read-private,playlist-read-collaborative,playlist-modify-public,playlist-modify-private,user-follow-modify,user-follow-read,user-library-read,user-library-modify,user-read-private,user-read-email,user-read-birthdate,user-top-read -u SPOTIFY_USER_NAME -p PASSWORD
where you put in your user name and password instead of SPOTIFY_USER_NAME and PASSWORD. If it succeeds you should get something like
{"accessToken":"BQCaYudMOY.....","expiresIn":3600}
as output.
Same here. Can't Login. `2023-11-29 18:21:27.002 T:1092 info : plugin.audio.spotify:spotty:run_spotty: Spotty args: /storage/.kodi/addons/plugin.audio.spotify/resources/lib/deps/spotty/arm-linux/spott> 2023-11-29 18:21:27.419 T:1092 info : plugin.audio.spotify:spotty_auth:get_token: Spotty stdout: b'{"error":"Failed to create session or connect to servers."}\n' 2023-11-29 18:21:28.423 T:1092 warning : plugin.audio.spotify:main_service:get_retry_auth_token: Took 20 retries to get authorization token. 2023-11-29 18:21:28.427 T:1092 error : EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <class 'Exception'> Error Contents: Could not get Spotify auth token for user '1146105155'. Traceback (most recent call last): File "/storage/.kodi/addons/plugin.audio.spotify/service.py", line 19, in MainService().run() File "/storage/.kodi/addons/plugin.audio.spotify/resources/lib/main_service.py", line 85, in run self.renew_token() File "/storage/.kodi/addons/plugin.audio.spotify/resources/lib/main_service.py", line 124, in __renew_token raise Exception( Exception: Could not get Spotify auth token for user 'xxxxxxxxxx'. -->End of Python script error report<--
2023-11-29 18:21:28.429 T:1092 info : CPythonInvoker(0, /storage/.kodi/addons/plugin.audio.spotify/service.py): waiting on thread 3376411264`
Rollback to 1.3.7 worked for me. It feels like a bug in latest version.
There weren't many changes from1.3.7 but it could be something wrong on the 'spotty' command line. The extract from the log you showed is a bit truncated. Can you get me a bigger section of the kodi log. I need to see the full spotty command line and it's response. The kodi log should contain a number of full command lines something like this:
/storage/.kodi/addons/plugin.audio.spotify/resources/lib/deps/spotty/x86-linux/spotty-muslhf --cache /home/greg/.kodi/userdata/addon_data/plugin.audio.spotify/spotty-cache --ap-port 54443 --verbose --enable-audio-cache --name temp-spotty --get-token --client-id 2eb96f9b37494be1824999d58028a305 --scope user-read-playback-state,user-read-currently-playing,user-modify-playback-state,playlist-read-private,playlist-read-collaborative,playlist-modify-public,playlist-modify-private,user-follow-modify,user-follow-read,user-library-read,user-library-modify,user-read-private,user-read-email,user-read-birthdate,user-top-read -u SPOTIFY_USER_NAME -p PASSWORD
Sorry seems to be a wrong password in my case... Now login worked but it only plays some seconds and then it stops.
Hi, this was an issue for me too on 1.3.8 and replacing it with 1.3.7 worked for me like it did for @devbar. I'm on a Raspberry Pi 4 (aarch64) running Raspberry Pi OS Bookworm with Python 3.11.
Thanks for the add-on! Much appreciated.
Hi Guys, I've tried 1.3.8 with Ubuntu, Windows 10, and FireCube (Android 9, arm) and it seems OK. Can one of you give a log with the failed login (either hastebin or pastebin would do). Otherwise I'm not sure what I can do to fix this. Thanks.
Same problem here with any version of addon. I’m using Kodi with LibreElec 11.0.4 on RPi4.
I don’t have logs right now but I will give you when I can.
[EDIT]
This is what I got from logs
Thanks. If you can get me the full logs that would be great.
There’s the log when trying connection
2024-01-05 23:16:03.863 T:19077 error
2024-01-05 23:16:04.871 T:19076 info
2024-01-05 23:16:04.892 T:19076 info
OK, thanks. Can you check the settings file ".kodi/userdata/addon_data/plugin.audio.spotify/settings.xml"? The plugin should be looking for 'username' in there. Also, can you set logging to 'Debug' and try again and send me the log? Thanks
Hi, i am on libreelec 11 nightly from 20231216, Kodi 20.2.0 The login on spotify works fine. I can browse my content. When trying to play a song it does not work but give an error. I will provide an errorlog later.
Had an issue with a login the first time, but a reboot after setting up my credentials seems to have fixed it.
i also got that error, will reboot and see if that helps. i mean, its a linux, would wonder me if i have to reboot to be able to login to a spotify app :D
reboot did not help
2024-01-23 20:18:09.681 T:3740 info <general>: plugin.audio.spotify:spotty:run_spotty: Spotty args: /storage/.kodi/addons/plugin.audio.spotify/resources/lib/deps/spotty/arm-linux/spotty-muslhf --cache /storage/.kodi/userdata/addon_data/plugin.audio.spotify/spotty-cache --ap-port 54443 --verbose --enable-audio-cache --name temp-spotty --get-token --client-id xxx --scope user-read-playback-state,user-read-currently-playing,user-modify-playback-state,playlist-read-private,playlist-read-collaborative,playlist-modify-public,playlist-modify-private,user-follow-modify,user-follow-read,user-library-read,user-library-modify,user-read-private,user-read-email,user-read-birthdate,user-top-read -u xxx@xxx.de -p ****
2024-01-23 20:18:09.911 T:3740 info <general>: plugin.audio.spotify:spotty_auth:get_token: Spotty stdout: b'{"error":"Failed to create session or connect to servers."}\n'
2024-01-23 20:18:10.913 T:3740 warning <general>: plugin.audio.spotify:main_service:__get_retry_auth_token: Took 20 retries to get authorization token.
2024-01-23 20:18:10.915 T:3740 error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'Exception'>
Error Contents: Could not get Spotify auth token for user 'xxx@xxx.de'.
Traceback (most recent call last):
File "/storage/.kodi/addons/plugin.audio.spotify/service.py", line 21, in <module>
MainService().run()
File "/storage/.kodi/addons/plugin.audio.spotify/resources/lib/main_service.py", line 87, in run
self.__renew_token()
File "/storage/.kodi/addons/plugin.audio.spotify/resources/lib/main_service.py", line 130, in __renew_token
raise Exception(
Exception: Could not get Spotify auth token for user 'xxx@xxx.de'.
-->End of Python script error report<--
2024-01-23 20:18:10.915 T:3740 info <general>: CPythonInvoker(1, /storage/.kodi/addons/plugin.audio.spotify/service.py): waiting on thread 3368022720
its a 3 month test abo, so guess i wont be able to use that with kodi
It works fine on a pi 4 and libreelec 11 nightly for me now.
Hi @glk1001 thank you for all your efforts. I also have problem logging in for Kodi. When I follow your steps from CLI , I get the correct response as you mentioned:
/home/osmc/.kodi/addons/plugin.audio.spotify/resources/lib/deps/spotty/arm-linux/spotty-muslhf --cache /home/greg/.kodi/userdata/addon_data/plugin.audio.spotify/spotty-cache --ap-port 54443 --verbose --enable-audio-cache --name temp-spotty --get-token --client-id 2eb96f9b37494be1824999d58028a305 --scope user-read-playback-state,user-read-currently-playing,user-modify-playback-state,playlist-read-private,playlist-read-collaborative,playlist-modify-public,playlist-modify-private,user-follow-modify,user-follow-read,user-library-read,user-library-modify,user-read-private,user-read-email,user-read-birthdate,user-top-read -u ****** -p *****
returns: {"accessToken":"BQARlRv9mxXgp.........","expiresIn":3600}
In the Log I see: /home/osmc/.kodi/addons/plugin.audio.spotify/resources/lib/deps/spotty/arm-linux/spotty-muslhf --cache /home/osmc/.kodi/userdata/addon_data/plugin.audio.spotify/spotty-cache --ap-port 54443 --verbose --enable-audio-cache --name temp-spotty --get-token --client-id 2eb96f9b37494be1824999d58028a305 --scope user-read-playback-state,user-read-currently-playing,user-modify-playback-state,playlist-read-private,playlist-read-collaborative,playlist-modify-public,playlist-modify-private,user-follow-modify,user-follow-read,user-library-read,user-library-modify,user-read-private,user-read-email,user-read-birthdate,user-top-read -u -p
with response: info
I (quadruppel)checked settings in settings.xml and they are ok.
I tried hardcoding user and pw directly in spotty_helper.py but that did not work either. Then tried to go to version 1.37 as some reported but that also did not help at first. After rebooting it worked finally. (to be honest I did not reboot after hardcoding user and pw)
Not quite sure if I'm doing things properly, but - is this addon suitable for use with non-premium Spotify account (provided is kind of fork from Marcelveldt addon)? If not, please disregard this message.
Second question: Is it suitable for use under Raspberry PI5 - LibreELEC 11.0.6 - Kodi 20.3 Nexus? If not, please disregard this message.
And my problem: I've tried addon versions 1.3.7 and 1.3.9 without achieving successful login into my Spotify FREE account.
The Kodi pop-up showing the error states "Spotify login failed. Either no credentials have been set or the Spotify username or password is incorrect. Please check your username and password in the addon settings".
My /storage/.kodi/userdata/addon_data/plugin.audio.spotify/settings.xml file contains the right username and password.
The output of the spotty-muslhf line command is:
{"error":"Failed to create session or connect to servers."}
By the way, I'm wondering about this command. I've used the executable under /storage/.kodi/addons/plugin.audio.spotify/resources/lib/deps/spotty/arm-linux/
(I'm on LibreELEC and RPI5), so I suppose this is the right one. And I've changed the path to cache directory for the one existing on my system: not /home/greg/.kodi/...
but /storage/.kodi/userdata/addon_data/plugin.audio.spotify/spotty-cache
. So my spotty-muslhf command goes like this:
/storage/.kodi/addons/plugin.audio.spotify/resources/lib/deps/spotty/arm-linux/spotty-muslhf --cache /storage/.kodi/userdata/addon_data/plugin.audio.spotify/spotty-cache --ap-port 54443 --verbose --enable-audio-cache --name temp-spotty --get-token --client-id 2eb96f9b37494be1824999d58028a305 --scope user-read-playback-state,user-read-currently-playing,user-modify-playback-state,playlist-read-private,playlist-read-collaborative,playlist-modify-public,playlist-modify-private,user-follow-modify,user-follow-read,user-library-read,user-library-modify,user-read-private,user-read-email,user-read-birthdate,user-top-read -u SPOTIFY_USER_NAME -p PASSWORD
I guess this is right.
Here is my debug enabled log, from Kodi start up to just after Spotify login error.
Any help will be much appreciated...
@Vichman67 i assume it does not work with the free account as it did also not work on mine. i "won" a 3 month free account and was unable to login with kodi.
@Vichman67 i assume it does not work with the free account as it did also not work on mine. i "won" a 3 month free account and was unable to login with kodi.
OK, I'll wait for glk1001 confirmation, but I was suspecting that too. Anyway, thanks for your reply!
Hi, You do need a premium account (see https://github.com/michaelherger/librespot). And it should work on a Raspberry Pi
Thanks a lot!
El dom, 7 abr 2024, 4:17, glk1001 @.***> escribió:
Hi, You do need a premium account (see https://github.com/michaelherger/librespot). And it should work on a Raspberry Pi
— Reply to this email directly, view it on GitHub https://github.com/glk1001/glk1001.github.io/issues/7#issuecomment-2041278955, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADBFLTSRASEXXM3QPOLJTRTY4CUFDAVCNFSM6AAAAAA726FJFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBRGI3TQOJVGU . You are receiving this because you were mentioned.Message ID: @.***>
Addon stopped working and I noticed that there was this new update 1.3.10 to resolve the login issue. I installed and followed the instructions but still can't get it to log in.
I'm still on Nexus so don't know if that is an issue. Also running on W10.
I never saw an option to authenticate, but a windows firewall box did pop up and I accepted. I did seem to be able to connect to spotty on my desktop app, but that didn't resolve the issue.
When I launch Spotify addon it just says login failed. I don't see any option anywhere that were mentioned in the instructions.
I've tried relaunching Kodi and reinstalling the plugin while deleting all data.
Not sure what else to try at this point. Hoping to get it working again as this is my daily music player.
Here's a snippet from the log, but have no idea how to decipher it.
2024-08-17 16:04:45.592 T:4396 error
: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <class 'TypeError'> Error Contents: format_exception() missing 2 required positional arguments: 'value' and 'tb' Traceback (most recent call last): File "C:\Users\spam4\AppData\Roaming\Kodi\addons\plugin.audio.spotify\resources\lib\deps\spotipy\client.py", line 271, in _internal_call response.raise_for_status() File "C:\Users\spam4\AppData\Roaming\Kodi\addons\script.module.requests\lib\requests\models.py", line 1021, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://api.spotify.com/v1/me/
During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\spam4\AppData\Roaming\Kodi\addons\plugin.audio.spotify\resources\lib\plugin_content.py", line 79, in __init__ self.check_auth_and_refresh_spotipy() File "C:\Users\spam4\AppData\Roaming\Kodi\addons\plugin.audio.spotify\resources\lib\plugin_content.py", line 99, in check_auth_and_refresh_spotipy self.init_spotipy(auth_token) File "C:\Users\spam4\AppData\Roaming\Kodi\addons\plugin.audio.spotify\resources\lib\plugin_content.py", line 116, in init_spotipy self.__userid: str = self.__spotipy.me()["id"] File "C:\Users\spam4\AppData\Roaming\Kodi\addons\plugin.audio.spotify\resources\lib\deps\spotipy\client.py", line 1221, in me return self._get("me/") File "C:\Users\spam4\AppData\Roaming\Kodi\addons\plugin.audio.spotify\resources\lib\deps\spotipy\client.py", line 323, in _get return self._internal_call("GET", url, payload, kwargs) File "C:\Users\spam4\AppData\Roaming\Kodi\addons\plugin.audio.spotify\resources\lib\deps\spotipy\client.py", line 293, in _internal_call raise SpotifyException( spotipy.exceptions.SpotifyException: http status: 403, code:-1 - https://api.spotify.com/v1/me/: Check settings on developer.spotify.com/dashboard, the user may not be registered., reason: None During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\spam4\AppData\Roaming\Kodi\addons\plugin.audio.spotify\plugin.py", line 12, in <module> PluginContent() File "C:\Users\spam4\AppData\Roaming\Kodi\addons\plugin.audio.spotify\resources\lib\plugin_content.py", line 93, in __init__ log_exception(exc, "PluginContent init error") File "C:\Users\spam4\AppData\Roaming\Kodi\addons\plugin.audio.spotify\resources\lib\utils.py", line 39, in log_exception log_msg(" ".join(format_exception(exc)), loglevel=LOGERROR, caller_name=the_caller_name) TypeError: format_exception() missing 2 required positional arguments: 'value' and 'tb' -->End of Python script error report<--
Do another install. I've updated the "plugin.audio.spotify-1.3.10.zip" using the old Spotify client_id. The one you tried had a new client_id which turned out to have restrictions. The old client_id doesn't. Other users have had success with the latest .zip so let me know how you go.
Yup, that worked! Thank you so much!
Wish it was all good news but now for some reason it seems to be autoskipping to the next track after a few seconds.
Oh well, a slight improvement. Can you send me your Kodi log and I'll see if there's any clues.
Thanks. Some network issue that is not obvious to me. I did upload a "plugin.audio.spotify-1.3.10-test.zip" that might be worth trying. Let me know if it works.
Initial testing seems that this version has solved the issue. No longer skipping to next track. I'll keep tabs on it and let you know if it starts misbehaving again. Otherwise(fingers crossed), it appears fully functional again for me. Thanks again!
Hey, while I have you here, I've had a question for awhile that's perhaps a long shot in the dark. When you go to artist/album view, it seems to lump in all singles/EPs along with standard album releases, which can get quite cluttered depending on the artist. Am I missing anything as far as sorting goes(aside from making custom playlists)? Is that something that can be addressed at all? Just curious. I don't want to look a gift horse in the mouth. ;)
Hope it keeps working. I'll have a look at Albums. The Spotify web api does seem to have an albums, singles, compilation split. So it should be doable.
Hi there...
I loaded this addon and configure my credantials. But when run return "Spotify login failed. Either no credentials have been set or the Spotify username or password is incorrect. Please check your username and password in the addon settings"
I tryed login with username and mail.
What do you recommend me to do?