IndexError: list index out of range

98 views
Skip to first unread message

Dan'l B

unread,
Apr 5, 2018, 5:59:25 PM4/5/18
to weewx-user
Been scratching my head over this error. Can someone point me to where I should be looking? I can provide a longer log excerpt if needed.

Apr  5 17:41:22 testpi weewx[9553]: cheetahgenerator: Generate failed with exception '<type 'exceptions.IndexError'>'
Apr  5 17:41:22 testpi weewx[9553]: cheetahgenerator: **** Ignoring template /home/weewx/skins/exfoliation/forecast.html.tmpl
Apr  5 17:41:22 testpi weewx[9553]: cheetahgenerator: **** Reason: list index out of range
Apr  5 17:41:22 testpi weewx[9553]: ****  Traceback (most recent call last):
Apr  5 17:41:22 testpi weewx[9553]: ****    File "/home/weewx/bin/weewx/cheetahgenerator.py", line 330, in generate
Apr  5 17:41:22 testpi weewx[9553]: ****      print >> _file, compiled_template
Apr  5 17:41:22 testpi weewx[9553]: ****    File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in __str__
Apr  5 17:41:22 testpi weewx[9553]: ****      rc = getattr(self, mainMethName)()
Apr  5 17:41:22 testpi weewx[9553]: ****    File "_home_weewx_skins_exfoliation_forecast_html_tmpl.py", line 284, in respond
Apr  5 17:41:22 testpi weewx[9553]: ****    File "_home_weewx_skins_exfoliation_forecast_html_tmpl.py", line 119, in __errorCatcher8
Apr  5 17:41:22 testpi weewx[9553]: ****    File "<string>", line 1, in <module>
Apr  5 17:41:22 testpi weewx[9553]: ****  IndexError: list index out of range

Setup is RPi3 running WeeWx with two instances: vantage.conf (essentially the standard weewx.conf file), and sdr.conf, which only records one temp sender. 9553 is the ID of the vantage process.

Extension Name    Version   Description
Weewx-WD          1.0.3     weewx support for Weather Display Live, SteelSeries Gauges and Carter Lake/Saratoga weather web site templates.
forecast          3.2.14    Generate and display weather and tide forecasts.
sdr               0.39      Capture data from rtl_433
exfoliation       0.40      A minimalist layout with lots of data.


mwall

unread,
Apr 5, 2018, 7:10:20 PM4/5/18
to weewx-user
looks like something is wrong with the forecast.html.tmpl file

please post forecast.html.tmpl, your exfoliation skin.conf, and the StdReport section of your vantage.conf

Dan Hinckley

unread,
Apr 6, 2018, 9:45:38 AM4/6/18
to weewx...@googlegroups.com
Attached

forecast.html.tmpl
skin.conf
StdReport.txt

Dan'l B

unread,
Apr 10, 2018, 7:59:44 AM4/10/18
to weewx-user
Posted

Dan'l B

unread,
Apr 13, 2018, 11:34:41 AM4/13/18
to weewx-user
Matthew,

Posted the pages and would appreciate any pointers you might have.


On Thursday, April 5, 2018 at 7:10:20 PM UTC-4, mwall wrote:

mwall

unread,
Apr 14, 2018, 12:23:18 PM4/14/18
to weewx-user
you will have to figure this one out yourself - cheetah is pretty much impossible to debug any way other than trial-and-error.  one of the 'for' loops is failing in forecast.html.tmpl, or in one of the files that forecast.html.tmpl includes.

so remove everything from forecast.html.tmpl

then add parts in one at a time

for example, start with only the table

when you are certain that works, then add the strip

when you are certain that works, add the tides

m

Dan Hinckley

unread,
Apr 15, 2018, 8:38:28 AM4/15/18
to weewx...@googlegroups.com
OK, thanks, that looks as if it’s working so far and will add things back one at a time.

--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/5ibJZAx5oxQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages