#1000688 electrum: Does not start

#1000688#5
Date:
2021-11-27 09:37:25 UTC
From:
To:
Dear Maintainer,

I upgraded Sid today. After restarting my system, I tried opening Electrum and it errors out. I'm using XFCE.

If I open a terminal window and try starting the program, I get the following error. The program exits on this error. Ideally the program should not show an error, and should open when called.


$ electrum
Traceback (most recent call last):
  File "/usr/bin/electrum", line 79, in <module>
    from electrum.logging import get_logger, configure_logging
  File "/usr/lib/python3/dist-packages/electrum/__init__.py", line 15, in <module>
    from .util import format_satoshis
  File "/usr/lib/python3/dist-packages/electrum/util.py", line 50, in <module>
    import aiohttp
  File "/usr/lib/python3/dist-packages/aiohttp/__init__.py", line 6, in <module>
    from .client import (
  File "/usr/lib/python3/dist-packages/aiohttp/client.py", line 35, in <module>
    from . import hdrs, http, payload
  File "/usr/lib/python3/dist-packages/aiohttp/http.py", line 7, in <module>
    from .http_parser import (
  File "/usr/lib/python3/dist-packages/aiohttp/http_parser.py", line 15, in <module>
    from .helpers import NO_EXTENSIONS, BaseTimerContext
  File "/usr/lib/python3/dist-packages/aiohttp/helpers.py", line 667, in <module>
    class CeilTimeout(async_timeout.timeout):
TypeError: function() argument 'code' must be code, not str

#1000688#10
Date:
2021-11-28 09:18:04 UTC
From:
To:
I'm afraid that's a problem in python3-aiohttp, as it dies on a simple
import and other programs such as gdbgui fail with the same error.
You can remove the offending class initialization as a temporary workaround:

-#class CeilTimeout(async_timeout.timeout):
+class CeilTimeout():

in /usr/lib/python3/dist-packages/aiohttp/helpers.py:667

#1000688#15
Date:
2021-11-28 09:20:12 UTC
From:
To:
I'm afraid that's a problem in python3-aiohttp, as it dies on a simple import and other programs such as gdbgui fail with the same error.
You can remove the offending class initialization as a temporary workaround:

-#class CeilTimeout(async_timeout.timeout):
+class CeilTimeout():

in /usr/lib/python3/dist-packages/aiohttp/helpers.py:667

#1000688#20
Date:
2021-12-21 10:43:28 UTC
From:
To:
Since yesterday, I have the same problem with bookworm
#1000688#25
Date:
2021-12-22 05:20:15 UTC
From:
To:
Since the upgrade of python3-aiohttp:amd64 (3.7.4-2+b1, 3.8.1-4) electrum works
again. Thanks for fixing.

#1000688#30
Date:
2022-06-08 16:55:57 UTC
From:
To:
The issue seems solved in the python3-aiohttp package, so closing this
bug report on the BTS.