Closed mbait closed 3 months ago
Hi Alexander!
(We renamed the project from asyncio_mqtt to aiomqtt with version 1.0.0
. New versions are distributed only under the aiomqtt name.)
In older versions we specified the paho-mqtt dependency as >=1.0.0
. Paho released a 2.0.0
version not long ago, which breaks older versions of asyncio_mqtt / aiomqtt, that's our fault. The issue was fixed in commit bb2ad6c, which is included from asyncio_mqtt / aiomqtt version 1.0.0
onwards.
I think our two options are (1.) pinning paho-mqtt to ^1.0.0
in your requirements manually or (2.) upgrading to a newer version of asyncio_mqtt / aiomqtt.
Let me know if that helps! 🙂
Thank you for the explanation. For now I've manually downgraded paho from 2.0.0 to 1.6.1, but will switch to aiomqtt eventually.
The following code
fails with
Looking at the offensive line of the code it seems the error is legit as, indeed, asyncio-mqtt doesn't provide the required
callback_api_version
. I guess that effectively renders all examples from the library docs as broken.