You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When trying to publish data to MQTT broker the module throws the exception in allsky.log:
ERROR: Module allsky_publishdata.py failed on line 224 - Client.init() missing 1 required positional argument: 'callback_api_version'
Nothing beeing published to MQTT.
To Reproduce
Steps to reproduce the behaviour:
install BookWorm 32 bit lite on Rasberry pi
install Allsky
install publishdata module
configure MQTT broker
Activate publishdata module
Restrt Allsky
Waith for the 1st picture publication
See error in /var/logs/allsky.log
Expected behaviour
No error in log
data been published
Additional context
It seams thst this is typical behavior on BookWorm Rasbian.
I had the same issue with my code and solved it by: client = paho.Client(paho.CallbackAPIVersion.VERSION1)
The text was updated successfully, but these errors were encountered:
When I change theline 254 from:
client = paho.Client(client_id="", userdata=None, protocol=paho.MQTTv5)
to:
client = paho.Client(paho.CallbackAPIVersion.VERSION1, client_id="", userdata=None, protocol=paho.MQTTv5)
it works :)
Describe the bug
When trying to publish data to MQTT broker the module throws the exception in allsky.log:
ERROR: Module allsky_publishdata.py failed on line 224 - Client.init() missing 1 required positional argument: 'callback_api_version'
Nothing beeing published to MQTT.
To Reproduce
Steps to reproduce the behaviour:
Expected behaviour
No error in log
data been published
Allsky Information:
Additional context
It seams thst this is typical behavior on BookWorm Rasbian.
I had the same issue with my code and solved it by: client = paho.Client(paho.CallbackAPIVersion.VERSION1)
The text was updated successfully, but these errors were encountered: