Open walek75 opened 4 years ago
Thanks so much!
With Buster / weewx python3 it stopped working. Getting following errors (attached). Any idea how to fix it? Thanks. wh23xx_weewx-python3.txt
The syntax except clause has changed in python3.
Try changing in line 429 in wh23xx.py file
except IndexError, e:
to
except (IndexError, e):
I'm not sure if these are the only changes that need to be made.
Check and in case of failure, write comment.
The syntax except clause has changed in python3. Try changing in line 429 in wh23xx.py file
except IndexError, e:
toexcept (IndexError, e):
I'm not sure if these are the only changes that need to be made. Check and in case of failure, write comment.
Thanks! Downgraded to python2 version since but will try again soon and give an update.
@Orbit4l @matthewwall - I'm also having same problem with Buster and weewx 4.0 and 3.6 What do you see when you do an sudo tail -f /var/log/syslog ? On my series 1 Pi (2 x USB) I am not seeing the weather station data stream coming in via USB at all. On the Jessie Debian version with either Weewx 4.0 or 3.6.2 it works fine and I can see the weather data stream being received every 15 seconds. If I pull the USB plug on the Jessie Debian version it gives this message:- Jul 24 10:31:31 weewx kernel: [82569.631091] usb 1-1.3: USB disconnect, device number 5 On the Buster version I get this:- Jul 23 11:32:15 bfb kernel: [ 515.589791] usb 1-1.3: USB disconnect, device number 4 I don't know whether this means anything? On the surface this looks like there may be a USB port issue?
Syslog attached for Weewx 4.1 with Buster Debian on a Pi Series1 (2xUSB) - no Weather Station feed observed.
Weewx version 4.0 was refactored and the log_trackback method was moved from the weeutil module to log module. Line 255: from weeutil.weeutil import timestamp_to_string, log_traceback causes an fatal error and weewx daemon closes. should be:
from weeutil.weeutil import timestamp_to_string
from weeutil.log import log_traceback
instead of:from weeutil.weeutil import timestamp_to_string, log_traceback