the fact that it is line 1 throwing the error makes me suspect a line trying to say the encoding is UTF-8 which has acquired a typo of some kind. If indeed there is a UTF8 directive at the top of the file try and delete it and retype the line - making sure to use a text editor like nano for the editing.
On Friday, 25 October 2019 19:24:05 UTC+3, Matt wrote: > > Hi, > > I've searched the group and the internet generally for this but cannot > find any guidance. I've set up the exfoliation skin but I'm getting an > error that I simply can't work out... > > > Oct 25 17:20:30 weatherpi weewx[2455]: cheetahgenerator: Generate failed > with exception '<type 'exceptions.KeyError'>' > Oct 25 17:20:30 weatherpi weewx[2455]: cheetahgenerator: **** Ignoring > template /etc/weewx/skins/exfoliation/forecast.html.tmpl > Oct 25 17:20:30 weatherpi weewx[2455]: cheetahgenerator: **** Reason: 'U' > Oct 25 17:20:30 weatherpi weewx[2455]: **** Traceback (most recent call > last): > Oct 25 17:20:30 weatherpi weewx[2455]: **** File > "/usr/share/weewx/weewx/cheetahgenerator.py", line 332, in generate > Oct 25 17:20:30 weatherpi weewx[2455]: **** > fd.write(str(compiled_template)) > Oct 25 17:20:30 weatherpi weewx[2455]: **** File > "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1045, in > __str__ > Oct 25 17:20:30 weatherpi weewx[2455]: **** rc = getattr(self, > mainMethName)() > Oct 25 17:20:30 weatherpi weewx[2455]: **** File > "_etc_weewx_skins_exfoliation_forecast_html_tmpl.py", line 336, in respond > Oct 25 17:20:30 weatherpi weewx[2455]: **** File > "_etc_weewx_skins_exfoliation_forecast_html_tmpl.py", line 113, in > __errorCatcher7 > Oct 25 17:20:30 weatherpi weewx[2455]: **** File "<string>", line 1, in > <module> > Oct 25 17:20:30 weatherpi weewx[2455]: **** KeyError: 'U' > > > I've checked my weewx.conf and skin.conf but I can't put my finger on > anything. > > Can anyone point me in the right direction please? > > Many thanks, > > Matt > -- 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/26f88e7f-4314-4fef-af34-0259f8db4327%40googlegroups.com.
