Skip to content
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

AttributeError: 'URL' object has no attribute 'host_port_subcomponent'. Did you mean: 'host_subcomponent'? #9389

Open
Geremia opened this issue Dec 28, 2024 · 0 comments

Comments

@Geremia
Copy link

Geremia commented Dec 28, 2024

I get this when trying to start Electrum 4.5.8:

$ electrum 
  0.85 | E | __main__ | 
Traceback (most recent call last):
  File "/usr/bin/electrum", line 444, in main
    handle_cmd(
  File "/usr/bin/electrum", line 457, in handle_cmd
    fd = daemon.get_file_descriptor(config)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/electrum/daemon.py", line 103, in get_file_descriptor
    request(config, 'ping')
  File "/usr/lib/python3.12/site-packages/electrum/daemon.py", line 147, in request
    return fut.result(timeout=timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/concurrent/futures/_base.py", line 456, in result
    return self.__get_result()
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/concurrent/futures/_base.py", line 401, in __get_result
    raise self._exception
  File "/usr/lib/python3.12/site-packages/electrum/daemon.py", line 144, in request_coroutine
    return await c.request(endpoint, *args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/electrum/util.py", line 1973, in request
    async with self.session.post(self.url, data=data) as resp:
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/site-packages/aiohttp/client.py", line 1425, in __aenter__
    self._resp: _RetType = await self._coro
                           ^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/site-packages/aiohttp/client.py", line 675, in _request
    req = self._request_class(
          ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/site-packages/aiohttp/client_reqrep.py", line 351, in __init__
    self.update_headers(headers)
  File "/usr/lib64/python3.12/site-packages/aiohttp/client_reqrep.py", line 460, in update_headers
    host = self.url.host_port_subcomponent
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'URL' object has no attribute 'host_port_subcomponent'. Did you mean: 'host_subcomponent'?

I'm using aiohttp-3.11.9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant