New Weewx/W34 install works OK, but with error msgs

71 views
Skip to first unread message

Bill Arthur

unread,
Mar 18, 2020, 2:56:56 PM3/18/20
to weewx-user
I just reinstalled Weewx and Weather34. It's working OK, but I get the following error messages. Any idea where the problem lies?

Mar 18 13:50:27 OpiQ-2 weewx[498]: cheetahgenerator: Generate failed with exception '<type 'exceptions.TypeError'>'
Mar 18 13:50:27 OpiQ-2 weewx[498]: cheetahgenerator: **** Ignoring template /etc/weewx/skins/Weather34/w34charts/chartdata/result.csv.tmpl
Mar 18 13:50:27 OpiQ-2 weewx[498]: cheetahgenerator: **** Reason: unsupported operand type(s) for +: 'float' and 'NoneType'
Mar 18 13:50:27 OpiQ-2 weewx[498]: ****  Traceback (most recent call last):
Mar 18 13:50:27 OpiQ-2 weewx[498]: ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 332, in generate
Mar 18 13:50:27 OpiQ-2 weewx[498]: ****      fd.write(str(compiled_template))
Mar 18 13:50:27 OpiQ-2 weewx[498]: ****    File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1045, in __str__
Mar 18 13:50:27 OpiQ-2 weewx[498]: ****      rc = getattr(self, mainMethName)()
Mar 18 13:50:27 OpiQ-2 weewx[498]: ****    File "_etc_weewx_skins_Weather34_w34charts_chartdata_result_csv_tmpl.py", line 251, in respond
Mar 18 13:50:27 OpiQ-2 weewx[498]: ****  TypeError: unsupported operand type(s) for +: 'float' and 'NoneType'
Mar 18 13:50:27 OpiQ-2 weewx[498]: cheetahgenerator: Generated 3 files for report Weather34Report in 0.70 seconds
Mar 18 13:50:27 OpiQ-2 weewx[498]: copygenerator: copied 0 files to /var/weewx/reports

steeple ian

unread,
Mar 18, 2020, 3:00:35 PM3/18/20
to weewx...@googlegroups.com
Which version of WeeWX are you running? 

--
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/d9dbfe80-19d3-40e6-969f-2e6031e20da9%40googlegroups.com.

Bill Arthur

unread,
Mar 18, 2020, 3:05:27 PM3/18/20
to weewx-user
Thanks for the quick response! 

3.9.2   Downloaded and installed last night.

Thomas Keffer

unread,
Mar 18, 2020, 3:48:33 PM3/18/20
to weewx-user
This is almost surely a problem in the skin "Weather34Report." Somewhere in the template Weather34/w34charts/chartdata/result.csv.tmpl is some arithmetic, where two numbers are getting added together. One of them is value Python None, rather than a number.

In general, when writing code or templates for weewx, one must be vigilant to the possibility that a value might be None, and test for it.

-tk

--
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.

steeple ian

unread,
Mar 18, 2020, 4:17:17 PM3/18/20
to weewx...@googlegroups.com
Bill,
Thomas is correct. The reason I asked about your WeeWX version is that we are moving away from CanvasJS to Highcharts. We have not completed our testing on WeeWX 4 builds but it is looking good for 3.9.2.
If you can hold fire for a couple of days I can let you have a copy to try. The whole chart infra structure has been changed and will include for the first time charts that you can see updating in real time. There is a new ultra efficient install process included as well.
Ian

Bill Arthur

unread,
Mar 18, 2020, 6:29:20 PM3/18/20
to weewx-user
Thank you both.  I can certainly wait for for a bit.
I'm just happy that it wasn't something stupid I did during install.
And I look forward to helping test the new copy.




On Wednesday, March 18, 2020 at 1:56:56 PM UTC-5, Bill Arthur wrote:
Reply all
Reply to author
Forward
0 new messages