Or better still wait until I get home this morning and patch weewx-saratoga.
Gary On Tuesday 16 January 2024 at 07:24:01 UTC+10 [email protected] wrote: > Yes, it will. So much for my assumption that users are unlikely to be > affected! > > In the meantime, you can change weewx.units.UnknownType to > weewx.units.UnknownObsType in the code. > > On Mon, Jan 15, 2024 at 11:07 AM [email protected] <[email protected]> > wrote: > >> As I was researching upgrading to V5 I ran across this, >> http://www.weewx.com/docs/5.0/upgrade/#class-weewxunitsunknowntype-has-been-renamed >> . >> Looks like Wssearchlist.py will need an update. >> rich >> >> On Monday 15 January 2024 at 11:23:50 UTC-5 Tom -KQ5S wrote: >> >>> I was using one of the beta versions of weewx and all was fine. I just >>> updated using the poip update command and am now getting this error.. >>> Wssearchlist.py is the Search List Extension support for WeeWX-Saratoga. >>> Maybe Gary can answer. >>> an 15 10:20:18 raspberrypi weewxd[328037]: ERROR weewx.reportengine: >>> Caught unrecoverable exception in generator >>> 'weewx.cheetahgenerator.CheetahGenerator' >>> Jan 15 10:20:18 raspberrypi weewxd[328037]: ERROR weewx.reportengine: >>> **** module 'weewx.units' has no attribute 'UnknownType' >>> Jan 15 10:20:18 raspberrypi weewxd[328037]: ERROR weewx.reportengine: >>> **** Traceback (most recent call last): >>> Jan 15 10:20:18 raspberrypi weewxd[328037]: ERROR weewx.reportengine: >>> **** File >>> "/home/pi/weewx-venv/lib/python3.11/site-packages/weewx/reportengine.py", >>> line 207, in run >>> Jan 15 10:20:18 raspberrypi weewxd[328037]: ERROR weewx.reportengine: >>> **** obj.start() >>> Jan 15 10:20:18 raspberrypi weewxd[328037]: ERROR weewx.reportengine: >>> **** File >>> "/home/pi/weewx-venv/lib/python3.11/site-packages/weewx/reportengine.py", >>> line 399, in start >>> Jan 15 10:20:18 raspberrypi weewxd[328037]: ERROR weewx.reportengine: >>> **** self.run() >>> Jan 15 10:20:18 raspberrypi weewxd[328037]: ERROR weewx.reportengine: >>> **** File >>> "/home/pi/weewx-venv/lib/python3.11/site-packages/weewx/cheetahgenerator.py", >>> >>> line 166, in run >>> Jan 15 10:20:18 raspberrypi weewxd[328037]: ERROR weewx.reportengine: >>> **** ngen = self.generate(gen_dict[section_name], section_name, >>> self.gen_ts) >>> Jan 15 10:20:18 raspberrypi weewxd[328037]: ERROR weewx.reportengine: >>> **** >>> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >>> Jan 15 10:20:18 raspberrypi weewxd[328037]: ERROR weewx.reportengine: >>> **** File >>> "/home/pi/weewx-venv/lib/python3.11/site-packages/weewx/cheetahgenerator.py", >>> >>> line 226, in generate >>> Jan 15 10:20:18 raspberrypi weewxd[328037]: ERROR weewx.reportengine: >>> **** ngen += self.generate(section[subsection], subsection, >>> gen_ts) >>> Jan 15 10:20:18 raspberrypi weewxd[328037]: ERROR weewx.reportengine: >>> **** >>> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >>> Jan 15 10:20:18 raspberrypi weewxd[328037]: ERROR weewx.reportengine: >>> **** File >>> "/home/pi/weewx-venv/lib/python3.11/site-packages/weewx/cheetahgenerator.py", >>> >>> line 226, in generate >>> Jan 15 10:20:18 raspberrypi weewxd[328037]: ERROR weewx.reportengine: >>> **** ngen += self.generate(section[subsection], subsection, >>> gen_ts) >>> Jan 15 10:20:18 raspberrypi weewxd[328037]: ERROR weewx.reportengine: >>> **** >>> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >>> Jan 15 10:20:18 raspberrypi weewxd[328037]: ERROR weewx.reportengine: >>> **** File >>> "/home/pi/weewx-venv/lib/python3.11/site-packages/weewx/cheetahgenerator.py", >>> >>> line 309, in generate >>> Jan 15 10:20:18 raspberrypi weewxd[328037]: ERROR weewx.reportengine: >>> **** searchList = self._getSearchList(encoding, timespan, >>> Jan 15 10:20:18 raspberrypi weewxd[328037]: ERROR weewx.reportengine: >>> **** ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >>> Jan 15 10:20:18 raspberrypi weewxd[328037]: ERROR weewx.reportengine: >>> **** File >>> "/home/pi/weewx-venv/lib/python3.11/site-packages/weewx/cheetahgenerator.py", >>> >>> line 401, in _getSearchList >>> Jan 15 10:20:18 raspberrypi weewxd[328037]: ERROR weewx.reportengine: >>> **** search_list += obj.get_extension_list(timespan, db_lookup) >>> Jan 15 10:20:18 raspberrypi weewxd[328037]: ERROR weewx.reportengine: >>> **** ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >>> Jan 15 10:20:18 raspberrypi weewxd[328037]: ERROR weewx.reportengine: >>> **** File "/home/pi/weewx-data/bin/user/wssearchlist.py", line >>> 1569, in get_extension_list >>> Jan 15 10:20:18 raspberrypi weewxd[328037]: ERROR weewx.reportengine: >>> **** if not isinstance(temp_vt, weewx.units.UnknownType): >>> Jan 15 10:20:18 raspberrypi weewxd[328037]: ERROR weewx.reportengine: >>> **** ^^^^^^^^^^^^^^^^^^^^^^^ >>> Jan 15 10:20:18 raspberrypi weewxd[328037]: ERROR weewx.reportengine: >>> **** AttributeError: module 'weewx.units' has no attribute >>> 'UnknownType' >>> Jan 15 10:20:18 raspberrypi weewxd[328037]: ERROR weewx.reportengine: >>> **** Generator terminated >>> >> -- >> 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/6723383d-625e-4d9b-832a-76ab72099f7bn%40googlegroups.com >> >> <https://groups.google.com/d/msgid/weewx-user/6723383d-625e-4d9b-832a-76ab72099f7bn%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/a1465f15-4fc9-4f57-840f-13c20b0ac73an%40googlegroups.com.
