Forecast extension install failure

47 views
Skip to first unread message

Arne Berglund

unread,
Jul 17, 2020, 1:39:10 PM7/17/20
to weewx-user
Migrating to a new server, CentOS 8 with python3. All working well until I go to install the Forecast extension. I get the following error with either one of the two forks:

Any ideas?

[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

Arne Berglund

unread,
Jul 17, 2020, 1:43:14 PM7/17/20
to weewx-user
Sorry about the ugly above. Try this:

Tom Keffer

unread,
Jul 17, 2020, 1:51:07 PM7/17/20
to weewx-user
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

--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/aaccba50-c2a7-4cc2-a5e2-a8ac6d368721o%40googlegroups.com.

Arne Berglund

unread,
Jul 17, 2020, 1:55:33 PM7/17/20
to weewx-user
Thanks, Tom. I'll look into that. I normally do all my editing with vim, but as I have been trying to migrate everything over in different manners, I may have messed the encoding. This will give me somewhere to look.
Reply all
Reply to author
Forward
0 new messages