-
Notifications
You must be signed in to change notification settings - Fork 721
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for Python 3.9 moving Iterable to collections.abc #497
Conversation
Signed-off-by: Brishen Hawkins <[email protected]>
The Travis-CI build is failing because the tests are outdated. See my pull request for the testing repo: eclipse-paho/paho.mqtt.testing#65 |
The Travis error seems unrelated to this PR. Sadly our tests fail from time to time, but I can't reproduce those failure making it hard to solve. Most of the time, re-running test "fix" them :( |
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 eclipse-paho/paho.mqtt.python#497 This was deprecated in python 3.9 and stopped working in python 3.10 Signed-off-by: Marcus Hoffmann <[email protected]> Signed-off-by: Yann E. MORIN <[email protected]>
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 eclipse-paho/paho.mqtt.python#497 This was deprecated in python 3.9 and stopped working in python 3.10 Signed-off-by: Marcus Hoffmann <[email protected]> Signed-off-by: Yann E. MORIN <[email protected]> (cherry picked from commit 2526a2f) Signed-off-by: Peter Korsgaard <[email protected]>
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 eclipse-paho/paho.mqtt.python#497 This was deprecated in python 3.9 and stopped working in python 3.10 Signed-off-by: Marcus Hoffmann <[email protected]> Signed-off-by: Yann E. MORIN <[email protected]> (cherry picked from commit 2526a2f) Signed-off-by: Peter Korsgaard <[email protected]>
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 eclipse-paho/paho.mqtt.python#497 This was deprecated in python 3.9 and stopped working in python 3.10 Signed-off-by: Marcus Hoffmann <[email protected]> Signed-off-by: Yann E. MORIN <[email protected]>
Signed-off-by: Brishen Hawkins [email protected]