Hello, Erika

Did you change something in the template Standard/week.html.tmpl?

Somehow it got a bad character in it, so it can not be decoded from UTF-8.

-tk

On Sun, Dec 2, 2018 at 11:37 AM <[email protected]> wrote:

> I got below problem when I did a new weewx installation on Raspberry
> Stretch:
>
> Dec  2 18:50:17 stretch4 weewx[3763]: cheetahgenerator: Generate failed
> with exception '<type 'exceptions.UnicodeDecodeError'>'
> Dec  2 18:50:17 stretch4 weewx[3763]: cheetahgenerator: **** Ignoring
> template /etc/weewx/skins/Standard/week.html.tmpl
> Dec  2 18:50:17 stretch4 weewx[3763]: cheetahgenerator: **** Reason:
> 'utf8' codec can't decode byte 0xf6 in position 11: invalid start byte
> Dec  2 18:50:17 stretch4 weewx[3763]: ****  Traceback (most recent call
> last):
> Dec  2 18:50:17 stretch4 weewx[3763]: ****    File
> "/usr/share/weewx/weewx/cheetahgenerator.py", line 330, in generate
> Dec  2 18:50:17 stretch4 weewx[3763]: ****      print >> _file,
> compiled_template
> Dec  2 18:50:17 stretch4 weewx[3763]: ****    File
> "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in
> __str__
> Dec  2 18:50:17 stretch4 weewx[3763]: ****      rc = getattr(self,
> mainMethName)()
> Dec  2 18:50:17 stretch4 weewx[3763]: ****    File
> "_etc_weewx_skins_Standard_week_html_tmpl.py", line 813, in respond
> Dec  2 18:50:17 stretch4 weewx[3763]: ****    File
> "/usr/share/weewx/weewx/cheetahgenerator.py", line 595, in filter
> Dec  2 18:50:17 stretch4 weewx[3763]: ****      filtered =
> self.filter(str(val))
> Dec  2 18:50:17 stretch4 weewx[3763]: ****    File
> "/usr/share/weewx/weewx/cheetahgenerator.py", line 593, in filter
> Dec  2 18:50:17 stretch4 weewx[3763]: ****      filtered =
> val.decode('utf-8').encode('ascii', 'xmlcharrefreplace')
> Dec  2 18:50:17 stretch4 weewx[3763]: ****    File
> "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
> Dec  2 18:50:17 stretch4 weewx[3763]: ****      return
> codecs.utf_8_decode(input, errors, True)
> Dec  2 18:50:17 stretch4 weewx[3763]: ****  UnicodeDecodeError: 'utf8'
> codec can't decode byte 0xf6 in position 11: invalid start byte
> Dec  2 18:50:17 stretch4 weewx[3763]: cheetahgenerator: Generate failed
> with exception '<type 'exceptions.UnicodeDecodeError'>'
> Dec  2 18:50:17 stretch4 weewx[3763]: cheetahgenerator: **** Ignoring
> template /etc/weewx/skins/Standard/smartphone/temp_outside.html.tmpl
> Dec  2 18:50:17 stretch4 weewx[3763]: cheetahgenerator: **** Reason:
> 'utf8' codec can't decode byte 0xf6 in position 11: invalid start byte
> Dec  2 18:50:17 stretch4 weewx[3763]: ****  Traceback (most recent call
> last):
>
> etc
>
> /Thomas
>
>
>
>
> --
> 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].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to