Package: python3-asyncio-mqtt
Version: 0.13.0-1
Severity: grave
$ python3 -c 'import asyncio_mqtt; asyncio_mqtt.Client("localhost")'
Exception ignored in: <function Client.__del__ at 0x7fe375afdd80>
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/paho/mqtt/client.py", line 660, in
__del__
self._reset_sockets()
File "/usr/lib/python3/dist-packages/paho/mqtt/client.py", line 704, in
_reset_sockets
self._sock_close()
File "/usr/lib/python3/dist-packages/paho/mqtt/client.py", line 691, in
_sock_close
if not self._sock:
AttributeError: 'Client' object has no attribute '_sock'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3/dist-packages/asyncio_mqtt/client.py", line 222, in
__init__
self._client: mqtt.Client = mqtt.Client(
TypeError: Client.__init__() got an unexpected keyword argument
'reconnect_on_failure'
$
The reconnect_on_failure keyword argument has been added to paho mqtt
quite recently and the Debian package hasn't been updated yet. So to fix
this bug you have two options:
a) Reupload 0.10.0 (with some really version).
b) Upload a new paho mqtt and upload python3-asyncio-mqtt with a suitable
version constraint.
In both cases, please do add an autopkgtest and a build-time test or
something. Such a fundamental failure shouldn't have entered unstable
much less migrated to testing. And I should have restarted my
application sooner. ;)
Helmut