weewx-mqtt icon indicating copy to clipboard operation
weewx-mqtt copied to clipboard

v0.24 Installs but Fails at WeeWX Startup (paho-mqtt update to v2 is the culprit)

Open gary-hammer opened this issue 1 year ago • 3 comments

I just installed WeeWX 5.02 using pip and venv into a new Debian 12 instance. After running the simulator driver for a cycle, I deleted the HTML and archive. With the venv activated with the proper user, I installed weewx-mqtt using "weectl extension install https://github.com/matthewwall/weewx-mqtt/archive/master.zip"

Edited the weewx.conf for the proper values, saved then started weewx. I get the errors shown in the attached file, weewx-mqtt-deb12-4-error.txt. No MQTT values are ever sent to my mosquitto server of course. This extension did work under the alphas, betas, and RCs

weewx-mqtt-deb12-4-error.txt

gary-hammer avatar Feb 11 '24 16:02 gary-hammer

Enabling the venv and downgrading paho-mqtt solves the issue. This extension doesn't like paho-mqtt 2.0.0 it seems. Or vice versa pip install paho-mqtt==1.6.1

gary-hammer avatar Feb 11 '24 16:02 gary-hammer

Thanks for this @gary-hammer - had the same issue. @matthewwall is a new release possible to support the current paho-mqtt? At the very least a note in the readme.md file to install the specific version for new installs.

baudfather avatar Feb 12 '24 02:02 baudfather

@matthewwall Are there any plans to update this extension to support paho-mqtt 2.0.0?

baudfather avatar Mar 28 '24 00:03 baudfather