matthewwall / weewx-mqtt

upload data to mqtt broker
58 stars 31 forks source link

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

Open gary-hammer opened 7 months ago

gary-hammer commented 7 months ago

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 commented 7 months ago

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

baudfather commented 7 months ago

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 commented 5 months ago

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