I recently updated to bullseye because I needed the latest version of zigbeefordomoticz.
I updated (instead of a clean install) and everything seemed ok.
But I am now facing an error with plugins I wrote (mostly based on ShellyMQTT plugin). These three plugins use an MQTT connection to interact with object (3G usb stick, TPLink cameras and a Sonoff RF gateway), combining mqtt for external control, notification and devices for control within domoticz.
They used to work nicelly with buster.
But in bullseye and python3.9.2, I get an error from domoticz:
Code: Select all
MyPlugin: Python exception set prior to callback 'onConnect'
Error: MyPlugin: Call to function 'onConnect' failed, exception details:
Error: MyPlugin: Exception: 'TypeError'. No traceback available.
I was able to identify where the error was triggered: during a call to method "Connect" of the Domoticz.Connection object, the connection to the MQTT broker. Commenting out this connection gets rid of the error, allowing the plugin to function with internal notifications and all, but onbviously without mqtt.
raspberry 3B+ - bullseye (32b)
python 3.9.2
tested both domoticz 2023.2 and build 15597 (latest beta)
mosquitto V2.0.11
I suspect a conflict between python versions, but how do I narrow it down and fix it?
Thanks a lot for your help.