Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on weewx v4.0 #9

Open
walek75 opened this issue May 17, 2020 · 6 comments
Open

Error on weewx v4.0 #9

walek75 opened this issue May 17, 2020 · 6 comments

Comments

@walek75
Copy link

walek75 commented May 17, 2020

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

@eilmi
Copy link

eilmi commented May 28, 2020

Thanks so much!

@Orbit4l
Copy link

Orbit4l commented Jul 22, 2020

With Buster / weewx python3 it stopped working. Getting following errors (attached).
Any idea how to fix it?
Thanks.
wh23xx_weewx-python3.txt

@walek75
Copy link
Author

walek75 commented Jul 22, 2020

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.

@Orbit4l
Copy link

Orbit4l commented Jul 23, 2020

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.

Thanks!
Downgraded to python2 version since but will try again soon and give an update.

@infinityab
Copy link

infinityab commented Jul 24, 2020

@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?

@infinityab
Copy link

Syslog attached for Weewx 4.1 with Buster Debian on a Pi Series1 (2xUSB) - no Weather Station feed observed.

SysLog-Buster-Debian-Weewx-4.1-Pi-Series1.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants