Azure/azure-iot-sdk-python

azure-iot-device v2.13.0 does not support paho-mqtt v2.0.0

smijatovic opened this issue · 2 comments

Installing python paho-mqtt version 2.0.0 caused a conflict with the latest (current date: 05032024) azure-iot-device version 2.13.0.

ERROR: Cannot install azure-iot-device==2.13.0, testenv because these package versions have conflicting dependencies.

The conflict is caused by:
    testenv 0.0.1 depends on paho-mqtt==2.0.0
    azure-iot-device 2.13.0 depends on paho-mqtt<2.0.0 and >=1.6.1
    testenv 0.0.1 depends on paho-mqtt==2.0.0
    azure-iot-device 2.12.0 depends on paho-mqtt<2.0.0 and >=1.6.1

paho-mqtt version 2.0.0 was released on the 10th february 2024 and is currently (current date: 05032024) the latest supported version.

Currently we don't support version 2.0 of Paho. We might be able to at some point, but for now this is a backlog item. Is it possible for you to use 1.x instead?

Hi, thank you for the answer. paho-mqtt v2.0 offers more property functions to access protected variables and the static values are abstracted in enums which increases the readability but I refactored my code to v1.6 and it works too. There are no breaking changes which are required for me between the two versions.