Version 4.0 uses a different strategy of ensuring that strings are unicode, so I can see that something might work in V3.9, but not V4.
Could you post your template wxsummary.json.new.tmpl? -tk On Wed, May 13, 2020 at 1:07 PM Russell van vlack <[email protected]> wrote: > Good afternoon. > > I keep getting the following error after upgrading to 4.0.0 from 3.9.2 a > little while ago. > > May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR > weewx.cheetahgenerator: Generate failed with exception '<type > 'exceptions.TypeError'>' > May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR > weewx.cheetahgenerator: **** Ignoring template > /etc/weewx/skins/W8AGT/wxsummary.json.new.tmpl > May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR > weewx.cheetahgenerator: **** Reason: not expecting type '<type 'float'>' > May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR > weewx.cheetahgenerator: **** Traceback (most recent call last): > May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR > weewx.cheetahgenerator: **** File > "/usr/share/weewx/weewx/cheetahgenerator.py", line 322, in generate > May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR > weewx.cheetahgenerator: **** unicode_string = > compiled_template.respond() > May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR > weewx.cheetahgenerator: **** File > "_etc_weewx_skins_W8AGT_wxsummary_json_new_tmpl.py", line 3491, in respond > May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR > weewx.cheetahgenerator: **** File "/usr/share/weewx/weewx/units.py", > line 1088, in nolabel > May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR > weewx.cheetahgenerator: **** return self.toString(addLabel=False, > useThisFormat=format_string, None_string=None_string) > May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR > weewx.cheetahgenerator: **** File "/usr/share/weewx/weewx/units.py", > line 1051, in toString > May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR > weewx.cheetahgenerator: **** localize=localize) > May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR > weewx.cheetahgenerator: **** File "/usr/share/weewx/weewx/units.py", > line 782, in toString > May 13 15:44:31 w8agtweather1 weewx-lowell[4322] ERROR > weewx.cheetahgenerator: **** val_ustr = six.ensure_text(val_str) > May 13 15:44:31 w8agtweather1 weewx-lowell[4322] ERROR > weewx.cheetahgenerator: **** File "/usr/share/weewx/six.py", line 908, > in ensure_text > May 13 15:44:31 w8agtweather1 weewx-lowell[4322] ERROR > weewx.cheetahgenerator: **** raise TypeError("not expecting type '%s'" > % type(s)) > May 13 15:44:31 w8agtweather1 weewx-lowell[4322] ERROR > weewx.cheetahgenerator: **** TypeError: not expecting type '<type 'float'>' > May 13 15:44:31 w8agtweather1 weewx-lowell[4322] INFO > weewx.cheetahgenerator: Generated 3 files for report StandardReport in > 13.11 seconds > > I see some issues on the forums pointing toward an error in my template > but nothing has changed with my template since the upgrade was done. > > Any constructive help on where to start would be much appreciated. > > Thank you. > > -- > 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/ce004508-ec35-4d75-af1d-3863bb5f8c1c%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-user/ce004508-ec35-4d75-af1d-3863bb5f8c1c%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/CAPq0zEAYSSLuhre5emJYxXiYBGhZd-Yr%3DWwcw5n-J8FH_ZsBtg%40mail.gmail.com.
