Skip to content

Auth not working on Ubuntu 24.04 LTS #31

@Chigup0

Description

@Chigup0

After typing "sp " i showed option for auth, then pressing enter does absolutly nothing , in terminal in showed

  File "/usr/lib/python3/dist-packages/ulauncher/api/client/Client.py", line 54, in on_message
    self.extension.trigger_event(event)
  File "/usr/lib/python3/dist-packages/ulauncher/api/client/Extension.py", line 52, in trigger_event
    action = listener.on_event(event, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/chirag/.local/share/ulauncher/extensions/com.github.the-lay.ulauncher-spotify-api/main.py", line 403, in on_event
    return self.on_item_enter(event.get_data())
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/chirag/.local/share/ulauncher/extensions/com.github.the-lay.ulauncher-spotify-api/main.py", line 1175, in on_item_enter
    self.api.auth_manager.get_access_token()
  File "/home/chirag/.local/lib/python3.12/site-packages/spotipy/oauth2.py", line 882, in get_access_token
    "code": code or self.get_authorization_code(),
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/chirag/.local/lib/python3.12/site-packages/spotipy/oauth2.py", line 823, in get_authorization_code
    return self._get_auth_response()
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/chirag/.local/lib/python3.12/site-packages/spotipy/oauth2.py", line 782, in _get_auth_response
    return self._get_auth_response_local_server(redirect_port)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/chirag/.local/lib/python3.12/site-packages/spotipy/oauth2.py", line 792, in _get_auth_response_local_server
    server = start_local_http_server(redirect_port)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/chirag/.local/lib/python3.12/site-packages/spotipy/oauth2.py", line 1285, in start_local_http_server
    server = HTTPServer(("127.0.0.1", port), handler)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/socketserver.py", line 457, in __init__
    self.server_bind()
  File "/usr/lib/python3.12/http/server.py", line 136, in server_bind
    socketserver.TCPServer.server_bind(self)
  File "/usr/lib/python3.12/socketserver.py", line 473, in server_bind
    self.socket.bind(self.server_address)
OSError: [Errno 98] Address already in use```

I tried killing process at 8080 port and running again while ensure nothing is there, then ahain nothing happens a process of python(tcp listen) open at that port. 
This is same for all ports

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions