Skip to content
Commit 2526a2f5 authored by Marcus Hoffmann's avatar Marcus Hoffmann Committed by Yann E. MORIN
Browse files

package/python-paho-mqtt: fix package for python 3.10

Fixes the following error on calling mqtt.publish():

  File "/usr/lib/python3.10/site-packages/paho/mqtt/publish.py", line 222, in single
    multiple([msg], hostname, port, client_id, keepalive, will, auth, tls,
  File "/usr/lib/python3.10/site-packages/paho/mqtt/publish.py", line 126, in multiple
    if not isinstance(msgs, collections.Iterable):
AttributeError: module 'collections' has no attribute 'Iterable'

Backported from https://github.com/eclipse/paho.mqtt.python/pull/497/



This was deprecated in python 3.9 and stopped working in python 3.10

Signed-off-by: default avatarMarcus Hoffmann <marcus.hoffmann@othermo.de>
Signed-off-by: default avatarYann E. MORIN <yann.morin.1998@free.fr>
parent 0f2c0c24
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment