Closed ghTravis closed 2 months ago
paho-mqtt==1.6.1
in requirements.txt works indeed as temporary workaround
Implementing a quick fix (that will work until paho-mqtt v3 is released and VERSION1 is dropped) is easy:
# ensure backward compatibility with older versions of paho-mqtt (<=2.0.0)
# ToDo: Need to update to VERSION2 at some point
try:
mqtt_client = mqtt.Client(callback_api_version=mqtt.CallbackAPIVersion.VERSION1)
except AttributeError:
mqtt_client = mqtt.Client()
Checklist:
Release with the issue: latest
Last working release (if known): paho-mqtt==1.6.1
Hardware, Operating System, Python version: raspbian latest, python3.9
Description of problem:
RPi-Reporter fails to start with error:
This is due to paho-mqtt just releasing 2.0.0 which has a breaking change listed here.
The last known version of paho-mqtt that works is 1.6.1 so maybe the requirements.txt can be updated for now to pin at that version, or perhaps someone could make a PR for the updated 2.0.0 version