Bug#1124323: electrum: "No fx rate avilable" due to "Channel.getaddrinfo() takes 3 positional arguments but 4 positional arguments (and 4 keyword-only arguments) were given"
Manuel, On Saturday, January 17, 2026 7:24:17 AM Mountain Standard Time Vincas Dargis wrote: > Hi, > > No: > > File "/usr/lib/python3/dist-packages/aiodns/__init__.py", line 243, in > > getaddrinfo> > > self._channel.getaddrinfo( > > ~^ > > > > host, port, cb, family=family, type=type, proto=proto, flags=flags > > ^^ > > > > ) > > ^ > > > > TypeError: Channel.getaddrinfo() takes 3 positional arguments but 4 > > positional arguments (and 4 keyword-only arguments) were given > > > > > > $ LANG=C apt policy python3-aiodns > > > > python3-aiodns: > > Installed: 3.6.1-2 > > Candidate: 3.6.1-2 I can replicate the problem that Vincas is still seeing with the following configuration: electrum: 4.6.2+dfsg-2 python3-pycares: 5.0.1-2 python3-aiodns: 3.6.1-2 But the problem disappears if I downgrade python3-pycares to 4.9.0-1. It would appear that python3-pycares and python3-aiodns still do not get along. -- Soren Stoutner [email protected] signature.asc Description: This is a digitally signed message part.
Bug#1124323: electrum: "No fx rate avilable" due to "Channel.getaddrinfo() takes 3 positional arguments but 4 positional arguments (and 4 keyword-only arguments) were given"
Hi, No: File "/usr/lib/python3/dist-packages/aiodns/__init__.py", line 243, in getaddrinfo self._channel.getaddrinfo( ~^ host, port, cb, family=family, type=type, proto=proto, flags=flags ^^ ) ^ TypeError: Channel.getaddrinfo() takes 3 positional arguments but 4 positional arguments (and 4 keyword-only arguments) were given $ LANG=C apt policy python3-aiodns python3-aiodns: Installed: 3.6.1-2 Candidate: 3.6.1-2 On 1/12/26 23:39, Soren Stoutner wrote: Vincas, Is this issue resolved for you now with aiodns 3.6.1-2?
Bug#1124323: electrum: "No fx rate avilable" due to "Channel.getaddrinfo() takes 3 positional arguments but 4 positional arguments (and 4 keyword-only arguments) were given"
Vincas, Is this issue resolved for you now with aiodns 3.6.1-2? -- Soren Stoutner [email protected] signature.asc Description: This is a digitally signed message part.
Bug#1124323: electrum: "No fx rate avilable" due to "Channel.getaddrinfo() takes 3 positional arguments but 4 positional arguments (and 4 keyword-only arguments) were given"
Control: reassign -1 python3-aiodns Control: affects -1 electrum Thanks, Vincas, for the upstream link. I am going to reassign this bug report to python3-aiodns and mark that it affects electrum. -- Soren Stoutner [email protected] signature.asc Description: This is a digitally signed message part.
Bug#1124323: electrum: "No fx rate avilable" due to "Channel.getaddrinfo() takes 3 positional arguments but 4 positional arguments (and 4 keyword-only arguments) were given"
Please see https://github.com/spesmilo/electrum/issues/10392#issuecomment-3700836254
Bug#1124323: electrum: "No fx rate avilable" due to "Channel.getaddrinfo() takes 3 positional arguments but 4 positional arguments (and 4 keyword-only arguments) were given"
On Tuesday, December 30, 2025 9:51:05 AM Mountain Standard Time Vincas Dargis
wrote:
> Package: electrum
> Version: 4.6.2+dfsg-2
> Severity: normal
>
> Dear Maintainer,
>
> None of the available fiat price sources work.
>
> Traceback:
>
> ```
> 1.03 | E | exchange_rate.CoinGecko | failed fx history:
> TypeError('Channel.getaddrinfo() takes 3 positional arguments but 4
> positional arguments (and 4 keyword-only arguments) were given') Traceback
> (most recent call last):
> File "/usr/lib/python3/dist-packages/electrum/exchange_rate.py", line 152,
> in get_historical_rates_safe h_new = await self.request_history(ccy)
> ^^^
> File "/usr/lib/python3/dist-packages/electrum/exchange_rate.py", line 462,
> in request_history history = await self.get_json('api.coingecko.com',
>
>
> f"/api/v3/coins/bitcoin/market_chart?vs_currency={ccy}&days={num_days}")
>
File
> "/usr/lib/python3/dist-packages/electrum/exchange_rate.py", line 71, in
> get_json async with session.get(url) as response:
>~~~^
> File "/usr/lib/python3/dist-packages/aiohttp/client.py", line 1517, in
> __aenter__ self._resp: _RetType = await self._coro
>
> File "/usr/lib/python3/dist-packages/aiohttp/client.py", line 786, in
> _request resp = await handler(req)
>^^
> File "/usr/lib/python3/dist-packages/aiohttp/client.py", line 741, in
> _connect_and_send_request conn = await self._connector.connect(
>^^
> req, traces=traces, timeout=real_timeout
>
> )
> ^
> File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 642, in
> connect proto = await self._create_connection(req, traces, timeout)
> ^^^
> File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 1209, in
> _create_connection _, proto = await self._create_direct_connection(req,
> traces, timeout) ^^
> File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 1532, in
> _create_direct_connection hosts = await self._resolve_host(host, port,
> traces=traces)
> ^^^
> File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 1148, in
> _resolve_host return await asyncio.shield(resolved_host_task)
>
> File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 1179, in
> _resolve_host_with_throttle addrs = await self._resolver.resolve(host, port,
> family=self._family)
> ^ File
> "/usr/lib/python3/dist-packages/aiohttp/resolver.py", line 117, in resolve
> resp = await self._resolver.getaddrinfo(
> ~~^
> host,
> ^
> ...<3 lines>...
> flags=_AI_ADDRCONFIG,
> ^
> )
> ^
> File "/usr/lib/python3/dist-packages/aiodns/__init__.py", line 243, in
> getaddrinfo self._channel.getaddrinfo(
> ~^
> host, port, cb, family=family, type=type, proto=proto, flags=flags
> ^^
> )
> ^
> TypeError: Channel.getaddrinfo() takes 3 positional arguments but 4
positional
> arguments (and 4 keyword-only arguments) were given ```
Interestingly, it works for me with electrum 4.6.2+dfsg-2 on testing. I
wonder if it relates to the recent aiodns update.
https://tracker.debian.org/pkg/aiodns
The testing regressions appear to have similar errors.
https://ci.debian.net/packages/p/python-easyenergy/testing/amd64/67396844/
--
Soren Stoutner
[email protected]
signature.asc
Description: This is a digitally signed message part.
Bug#1124323: electrum: "No fx rate avilable" due to "Channel.getaddrinfo() takes 3 positional arguments but 4 positional arguments (and 4 keyword-only arguments) were given"
Package: electrum
Version: 4.6.2+dfsg-2
Severity: normal
Dear Maintainer,
None of the available fiat price sources work.
Traceback:
```
1.03 | E | exchange_rate.CoinGecko | failed fx history:
TypeError('Channel.getaddrinfo() takes 3 positional arguments but 4 positional
arguments (and 4 keyword-only arguments) were given')
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/electrum/exchange_rate.py", line 152, in
get_historical_rates_safe
h_new = await self.request_history(ccy)
^^^
File "/usr/lib/python3/dist-packages/electrum/exchange_rate.py", line 462, in
request_history
history = await self.get_json('api.coingecko.com',
f"/api/v3/coins/bitcoin/market_chart?vs_currency={ccy}&days={num_days}")
File "/usr/lib/python3/dist-packages/electrum/exchange_rate.py", line 71, in
get_json
async with session.get(url) as response:
~~~^
File "/usr/lib/python3/dist-packages/aiohttp/client.py", line 1517, in
__aenter__
self._resp: _RetType = await self._coro
File "/usr/lib/python3/dist-packages/aiohttp/client.py", line 786, in _request
resp = await handler(req)
^^
File "/usr/lib/python3/dist-packages/aiohttp/client.py", line 741, in
_connect_and_send_request
conn = await self._connector.connect(
^^
req, traces=traces, timeout=real_timeout
)
^
File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 642, in
connect
proto = await self._create_connection(req, traces, timeout)
^^^
File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 1209, in
_create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
^^
File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 1532, in
_create_direct_connection
hosts = await self._resolve_host(host, port, traces=traces)
^^^
File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 1148, in
_resolve_host
return await asyncio.shield(resolved_host_task)
File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 1179, in
_resolve_host_with_throttle
addrs = await self._resolver.resolve(host, port, family=self._family)
^
File "/usr/lib/python3/dist-packages/aiohttp/resolver.py", line 117, in
resolve
resp = await self._resolver.getaddrinfo(
~~^
host,
^
...<3 lines>...
flags=_AI_ADDRCONFIG,
^
)
^
File "/usr/lib/python3/dist-packages/aiodns/__init__.py", line 243, in
getaddrinfo
self._channel.getaddrinfo(
~^
host, port, cb, family=family, type=type, proto=proto, flags=flags
^^
)
^
TypeError: Channel.getaddrinfo() takes 3 positional arguments but 4 positional
arguments (and 4 keyword-only arguments) were given
```
-- System Information:
Debian Release: forky/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.17.13+deb14-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE,
TAINT_UNSIGNED_MODULE
Locale: LANG=lt_LT.UTF-8, LC_CTYPE=lt_LT.UTF-8 (charmap=UTF-8), LANGUAGE=lt
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.13.9-2
ii python3-electrum 4.6.2+dfsg-2
ii python3-pyqt6 6.10.1-2
electrum recommends no packages.
Versions of packages electrum suggests:
pn fonts-adobe-sourcesans3
ii fonts-dejavu-core2.37-8
pn python3-cbor2
ii python3-hid 0.15.0-1
ii python3-serial 3.5-2
pn trezor
-- no debconf information

