-
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
Persistent, unresolvable issues with ERRNO 98: Address already in use #73
Comments
@doris1347 thank you so much for reaching out!! Yeah, at some point during the process earlier I realized that the version of Raspbian I’m using was on Python 3.9 instead of 3.7… you think that could be part of it? I’m using Raspotify 14, I believe—whichever one was recommended by everyone as the older one to download. I’m also running the legacy version of Raspberry OS Lite. Screen is a wave share 240x320, not hooked up at the moment, so I’m VNCing or SSHing in to do all my work. |
Could be your problem. |
@doris1347 Not really sure. Might have run an update and accidentally installed it? I definitely installed the legacy version though, so idk what's up. Incidentally, pip is gone as well, despite working perfectly through most of the process. I would think that python 3.9 and 3.7 would be similar enough that it wouldn't be an issue, but maybe the slight differences are big enough to mess it up? At one point I had to change some commands to reference python3.9/site-packages instead of the usual python3.7/site-packages. Am I cooked? Should I just start over? Or is there some way I can downgrade my python version? Honestly could probably redo everything in ~2 hours now that I've learned what I'm doing a bit better. |
What's your redirect uri? I had to do a whole load of testing/combinations of uri's to get it to work. I think http uri doesn't work. has to be https. Give it a try and let us know |
Were you able to get things working? see issue #78 |
I gave up haha. Lately, though, I've been getting much better with Linux and terminal and all that, so I'm thinking about getting back at it. Part of the issue may have been that I was using a Pi Zero 1. I'll try running through some of the setup in VirtualBox this weekend and see if I get any farther before trying to fix the hardware up (the wiring instructions from Ricardo were unclear). |
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 viasudo 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!
The text was updated successfully, but these errors were encountered: