-
Notifications
You must be signed in to change notification settings - Fork 103
Description
Hey guys, I know this is a 3-year-old project, but I've been working on my own build. I have very little background in coding, but honestly far it's going decently well--today I really learned my way around linux, and was able to authenticate everything and get my access token in the .cache folder in /frontend. I've confirmed this numerous times via ls -a
and attempting to edit via sudo nano
, which displays the long, gibberishy access token and whatnot. It's worth noting that I've already done the "final steps" of the install per XEROxMEXICANO's guide.
But EVERY SINGLE TIME I try to run any of the test scripts from /frontend, I get the same or similar error codes as everyone who DIDN'T have the proper .cache setup. At first I thought there was maybe an issue with the server name in the spotipy code (the one displayed below as 127.0.0.1), so I tried changing it in oauth2.py, but I don't think that helped anything. Any help would be so appreciated. I know @doris1347 has still been somewhat present in here.
Traceback (most recent call last): File "/home/pi/retro-ipod-spotify-client/frontend/view_model.py", line 18, in <module> spotify_manager.refresh_data() File "/home/pi/retro-ipod-spotify-client/frontend/spotify_manager.py", line 203, in refresh_data results = sp.current_user_saved_tracks(limit=pageSize, offset=0) File "/home/pi/.local/lib/python3.9/site-packages/spotipy/client.py", line 1302, in current_user_saved_tracks return self._get("me/tracks", limit=limit, offset=offset, market=market) File "/home/pi/.local/lib/python3.9/site-packages/spotipy/client.py", line 327, in _get return self._internal_call("GET", url, payload, kwargs) File "/home/pi/.local/lib/python3.9/site-packages/spotipy/client.py", line 251, in _internal_call headers = self._auth_headers() File "/home/pi/.local/lib/python3.9/site-packages/spotipy/client.py", line 242, in _auth_headers token = self.auth_manager.get_access_token(as_dict=False) File "/home/pi/.local/lib/python3.9/site-packages/spotipy/oauth2.py", line 525, in get_access_token "code": code or self.get_auth_response(), File "/home/pi/.local/lib/python3.9/site-packages/spotipy/oauth2.py", line 480, in get_auth_response return self._get_auth_response_local_server(redirect_port) File "/home/pi/.local/lib/python3.9/site-packages/spotipy/oauth2.py", line 447, in _get_auth_response_local_server server = start_local_http_server(redirect_port) File "/home/pi/.local/lib/python3.9/site-packages/spotipy/oauth2.py", line 1285, in start_local_http_server server = HTTPServer(("127.0.0.1", port), handler) File "/usr/lib/python3.9/socketserver.py", line 452, in __init__ self.server_bind() File "/usr/lib/python3.9/http/server.py", line 138, in server_bind socketserver.TCPServer.server_bind(self) File "/usr/lib/python3.9/socketserver.py", line 466, in server_bind self.socket.bind(self.server_address) OSError: [Errno 98] Address already in use
In addition, now I'm getting errors like this
Couldn't read cache at: .cache Couldn't read cache at: .cache
which never showed up before (even when the same issues were present as above), and shouldn't be now, because I've confirmed that .cache is in the right place.
and this
`** (x-www-browser:1155): CRITICAL **: 01:15:01.837: WebKitWebView web-context property can't be set when related-view is set too, passed web-context value is ignored.
** (x-www-browser:1155): CRITICAL **: 01:15:02.059: session.vala:278: Failed add tab to session database: Invalid type '(null)' in statement:
INSERT INTO tabs (crdate, tstamp, session_id, uri, title)
VALUES (:crdate, :tstamp, :session_id, :uri, :title)
`
Any help would be the best ever. Thank you so much!