Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.rc > #332035 > unrolled thread

Bug#1025175: asyncio_mqtt.Client("localhost") fails with a TypeError

Started byHelmut Grohne <helmut@subdivi.de>
First post2022-11-30 19:40 +0100
Last post2023-01-31 03:50 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.debian.bugs.rc


Contents

  Bug#1025175: asyncio_mqtt.Client("localhost") fails with a TypeError Helmut Grohne <helmut@subdivi.de> - 2022-11-30 19:40 +0100
    Bug#1025175: marked as done (asyncio_mqtt.Client("localhost")  fails with a TypeError) "Debian Bug Tracking System" <owner@bugs.debian.org> - 2023-01-31 03:50 +0100

#332035 — Bug#1025175: asyncio_mqtt.Client("localhost") fails with a TypeError

FromHelmut Grohne <helmut@subdivi.de>
Date2022-11-30 19:40 +0100
SubjectBug#1025175: asyncio_mqtt.Client("localhost") fails with a TypeError
Message-ID<FxA9X-7qJv-9@gated-at.bofh.it>
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

[toc] | [next] | [standalone]


#337694 — Bug#1025175: marked as done (asyncio_mqtt.Client("localhost") fails with a TypeError)

From"Debian Bug Tracking System" <owner@bugs.debian.org>
Date2023-01-31 03:50 +0100
SubjectBug#1025175: marked as done (asyncio_mqtt.Client("localhost") fails with a TypeError)
Message-ID<FTOSB-2k3E-3@gated-at.bofh.it>
In reply to#332035

[Multipart message — attachments visible in raw view] — view raw

Your message dated Tue, 31 Jan 2023 02:43:19 +0000
with message-id <E1pMgcB-00HLu4-4U@fasolo.debian.org>
and subject line Bug#1025175: fixed in python-asyncio-mqtt 0.16.1-1
has caused the Debian Bug report #1025175,
regarding asyncio_mqtt.Client("localhost") fails with a TypeError
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1025175: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1025175
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.bugs.rc


csiph-web