-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spotifypod Doesnt Pull Content - Variables are not being stored - and token always expires #40
Comments
OK so i have solved the issue of ENV variables being SAVED ETERNALLY in the PI so the DISPLAY works however "return SinglePlaylistPage(self.playlists[index], self) any advise why the index is out of range? anyone have this isue? |
ok "return SinglePlaylistPage(self.playlists[index], self) this error is due to NO REFRESH OF DATA when i correctly followed step number 11 in README
HERE IS THE NEW PROBLEM playing spotify:playlist:29PsqPqwo71yUQzyaryJOf spotify:track:3OdCM4mNHCva1AjihjcaUQ anyone know why i get this error hoping this running commentary helps someone |
Hello I'm also stuck on playing spotify:playlist:5rXvAMHLUmJ83Qyeq4YSuN spotify:track:1VcEVxnZN3OeubcwPvI7MN Did you end up finding the solution? |
See Issues 65,66,69 and 78 |
hi
so my issues at this juncture
so i end up running - python3 Spotifypod.py
and each time i will get the same series of errors
ERROR 1- it will say the access token has expired
so i take the steps to "https://accounts.spotify.com/authorize?client_id=....." in PI BROWSER - it returns the callback to the REDIRECT URL - and I can ENTER THE URL into the Spotifypod.py when it requests "what is the URL Spotify redirected you to"
I have a .CACHE file - and it reads logically - showing the Access Token, Refresh Token, Timeout, Scopes.
i have also generated an access token through "Curl -h Authorization" direct to spotify/api/token
this will deliver an access token as well - and i can replace the contents of the .cache file in FRONTEND folder and it will resolve the expired token issue
but again - within the hour i will experience the same error - "invalid access token"
ERROR 2 - once i am past the invalid token error - i will get an error that states i must declare my CLIENT ID
here is the error
"spotipy.oauth2.SpotifyOauthError: No client_id. Pass it or set a SPOTIPY_CLIENT_ID environment variable."
so set these AGAIN
export SPOTIPY_CLIENT_ID='XXXXX'
export SPOTIPY_CLIENT_SECRET='XXXXX'
export SPOTIPY_REDIRECT_URI='XXXXX'
but i have these variables already declared in the necessary areas - and i can check
env | grep SPOTIPY
and the variables are there
so why does it forget each time i do the SPOTIFYPOD.PY?
ERROR 3 - tkinter cannot display on localhost:10.1
so i AGAIN enter the following
"export DISPLAY=:0.0"
and this resolves this issue
ERROR 4 - so now i run the Spotifypod.py
and the SPOT screen renders and i see the following - see screenshot
this is great - i finally get this SPOT to function and display
however when you navigate to the any of these items - for example PLAYLISTS - everything is EMPTY
there is nothing underneath
meanwhile - the Spotifypod.py is still running in PUTTY
and
these errors are generating
"return SinglePlaylistPage(self.playlists[index], self)
IndexError: list index out of range"
or other times
"no ints
no ints
Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python3.7/tkinter/init.py", line 1705, in call
return self.func(*args)
File "spotifypod.py", line 454, in onKeyPress
onSelectPressed()
File "spotifypod.py", line 517, in onSelectPressed
page = page.nav_select()
File "/home/pi/retro-ipod-spotify-client/frontend/view_model.py", line 260, in nav_select
return self.page_at(self.index)
File "/home/pi/retro-ipod-spotify-client/frontend/view_model.py", line 384, in page_at
artist = spotify_manager.DATASTORE.getArtist(index)
File "/home/pi/retro-ipod-spotify-client/frontend/datastore.py", line 103, in getArtist
return pickle.loads(pickled_pl)
TypeError: a bytes-like object is required, not 'NoneType'
Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python3.7/tkinter/init.py", line 1705, in call
return self.func(*args)
File "spotifypod.py", line 454, in onKeyPress
onSelectPressed()
File "spotifypod.py", line 517, in onSelectPressed
page = page.nav_select()
File "/home/pi/retro-ipod-spotify-client/frontend/view_model.py", line 260, in nav_select
return self.page_at(self.index)
File "/home/pi/retro-ipod-spotify-client/frontend/view_model.py", line 384, in page_at
artist = spotify_manager.DATASTORE.getArtist(index)
File "/home/pi/retro-ipod-spotify-client/frontend/datastore.py", line 103, in getArtist
return pickle.loads(pickled_pl)
TypeError: a bytes-like object is required, not 'NoneType'"
does anyone have any clues as to how to resolve the above ?
thanks in advance
paulo
The text was updated successfully, but these errors were encountered: