Re: [weewx-user] nogo: driver "ws23xx" and Python V3

2020-02-04 Thread Thomas Keffer
Thanks for your report, Paul!

I think I fixed this in commit 223fafc

.

Can you give it a try?

-tk

On Mon, Feb 3, 2020 at 2:49 PM P Simmons  wrote:

> I've attempted to move from Python2 to Python3, and have encountered a
> problem with ws23xx.py
>
> Thank you,
> Paul
>
> --
> You received this message because you are subscribed to the Google Groups
> "weewx-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/2cfe7671-0233-4197-aecc-c0f5d6b0b7d0%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zEDj9HFT_K-soAdSkWHkV5JPCyBT5uo6fnc9oqEMyRcoPQ%40mail.gmail.com.


[weewx-user] nogo: driver "ws23xx" and Python V3

2020-02-03 Thread P Simmons
I've attempted to move from Python2 to Python3, and have encountered a 
problem with ws23xx.py 

Thank you,
Paul

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/2cfe7671-0233-4197-aecc-c0f5d6b0b7d0%40googlegroups.com.
Feb  3 16:22:42 gummo weewx[9021] INFO __main__: Initializing weewx version 
4.0.0b11
Feb  3 16:22:42 gummo weewx[9021] INFO __main__: Using Python 3.5.3 (default, 
Sep 27 2018, 17:25:39) #012[GCC 6.3.0 20170516]
Feb  3 16:22:42 gummo weewx[9021] INFO __main__: Platform 
Linux-4.9.0-11-amd64-x86_64-with-debian-9
Feb  3 16:22:42 gummo weewx[9021] INFO __main__: Locale is 'en_US.UTF-8'
Feb  3 16:22:42 gummo weewx[9021] INFO __main__: PID file is /var/run/weewx.pid
Feb  3 16:22:42 gummo weewx[9025] INFO __main__: Using configuration file 
/home/weewx/weewx.conf
Feb  3 16:22:42 gummo weewx[9025] INFO weewx.engine: Loading station type 
WS23xx (weewx.drivers.ws23xx)
Feb  3 16:22:42 gummo weewx[9025] INFO weewx.drivers.ws23xx: driver version is 
0.40
Feb  3 16:22:42 gummo weewx[9025] INFO weewx.drivers.ws23xx: serial port is 
/dev/ttyS0
Feb  3 16:22:42 gummo weewx[9025] INFO weewx.drivers.ws23xx: polling interval 
is None
Feb  3 16:22:42 gummo weewx[9025] ERROR weewx.engine: Import of driver failed: 
tcsetattr: elements of attributes must be characters or integers ()
Feb  3 16:22:42 gummo weewx[9025] CRITICAL weewx.engine:   Traceback 
(most recent call last):
Feb  3 16:22:42 gummo weewx[9025] CRITICAL weewx.engine: File 
"/home/weewx/bin/weewx/engine.py", line 103, in setupStation
Feb  3 16:22:42 gummo weewx[9025] CRITICAL weewx.engine:   
self.console = loader_function(config_dict, self)
Feb  3 16:22:42 gummo weewx[9025] CRITICAL weewx.engine: File 
"/home/weewx/bin/weewx/drivers/ws23xx.py", line 271, in loader
Feb  3 16:22:42 gummo weewx[9025] CRITICAL weewx.engine:   return 
WS23xxDriver(config_dict=config_dict, **config_dict[DRIVER_NAME])
Feb  3 16:22:42 gummo weewx[9025] CRITICAL weewx.engine: File 
"/home/weewx/bin/weewx/drivers/ws23xx.py", line 438, in __init__
Feb  3 16:22:42 gummo weewx[9025] CRITICAL weewx.engine:   
self.station = WS23xx(self.port)
Feb  3 16:22:42 gummo weewx[9025] CRITICAL weewx.engine: File 
"/home/weewx/bin/weewx/drivers/ws23xx.py", line 640, in __init__
Feb  3 16:22:42 gummo weewx[9025] CRITICAL weewx.engine:   
self.serial_port = LinuxSerialPort(port)
Feb  3 16:22:42 gummo weewx[9025] CRITICAL weewx.engine: File 
"/home/weewx/bin/weewx/drivers/ws23xx.py", line 920, in __init__
Feb  3 16:22:42 gummo weewx[9025] CRITICAL weewx.engine:   
tty.tcsetattr(self.serial_port, tty.TCSAFLUSH, setup)
Feb  3 16:22:42 gummo weewx[9025] CRITICAL weewx.engine:   TypeError: 
tcsetattr: elements of attributes must be characters or integers
Feb  3 16:22:42 gummo weewx[9025] CRITICAL __main__: Unable to load driver: 
tcsetattr: elements of attributes must be characters or integers
Feb  3 16:22:42 gummo weewx[9025] CRITICAL __main__:   Exiting...