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

On Wed, Mar 18, 2020 at 12:05 PM Bill Arthur <[email protected]> wrote:

> Thanks for the quick response!
>
> 3.9.2   Downloaded and installed last night.
>
>
> On Wednesday, March 18, 2020 at 1:56:56 PM UTC-5, Bill Arthur wrote:
>>
>> 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
>>
> --
> 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/2f63ba12-4ee2-49eb-9f20-210d11056b58%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/2f63ba12-4ee2-49eb-9f20-210d11056b58%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/CAPq0zECwH19K3m%2BgninkFi2dTErUsWh3FoTv8f3MYj5WWyRuUw%40mail.gmail.com.

Reply via email to