Skip to content

[Bug Report] [Errno 48] Address already in use #202

@MeoxX909

Description

@MeoxX909

Zotify Version
Installed from git @ new-hierarchy

Bug Description
During the authentication flow, after logging in in the browser, the following error occurs:

	[∙●∙] Logging in...                                                                                                          
Traceback (most recent call last):
  File "/Users/username/.local/bin/zotify", line 6, in <module>
    sys.exit(main())
             ~~~~^^
  File "/Users/username/.local/pipx/venvs/zotify/lib/python3.14/site-packages/zotify/__main__.py", line 137, in main
    Zotify.boot(args)
    ~~~~~~~~~~~^^^^^^
  File "/Users/username/.local/pipx/venvs/zotify/lib/python3.14/site-packages/zotify/config.py", line 761, in boot
    try: cls.login(args)
         ~~~~~~~~~^^^^^^
  File "/Users/username/.local/pipx/venvs/zotify/lib/python3.14/site-packages/zotify/config.py", line 710, in login
    session_builder.login_credentials = oauth.flow()
                                        ~~~~~~~~~~^^
  File "/Users/username/.local/pipx/venvs/zotify/lib/python3.14/site-packages/librespot/oauth.py", line 204, in flow
    self.run_callback_server()
    ~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/Users/username/.local/pipx/venvs/zotify/lib/python3.14/site-packages/librespot/oauth.py", line 192, in run_callback_server
    self.__server = self.CallbackServer(
                    ~~~~~~~~~~~~~~~~~~~^
        (address, url.port),
        ^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
        self.__success_page_content,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/Users/username/.local/pipx/venvs/zotify/lib/python3.14/site-packages/librespot/oauth.py", line 157, in __init__
    super().__init__(server_address, RequestHandlerClass)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/python@3.14/3.14.0/Frameworks/Python.framework/Versions/3.14/lib/python3.14/socketserver.py", line 457, in __init__
    self.server_bind()
    ~~~~~~~~~~~~~~~~^^
  File "/opt/homebrew/Cellar/python@3.14/3.14.0/Frameworks/Python.framework/Versions/3.14/lib/python3.14/http/server.py", line 144, in server_bind
    socketserver.TCPServer.server_bind(self)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
  File "/opt/homebrew/Cellar/python@3.14/3.14.0/Frameworks/Python.framework/Versions/3.14/lib/python3.14/socketserver.py", line 478, in server_bind
    self.socket.bind(self.server_address)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
	⁃	OSError: [Errno 48] Address already in use

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions