Saratoga Extension Error After Upgrade to 5.0

156 views
Skip to first unread message

Tom -KQ5S

unread,
Jan 15, 2024, 11:23:50 AM1/15/24
to weewx-user
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

bell...@gmail.com

unread,
Jan 15, 2024, 2:07:34 PM1/15/24
to weewx-user
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

Tom Keffer

unread,
Jan 15, 2024, 4:24:01 PM1/15/24
to weewx...@googlegroups.com
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.

--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/6723383d-625e-4d9b-832a-76ab72099f7bn%40googlegroups.com.

gjr80

unread,
Jan 15, 2024, 5:05:25 PM1/15/24
to weewx-user
Or better still wait until I get home this morning and patch weewx-saratoga.

Gary

Tom -KQ5S

unread,
Jan 15, 2024, 5:09:33 PM1/15/24
to weewx-user
Thanks, Gary.  I will wait.

Tom

gjr80

unread,
Jan 16, 2024, 3:07:29 PM1/16/24
to weewx-user
Just to wrap this up I have released weewx-saratoga v0.1.8 that fixes this bug and a couple of other unrelated ones. 

Gary

Tom -KQ5S

unread,
Jan 16, 2024, 3:09:47 PM1/16/24
to weewx-user
Thanks, Gary.  Works fine.

Tom

Reply all
Reply to author
Forward
0 new messages