randomsync / robotframework-mqttlibrary

MQTT Keyword Library for Robot Framework
Apache License 2.0
25 stars 30 forks source link

LibraryMQTT not usable with paho-mqtt 2.0.0 #34

Open BriceBoy opened 6 months ago

BriceBoy commented 6 months ago
ValueError: Unsupported callback API version: version 2.0 added a callback_api_version, see migrations.md for details

Traceback (most recent call last):
  File "C:\WINDOWS\ServiceProfiles\NetworkService\AppData\Roaming\Python\Python37\site-packages\MQTTLibrary\MQTTKeywords.py", line 71, in connect
    self._mqttc = mqtt.Client(client_id, clean_session)
  File "C:\WINDOWS\ServiceProfiles\NetworkService\AppData\Roaming\Python\Python37\site-packages\paho\mqtt\client.py", line 767, in __init__
    "Unsupported callback API version: version 2.0 added a callback_api_version, see migrations.md for details"
ValueError: Unsupported callback API version: version 2.0 added a callback_api_version, see migrations.md for details
romanliv commented 3 months ago

I tried to address this issue in https://github.com/randomsync/robotframework-mqttlibrary/pull/35, maybe someone with enough permissions can review and merge it if the fix is ok.

BriceBoy commented 3 months ago

Thank you ! I hope this will be done ^^