Thanks for the heads up! Looks like 2.0 will break every client… From, https://github.com/eclipse/paho.mqtt.python/releases/tag/v2.0.0
- *BREAKING* Added callback_api_version. This break *ALL* users of paho-mqtt Client class. See migrations.rst <https://github.com/eclipse/paho.mqtt.python/blob/v2.0.0/docs/migrations.rst> for details on how to upgrade. tl; dr; add CallbackAPIVersion.VERSION1 to first argument of Client() On Saturday 10 February 2024 at 17:20:35 UTC-5 Greg wrote: > It is probably the extension for mqtt. > I have 2 mqtt extensions. > mqtt.py > MQTTSubscribe.py > > I am not familiar with python. I will have a deeper look later. > On Sunday 11 February 2024 at 09:10:46 UTC+11 Greg wrote: > >> I just upgraded to 5.0.2 and git this: >> Feb 11 09:00:01 moonbi weewx: RXCHECK is 100.0 >> Feb 11 09:00:50 moonbi weewxd[1867968]: INFO weewx.engine: Starting main >> packet loop. >> Feb 11 09:00:50 moonbi weewxd[1867968]: INFO weewx.drivers.fousb: station >> status {'rain_overflow': 0, 'lost_connection': 0, 'unknown': 0} (0) >> Feb 11 09:00:50 moonbi weewxd[1867968]: ERROR weewx.restx: MQTT: >> Unexpected exception of type <class 'TypeError'> >> Feb 11 09:00:50 moonbi weewxd[1867968]: ERROR weewx.restx: *** Traceback >> (most recent call last): >> Feb 11 09:00:50 moonbi weewxd[1867968]: ERROR weewx.restx: *** File >> "/opt/weewx/weewx-venv/lib/python3.11/site-packages/weewx/restx.py", line >> 384, in run_loop >> Feb 11 09:00:50 moonbi weewxd[1867968]: ERROR weewx.restx: *** >> self.process_record(_record, dbmanager) >> Feb 11 09:00:50 moonbi weewxd[1867968]: ERROR weewx.restx: *** File >> "/opt/weewx/weewx-data/bin/user/mqtt.py", line 412, in process_record >> Feb 11 09:00:50 moonbi weewxd[1867968]: ERROR weewx.restx: *** mc = >> mqtt.Client(client_id=client_id) >> Feb 11 09:00:50 moonbi weewxd[1867968]: ERROR weewx.restx: *** >> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >> Feb 11 09:00:50 moonbi weewxd[1867968]: ERROR weewx.restx: *** TypeError: >> Client.__init__() missing 1 required positional argument: >> 'callback_api_version' >> Feb 11 09:00:50 moonbi weewxd[1867968]: CRITICAL weewx.restx: MQTT: >> Thread terminating. Reason: Client.__init__() missing 1 required positional >> argument: 'callback_api_version' >> >> I have reverted back to version 5.0.1 and got the same error. >> >> I upgraded paho-mqtt 1.6.1 to 2.0.0 and I am sure that is what caused >> those messages. >> >> I have downgraded to paho-mqtt 1.6.1 and upgrade weewx to 5.0.2 and it >> works. >> >> Conclusion: paho-mqtt 2.0.0 causes issues. weewx 5.0.2 works OK with >> the paho-mqtt 1.61 version >> >> Thanks >> >> >> Thanks >> >> -- You received this message because you are subscribed to the Google Groups "weewx-development" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/b56c56fd-7100-4d00-9060-9dbd4fe9788dn%40googlegroups.com.
