Thank you for the response and please forgive my ignorance but which file, the template file?
On Fri, 25 Oct 2019, 17:32 Andrew Milner, <andrew.s.r.mil...@gmail.com> wrote: > 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 a topic in the > Google Groups "weewx-user" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/weewx-user/rYgFqb3jRhI/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > weewx-user+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-user/26f88e7f-4314-4fef-af34-0259f8db4327%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-user/26f88e7f-4314-4fef-af34-0259f8db4327%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 weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAMz6Xq5i3r4Vi9ERQKm7Ysjh%3DgO9w6Dq6fCLYzKS%2Bj9bVmZ2Rw%40mail.gmail.com.