You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to weewx-user
Hello,
can you gimme small hint what should be checked in cheetah template after updated to version 4.6.2? I am using python3 and after update all templates works fine except main one. Unfortunately for me I made much of customizations there so I ´d like to know to which part I should focus mainly :)
Feb 21 11:00:39 new-weather-machine journal: weewx[22334] ERROR weewx.cheetahgenerator: Evaluation of template /etc/weewx/skins/neowx/index.html.tmpl failed with exception '<class 'TypeError'>' Feb 21 11:00:39 new-weather-machine journal: weewx[22334] ERROR weewx.cheetahgenerator: **** Ignoring template /etc/weewx/skins/neowx/index.html.tmpl Feb 21 11:00:39 new-weather-machine journal: weewx[22334] ERROR weewx.cheetahgenerator: **** Reason: %x format: an integer is required, not dict Feb 21 11:00:39 new-weather-machine journal: weewx[22334] ERROR weewx.cheetahgenerator: **** Traceback (most recent call last): Feb 21 11:00:39 new-weather-machine journal: weewx[22334] ERROR weewx.cheetahgenerator: **** File "/usr/share/weewx/weewx/cheetahgenerator.py", line 344, in generate Feb 21 11:00:39 new-weather-machine journal: weewx[22334] ERROR weewx.cheetahgenerator: **** unicode_string = compiled_template.respond() Feb 21 11:00:39 new-weather-machine journal: weewx[22334] ERROR weewx.cheetahgenerator: **** File "_etc_weewx_skins_neowx_index_html_tmpl.py", line 1273, in respond Feb 21 11:00:39 new-weather-machine journal: weewx[22334] ERROR weewx.cheetahgenerator: **** File "/usr/share/weewx/weewx/units.py", line 1005, in __str__ Feb 21 11:00:39 new-weather-machine journal: weewx[22334] ERROR weewx.cheetahgenerator: **** s = self.toString() Feb 21 11:00:39 new-weather-machine journal: weewx[22334] ERROR weewx.cheetahgenerator: **** File "/usr/share/weewx/weewx/units.py", line 1000, in toString Feb 21 11:00:39 new-weather-machine journal: weewx[22334] ERROR weewx.cheetahgenerator: **** localize=localize) Feb 21 11:00:39 new-weather-machine journal: weewx[22334] ERROR weewx.cheetahgenerator: **** File "/usr/share/weewx/weewx/units.py", line 688, in toString Feb 21 11:00:39 new-weather-machine journal: weewx[22334] ERROR weewx.cheetahgenerator: **** s = self._to_string(val_t, context, addLabel, useThisFormat, None_string, localize) Feb 21 11:00:39 new-weather-machine journal: weewx[22334] ERROR weewx.cheetahgenerator: **** File "/usr/share/weewx/weewx/units.py", line 748, in _to_string Feb 21 11:00:39 new-weather-machine journal: weewx[22334] ERROR weewx.cheetahgenerator: **** val_str = self.delta_secs_to_string(val_t[0], format_string) Feb 21 11:00:39 new-weather-machine journal: weewx[22334] ERROR weewx.cheetahgenerator: **** File "/usr/share/weewx/weewx/units.py", line 796, in delta_secs_to_string Feb 21 11:00:39 new-weather-machine journal: weewx[22334] ERROR weewx.cheetahgenerator: **** ans = locale.format_string(label_format, etime_dict) Feb 21 11:00:39 new-weather-machine journal: weewx[22334] ERROR weewx.cheetahgenerator: **** File "/usr/lib64/python3.6/locale.py", line 233, in format_string Feb 21 11:00:39 new-weather-machine journal: weewx[22334] ERROR weewx.cheetahgenerator: **** new_val.append(format(perc.group(), val, grouping)) Feb 21 11:00:39 new-weather-machine journal: weewx[22334] ERROR weewx.cheetahgenerator: **** File "/usr/lib64/python3.6/locale.py", line 194, in format Feb 21 11:00:39 new-weather-machine journal: weewx[22334] ERROR weewx.cheetahgenerator: **** return _format(percent, value, grouping, monetary, *additional) Feb 21 11:00:39 new-weather-machine journal: weewx[22334] ERROR weewx.cheetahgenerator: **** File "/usr/lib64/python3.6/locale.py", line 200, in _format Feb 21 11:00:39 new-weather-machine journal: weewx[22334] ERROR weewx.cheetahgenerator: **** formatted = percent % value Feb 21 11:00:39 new-weather-machine journal: weewx[22334] ERROR weewx.cheetahgenerator: **** TypeError: %x format: an integer is required, not dict
František Slimařík
unread,
Feb 21, 2022, 7:28:53 AM2/21/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message