Hi

Thanks for your help. I have just used the online 2to3 converter and just 
getting a new error:

Mar 17 22:05:25 weewx4Test weewx[7169] INFO user.mqtt: service version is 
0.20
Mar 17 22:05:25 weewx4Test weewx[7169] INFO user.mqtt: binding to 
['archive', 'loop']
Mar 17 22:05:25 weewx4Test weewx[7169] CRITICAL __main__: Caught 
unrecoverable exception:
Mar 17 22:05:25 weewx4Test weewx[7169] CRITICAL __main__:     ****  name 
'queue' is not defined
Mar 17 22:05:25 weewx4Test weewx[7169] CRITICAL __main__:     ****  
Traceback (most recent call last):
Mar 17 22:05:25 weewx4Test weewx[7169] CRITICAL __main__:     ****    File 
"/home/weewx/bin/weewxd", line 148, in main
Mar 17 22:05:25 weewx4Test weewx[7169] CRITICAL __main__:     ****      
engine = weewx.engine.StdEngine(config_dict)
Mar 17 22:05:25 weewx4Test weewx[7169] CRITICAL __main__:     ****    File 
"/home/weewx/bin/weewx/engine.py", line 75, in __init__
Mar 17 22:05:25 weewx4Test weewx[7169] CRITICAL __main__:     ****      
self.loadServices(config_dict)
Mar 17 22:05:25 weewx4Test weewx[7169] CRITICAL __main__:     ****    File 
"/home/weewx/bin/weewx/engine.py", line 136, in loadServices
Mar 17 22:05:25 weewx4Test weewx[7169] CRITICAL __main__:     ****      obj 
= weeutil.weeutil.get_object(svc)(self,config_dict)
Mar 17 22:05:25 weewx4Test weewx[7169] CRITICAL __main__:     ****    File 
"/home/weewx/bin/user/mqtt.py", line 259, in __init__
Mar 17 22:05:25 weewx4Test weewx[7169] CRITICAL __main__:     ****      
self.archive_queue = queue.Queue()
Mar 17 22:05:25 weewx4Test weewx[7169] CRITICAL __main__:     ****  
NameError: name 'queue' is not defined
Mar 17 22:05:25 weewx4Test weewx[7169] CRITICAL __main__:     ****  Exiting.

Gert

On Tuesday, March 17, 2020 at 6:16:48 PM UTC+1, Vince Skahan wrote:
>
> Run the extension through "2to3 -w" and it will convert it to a 
> python3-compatible content.  Worked fine here for me on version 0.18 of 
> that extension.
>

-- 
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/7d769886-d404-4e7f-8bc2-5b80870ab335%40googlegroups.com.

Reply via email to