I wrote that driver - so thank you for putting 'HP1000' in the title; I really can't read through all messages looking for the occasional one like this. What version of the OS are you running - you mentioned performing a recent update: from what and to what? Also have you moved from Python 2 to Python 3 as that was a trigger for this in the past? Finally what version of the HP1000 driver are you using - the latest version on Python 3 should not be doing this now? Just for kicks, what version of WeeWx are you using? I've tested it running V4.1 but I'm not aware of any breaking changes in later versions of WeeWx. Susan
On Friday, 26 November 2021 at 8:08:32 am UTC+11 [email protected] wrote: > I would also suggest posting to the HP1000 "Issues" list. > https://github.com/AussieSusan/HP1000/issues > > On Thu, Nov 25, 2021 at 7:14 AM [email protected] <[email protected]> > wrote: > >> Hello >> Unfortunately, weewx keeps crashing after a Linux update. >> I once attached the log from the syslog. Maybe someone can help. >> As hardware I have an HP1000 weather station with Hp driver and a virtual >> server (Linux Ubuntu) on a disk station DS 218+. >> The whole thing lasted a few months. Until I did abt-get updat and >> upgrade. >> >> Greetings André >> >> >> Nov 25 16:06:47 weewx weewx[86060] INFO weewx.engine: Main loop exiting. >> Shutting engine down. >> Nov 25 16:06:47 weewx weewx[86060] CRITICAL __main__: Caught >> unrecoverable exception: >> Nov 25 16:06:47 weewx weewx[86060] CRITICAL __main__: **** unpack >> requires a buffer of 4 bytes >> Nov 25 16:06:47 weewx weewx[86060] CRITICAL __main__: **** Traceback >> (most recent call last): >> Nov 25 16:06:47 weewx weewx[86060] CRITICAL __main__: **** File >> "/usr/share/weewx/weewxd", line 157, in main >> Nov 25 16:06:47 weewx weewx[86060] CRITICAL __main__: **** >> engine.run() >> Nov 25 16:06:47 weewx weewx[86060] CRITICAL __main__: **** File >> "/usr/share/weewx/weewx/engine.py", line 178, in run >> Nov 25 16:06:47 weewx weewx[86060] CRITICAL __main__: **** >> self.dispatchEvent(weewx.Event(weewx.STARTUP)) >> Nov 25 16:06:47 weewx weewx[86060] CRITICAL __main__: **** File >> "/usr/share/weewx/weewx/engine.py", line 245, in dispatchEvent >> Nov 25 16:06:47 weewx weewx[86060] CRITICAL __main__: **** >> callback(event) >> Nov 25 16:06:47 weewx weewx[86060] CRITICAL __main__: **** File >> "/usr/share/weewx/weewx/engine.py", line 574, in startup >> Nov 25 16:06:47 weewx weewx[86060] CRITICAL __main__: **** >> self._catchup(self.engine.console.genStartupRecords) >> Nov 25 16:06:47 weewx weewx[86060] CRITICAL __main__: **** File >> "/usr/share/weewx/weewx/engine.py", line 687, in _catchup >> Nov 25 16:06:47 weewx weewx[86060] CRITICAL __main__: **** for >> record in generator(lastgood_ts): >> Nov 25 16:06:47 weewx weewx[86060] CRITICAL __main__: **** File >> "/usr/share/weewx/user/HP1000.py", line 904, in genStartupRecords >> Nov 25 16:06:47 weewx weewx[86060] CRITICAL __main__: **** >> rec_packet = self.getHistoryData(year, record_count, start_record) >> Nov 25 16:06:47 weewx weewx[86060] CRITICAL __main__: **** File >> "/usr/share/weewx/user/HP1000.py", line 791, in getHistoryData >> Nov 25 16:06:47 weewx weewx[86060] CRITICAL __main__: **** >> pkt_length = struct.unpack('I', rx_data[32:36])[0] >> Nov 25 16:06:47 weewx weewx[86060] CRITICAL __main__: **** >> struct.error: unpack requires a buffer of 4 bytes >> Nov 25 16:06:47 weewx weewx[86060] CRITICAL __main__: **** Exiting. >> >> -- >> 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/0b1d6853-14de-451f-aa8b-ddfcc4120bfbn%40googlegroups.com >> >> <https://groups.google.com/d/msgid/weewx-user/0b1d6853-14de-451f-aa8b-ddfcc4120bfbn%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/3f0de619-e226-4775-a0cc-22a62cbc1b7en%40googlegroups.com.
