This is usually caused by editing weewx.conf with something other than a
text editor. Whatever editor you used likely inserted a BOM (Byte Order
Marker) at the beginning of the file, or it assumed Latin-1 encoding.

-tk

On Fri, Jul 17, 2020 at 10:43 AM Arne Berglund <[email protected]>
wrote:

> Sorry about the ugly above. Try this:
>
> [root@localhost src]# wee_extension --install --dry-run
> weewx-forecast-a.zip
> Traceback (most recent call last):
>   File "/usr/share/weewx/wee_extension", line 88, in <module>
>     main()
>   File "/usr/share/weewx/wee_extension", line 67, in main
>     config_path, config_dict = weecfg.read_config(options.config, _args)
>   File "/usr/share/weewx/weecfg/__init__.py", line 179, in read_config
>     default_encoding='utf-8')
>   File "/usr/lib/python3.6/site-packages/configobj.py", line 1229, in
> __init__
>     self._load(infile, configspec)
>   File "/usr/lib/python3.6/site-packages/configobj.py", line 1287, in _load
>     content = self._handle_bom(content)
>   File "/usr/lib/python3.6/site-packages/configobj.py", line 1437, in
> _handle_bom
>     return self._decode(infile, self.encoding)
>   File "/usr/lib/python3.6/site-packages/configobj.py", line 1517, in
> _decode
>     infile[i] = line.decode(encoding)
> UnicodeDecodeError: 'utf-8' codec can't decode byte 0xdc in position 7:
> invalid continuation byte
>
> --
> 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/aaccba50-c2a7-4cc2-a5e2-a8ac6d368721o%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/aaccba50-c2a7-4cc2-a5e2-a8ac6d368721o%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/CAPq0zEASPO-2QoFRPUKQk%3D7PL5Q1_RjCQ%3DkBXoN0f1bKKfp39Q%40mail.gmail.com.

Reply via email to