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/64569886-c8d6-4fa4-bc2e-85713de5471fn%40googlegroups.com.

Reply via email to