Thanks for not only finding this, but coming up with a fix, Andrew. I'm surprised this bug survived for so long.
I took a slightly different approach. Commit 12c635a <https://github.com/weewx/weewx/commit/12c635aabaae7be7181006c7164a336e917faade> . -tk On Mon, Sep 21, 2020 at 8:05 PM Andrew H <[email protected]> wrote: > Had a look around some existing posts regarding similar issues and with > some guidance from friends smarter than me, ended up changing this line > (1160): > > weight = 60.0 * record['interval'] if self.version >= '2.0' else 1.0 > > to > > weight = 60.0 * record['interval'] if self.version is not None and > self.version >= '2.0' else 1.0 > > and it's working ok now... > > > On Tuesday, 22 September 2020 at 12:08:27 pm UTC+10 Andrew H wrote: > >> Hi all, >> >> Aweosmse software, have been using it since about 2015 without issue! >> >> I'm running a Davis Vantage Vue w/usb connected to a raspberry pi. >> >> I have just done a clean install of raspbian and have attempted an >> install with 4.1.1 from apt repo using python3 but I'm hitting an error >> when it tries to add entries to the archive. I export to mysql and from >> looking into the error it appears to be a python3 thing... >> >> Error: >> https://hastebin.itsgottabe.red/xiwabocake.md >> >> Config: >> https://hastebin.itsgottabe.red/adavojemix.coffeescript >> >> >> >> cheers >> Andrew >> >> >> >> -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-user/9e661f0d-16bc-4480-92fc-f87b43072fc6n%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-user/9e661f0d-16bc-4480-92fc-f87b43072fc6n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAPq0zEAihnNA0LrEi68S%3DGwWjpnT3qopoC0WZNMHto_TzihoWQ%40mail.gmail.com.
