Skip to content

[BUG] Reason: '<' not supported between instances of 'NoneType' and 'float' in the skins/weewx-wdc/year-%Y.html.tmpl file #256

@cbirkenbeul

Description

@cbirkenbeul

Hello,
I've upgraded to weewx 5.0.2 and your skin to 3.5 and got a lot of issues. Most I could fix by myself because of the whew 5 upgrade.

But this issue I got and cannot solve by myself:

2024-02-27T10:05:36.003514+01:00 weewx weewxd[69217]: ERROR weewx.cheetahgenerator: Evaluation of template /etc/weewx/skins/weewx-wdc/year-%Y.html.tmpl failed with exception '<class 'TypeError'>'
2024-02-27T10:05:36.003788+01:00 weewx weewxd[69217]: ERROR weewx.cheetahgenerator: **** Ignoring template /etc/weewx/skins/weewx-wdc/year-%Y.html.tmpl
2024-02-27T10:05:36.003952+01:00 weewx weewxd[69217]: ERROR weewx.cheetahgenerator: **** Reason: '<' not supported between instances of 'NoneType' and 'float'
2024-02-27T10:05:36.005540+01:00 weewx weewxd[69217]: ERROR weewx.cheetahgenerator: ****  Traceback (most recent call last):
2024-02-27T10:05:36.005700+01:00 weewx weewxd[69217]: ERROR weewx.cheetahgenerator: ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 334, in generate
2024-02-27T10:05:36.005843+01:00 weewx weewxd[69217]: ERROR weewx.cheetahgenerator: ****      unicode_string = compiled_template.respond()
2024-02-27T10:05:36.005982+01:00 weewx weewxd[69217]: ERROR weewx.cheetahgenerator: ****                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-02-27T10:05:36.006115+01:00 weewx weewxd[69217]: ERROR weewx.cheetahgenerator: ****    File "_etc_weewx_skins_weewx_wdc_year__Y_html_tmpl.py", line 203, in respond
2024-02-27T10:05:36.006256+01:00 weewx weewxd[69217]: ERROR weewx.cheetahgenerator: ****    File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 1708, in _handleCheetahInclude
2024-02-27T10:05:36.006389+01:00 weewx weewxd[69217]: ERROR weewx.cheetahgenerator: ****      self._CHEETAH__cheetahIncludes[_includeID].respond(trans)
2024-02-27T10:05:36.006520+01:00 weewx weewxd[69217]: ERROR weewx.cheetahgenerator: ****    File "_etc_weewx_skins_weewx_wdc_includes_climatological_days_inc.py", line 861, in respond
2024-02-27T10:05:36.006650+01:00 weewx weewxd[69217]: ERROR weewx.cheetahgenerator: ****    File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 1708, in _handleCheetahInclude
2024-02-27T10:05:36.006772+01:00 weewx weewxd[69217]: ERROR weewx.cheetahgenerator: ****      self._CHEETAH__cheetahIncludes[_includeID].respond(trans)
2024-02-27T10:05:36.006895+01:00 weewx weewxd[69217]: ERROR weewx.cheetahgenerator: ****    File "_etc_weewx_skins_weewx_wdc_includes_stat_table_inc.py", line 403, in respond
2024-02-27T10:05:36.007017+01:00 weewx weewxd[69217]: ERROR weewx.cheetahgenerator: ****    File "_etc_weewx_skins_weewx_wdc_includes_stat_table_inc.py", line 144, in __errorCatcher11
2024-02-27T10:05:36.007140+01:00 weewx weewxd[69217]: ERROR weewx.cheetahgenerator: ****    File "<string>", line 1, in <module>
2024-02-27T10:05:36.007272+01:00 weewx weewxd[69217]: ERROR weewx.cheetahgenerator: ****  TypeError: '<' not supported between instances of 'NoneType' and 'float'
2024-02-27T10:05:49.659314+01:00 weewx weewxd[69217]: ERROR weewx.cheetahgenerator: Evaluation of template /etc/weewx/skins/weewx-wdc/statistics.html.tmpl failed with exception '<class 'TypeError'>'
2024-02-27T10:05:49.659790+01:00 weewx weewxd[69217]: ERROR weewx.cheetahgenerator: **** Ignoring template /etc/weewx/skins/weewx-wdc/statistics.html.tmpl
2024-02-27T10:05:49.659942+01:00 weewx weewxd[69217]: ERROR weewx.cheetahgenerator: **** Reason: '<' not supported between instances of 'NoneType' and 'float'
2024-02-27T10:05:49.661522+01:00 weewx weewxd[69217]: ERROR weewx.cheetahgenerator: ****  Traceback (most recent call last):
2024-02-27T10:05:49.661680+01:00 weewx weewxd[69217]: ERROR weewx.cheetahgenerator: ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 334, in generate
2024-02-27T10:05:49.661819+01:00 weewx weewxd[69217]: ERROR weewx.cheetahgenerator: ****      unicode_string = compiled_template.respond()
2024-02-27T10:05:49.661958+01:00 weewx weewxd[69217]: ERROR weewx.cheetahgenerator: ****                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-02-27T10:05:49.662091+01:00 weewx weewxd[69217]: ERROR weewx.cheetahgenerator: ****    File "_etc_weewx_skins_weewx_wdc_statistics_html_tmpl.py", line 250, in respond
2024-02-27T10:05:49.662226+01:00 weewx weewxd[69217]: ERROR weewx.cheetahgenerator: ****    File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 1708, in _handleCheetahInclude
2024-02-27T10:05:49.662356+01:00 weewx weewxd[69217]: ERROR weewx.cheetahgenerator: ****      self._CHEETAH__cheetahIncludes[_includeID].respond(trans)
2024-02-27T10:05:49.662484+01:00 weewx weewxd[69217]: ERROR weewx.cheetahgenerator: ****    File "_etc_weewx_skins_weewx_wdc_includes_climatological_days_inc.py", line 861, in respond
2024-02-27T10:05:49.662617+01:00 weewx weewxd[69217]: ERROR weewx.cheetahgenerator: ****    File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 1708, in _handleCheetahInclude
2024-02-27T10:05:49.662740+01:00 weewx weewxd[69217]: ERROR weewx.cheetahgenerator: ****      self._CHEETAH__cheetahIncludes[_includeID].respond(trans)
2024-02-27T10:05:49.662879+01:00 weewx weewxd[69217]: ERROR weewx.cheetahgenerator: ****    File "_etc_weewx_skins_weewx_wdc_includes_stat_table_inc.py", line 403, in respond
2024-02-27T10:05:49.663000+01:00 weewx weewxd[69217]: ERROR weewx.cheetahgenerator: ****    File "_etc_weewx_skins_weewx_wdc_includes_stat_table_inc.py", line 144, in __errorCatcher11
2024-02-27T10:05:49.663122+01:00 weewx weewxd[69217]: ERROR weewx.cheetahgenerator: ****    File "<string>", line 1, in <module>
2024-02-27T10:05:49.663247+01:00 weewx weewxd[69217]: ERROR weewx.cheetahgenerator: ****  TypeError: '<' not supported between instances of 'NoneType' and 'float'

There were a fixed issue with the same template file that was solved for 3.5, but I got a different error. The message seems that it could be a skin issue. Otherwise I would ask in the google groups.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions