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 On Sat, 27 Nov 2021 18:37:25 +0900 Douglas Perkins <cont...@dperkins.org> wrote: > Package: electrum > Version: 4.0.9-1 > Severity: important > X-Debbugs-Cc: cont...@dperkins.org > > 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 > > > > > -- System Information: > Debian Release: bookworm/sid > APT prefers unstable > APT policy: (500, 'unstable'), (1, 'experimental') > Architecture: amd64 (x86_64) > Foreign Architectures: i386 > > Kernel: Linux 5.15.0-1-amd64 (SMP w/12 CPU threads) > Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, > TAINT_UNSIGNED_MODULE > Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), > LANGUAGE=en_US:en > Shell: /bin/sh linked to /usr/bin/dash > Init: systemd (via /run/systemd/system) > LSM: AppArmor: enabled > > Versions of packages electrum depends on: > ii python3 3.9.8-1 > ii python3-electrum 4.0.9-1 > > Versions of packages electrum recommends: > ii python3-pyqt5 5.15.6+dfsg-1+b1 > ii python3-qdarkstyle 2.8.1+ds1-3 > > Versions of packages electrum suggests: > pn python3-btchip <none> > pn python3-trezor <none> -- Jan Hrach | https://jenda.hrach.eu/