Start of 2019 not so smooth

80 views
Skip to first unread message

Colin Larsen

unread,
Dec 31, 2018, 5:00:43 PM12/31/18
to weewx-user
Happy New Year all

I awoke this morning (2019 here in NZ) to find this;

Jan  1 10:55:29 raspberrypi weewx[9736]: reportengine: Caught unrecoverable exception in generator weewx.cheetahgenerator.CheetahGenerator

Jan  1 10:55:29 raspberrypi weewx[9736]:         ****  'NoneType' object has no attribute '__getitem__'

Jan  1 10:55:29 raspberrypi weewx[9736]:         ****  Traceback (most recent call last):

Jan  1 10:55:29 raspberrypi weewx[9736]:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 239, in run

Jan  1 10:55:29 raspberrypi weewx[9736]:         ****      obj.start()

Jan  1 10:55:29 raspberrypi weewx[9736]:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 273, in start

Jan  1 10:55:29 raspberrypi weewx[9736]:         ****      self.run()

Jan  1 10:55:29 raspberrypi weewx[9736]:         ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 158, in run

Jan  1 10:55:29 raspberrypi weewx[9736]:         ****      ngen = self.generate(gen_dict[section_name], self.gen_ts)

Jan  1 10:55:29 raspberrypi weewx[9736]:         ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generate

Jan  1 10:55:29 raspberrypi weewx[9736]:         ****      ngen += self.generate(section[subsection], gen_ts)

Jan  1 10:55:29 raspberrypi weewx[9736]:         ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generate

Jan  1 10:55:29 raspberrypi weewx[9736]:         ****      ngen += self.generate(section[subsection], gen_ts)

Jan  1 10:55:29 raspberrypi weewx[9736]:         ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 320, in generate

Jan  1 10:55:29 raspberrypi weewx[9736]:         ****      default_binding)

Jan  1 10:55:29 raspberrypi weewx[9736]:         ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 372, in _getSearchList

Jan  1 10:55:29 raspberrypi weewx[9736]:         ****      searchList += obj.get_extension_list(timespan, db_lookup)

Jan  1 10:55:29 raspberrypi weewx[9736]:         ****    File "/usr/share/weewx/user/belchertown.py", line 297, in get_extension_list

Jan  1 10:55:29 raspberrypi weewx[9736]:         ****      year_rainiest_month_tuple = (year_rainiest_month_query[1], rain_unit, 'group_rain')

Jan  1 10:55:29 raspberrypi weewx[9736]:         ****  TypeError: 'NoneType' object has no attribute '__getitem__'

Jan  1 10:55:29 raspberrypi weewx[9736]:         ****  Generator terminated



None of the year/month/day records appear to have rolled over and the 2019 NOAA reports haven't generated. 


Not quite sure where the hiccup lays, Weewx or skin?


Cheers

Colin

Colin Larsen

unread,
Dec 31, 2018, 5:07:48 PM12/31/18
to weewx-user
I suspect a problem in the skin so have logged an issue with Pat 

Greg from Oz

unread,
Dec 31, 2018, 5:52:06 PM12/31/18
to weewx-user
I am in Oz and mine is OK.
Probably the skin.

Colin Larsen

unread,
Dec 31, 2018, 6:08:19 PM12/31/18
to weewx...@googlegroups.com
Thanks Greg and HNY to you.

Yep I just did a reboot and got a better look at the error, it certainly looks like a skin problem. I'll have to wait for Pat to wake up :)

Jan  1 12:05:15 raspberrypi weewx[1004]: manager: Added record 2019-01-01 12:05:00 NZDT (1546297500) to database 'weewx.sdb'

Jan  1 12:05:15 raspberrypi weewx[1004]: manager: Added record 2019-01-01 12:05:00 NZDT (1546297500) to daily summary in 'weewx.sdb'

Jan  1 12:05:20 raspberrypi weewx[1004]: cheetahgenerator: Generated 14 files for report StandardReport in 4.36 seconds

Jan  1 12:05:25 raspberrypi weewx[1004]: imagegenerator: Generated 36 images for StandardReport in 3.78 seconds

Jan  1 12:05:25 raspberrypi weewx[1004]: copygenerator: copied 9 files to /var/www/html/weewx

Jan  1 12:05:30 raspberrypi weewx[1004]: cheetahgenerator: Generated 4 files for report Highcharts_Belchertown in 5.74 seconds

Jan  1 12:05:30 raspberrypi weewx[1004]: copygenerator: copied 0 files to /var/www/html/weewx/belchertown

Jan  1 12:05:30 raspberrypi weewx[1004]: Belchertown Extension: version 0.8.1

Jan  1 12:05:30 raspberrypi weewx[1004]: reportengine: Caught unrecoverable exception in generator weewx.cheetahgenerator.CheetahGenerator

Jan  1 12:05:30 raspberrypi weewx[1004]:         ****  'NoneType' object has no attribute '__getitem__'

Jan  1 12:05:30 raspberrypi weewx[1004]:         ****  Traceback (most recent call last):

Jan  1 12:05:30 raspberrypi weewx[1004]:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 239, in run

Jan  1 12:05:30 raspberrypi weewx[1004]:         ****      obj.start()

Jan  1 12:05:30 raspberrypi weewx[1004]:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 273, in start

Jan  1 12:05:30 raspberrypi weewx[1004]:         ****      self.run()

Jan  1 12:05:30 raspberrypi weewx[1004]:         ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 158, in run

Jan  1 12:05:30 raspberrypi weewx[1004]:         ****      ngen = self.generate(gen_dict[section_name], self.gen_ts)

Jan  1 12:05:30 raspberrypi weewx[1004]:         ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generate

Jan  1 12:05:30 raspberrypi weewx[1004]:         ****      ngen += self.generate(section[subsection], gen_ts)

Jan  1 12:05:30 raspberrypi weewx[1004]:         ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generate

Jan  1 12:05:30 raspberrypi weewx[1004]:         ****      ngen += self.generate(section[subsection], gen_ts)

Jan  1 12:05:30 raspberrypi weewx[1004]:         ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 320, in generate

Jan  1 12:05:30 raspberrypi weewx[1004]:         ****      default_binding)

Jan  1 12:05:30 raspberrypi weewx[1004]:         ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 372, in _getSearchList

Jan  1 12:05:30 raspberrypi weewx[1004]:         ****      searchList += obj.get_extension_list(timespan, db_lookup)

Jan  1 12:05:30 raspberrypi weewx[1004]:         ****    File "/usr/share/weewx/user/belchertown.py", line 297, in get_extension_list

Jan  1 12:05:30 raspberrypi weewx[1004]:         ****      year_rainiest_month_tuple = (year_rainiest_month_query[1], rain_unit, 'group_rain')

Jan  1 12:05:30 raspberrypi weewx[1004]:         ****  TypeError: 'NoneType' object has no attribute '__getitem__'

Jan  1 12:05:30 raspberrypi weewx[1004]:         ****  Generator terminated

Jan  1 12:05:30 raspberrypi weewx[1004]: copygenerator: copied 22 files to /var/www/html/weewx/belchertown


--
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.
For more options, visit https://groups.google.com/d/optout.

WILWetter25

unread,
Dec 31, 2018, 6:31:03 PM12/31/18
to weewx-user
Same Here: Last Report 31.12.2018 23:59. Graphs are working.

kutz...@gmail.com

unread,
Dec 31, 2018, 6:34:20 PM12/31/18
to weewx-user
Colin,

Out of curiosity, are you using mySQL or sqlite? Pat tailors the SQL statements to the database. I'm running weeWX and the Belchertown skin on sqlite. I'm in the US Eastern timezone, so will see if the skin coughs up for me after the year roll over.

phil

Colin Larsen

unread,
Dec 31, 2018, 6:39:02 PM12/31/18
to weewx...@googlegroups.com
sqllite here

Pat

unread,
Dec 31, 2018, 7:28:37 PM12/31/18
to weewx-user
I'm awake! But it's 7:30pm here, not 2019 yet. Hmm... 

Colin Larsen

unread,
Dec 31, 2018, 7:52:55 PM12/31/18
to weewx...@googlegroups.com
Ah well, if you're quick you'll fix it before it strikes there :)

Pat

unread,
Dec 31, 2018, 8:00:08 PM12/31/18
to weewx-user
Starting to look now

Pat

unread,
Dec 31, 2018, 10:15:46 PM12/31/18
to weewx-user
For those with Belchertown skin, if you get hit with the new year bug grab an updated copy of the bin/user/belchertown.py file and place it into your bin/user folder and restart weewx.

The bug is when there's no data populated in certain tables yet because of the new year, which breaks the records page - thus breaking the whole skin. 

Should be fixed now!

kutz...@gmail.com

unread,
Dec 31, 2018, 10:29:00 PM12/31/18
to weewx-user
Thanks Pat!

phil

Scott Grayban

unread,
Jan 1, 2019, 3:11:33 AM1/1/19
to weewx-user
No errors at 00:10

Thanks for the fix Pat.......
Reply all
Reply to author
Forward
0 new messages