matthewwall/weewx-interceptor

UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128)

cristianm opened this issue · 0 comments

Hi. I have encoding issues when try to run:

wee_config --reconfigure --driver=user.interceptor --no-prompt
Using configuration file /etc/weewx/weewx.conf
Traceback (most recent call last):
File "/usr/share/weewx/wee_config", line 123, in
main()
File "/usr/share/weewx/wee_config", line 117, in main
config_mgr.run(args, options)
File "/usr/share/weewx/weecfg/config.py", line 116, in run
weecfg.modify_config(config_dict, stn_info, self.logger, options.debug)
File "/usr/share/weewx/weecfg/init.py", line 262, in modify_config
stanza = configobj.ConfigObj(stanza_text.splitlines())
File "/usr/lib/python2.7/site-packages/configobj.py", line 1242, in init
self._load(infile, configspec)
File "/usr/lib/python2.7/site-packages/configobj.py", line 1302, in _load
infile = self._handle_bom(infile)
File "/usr/lib/python2.7/site-packages/configobj.py", line 1457, in _handle_bom
if not line.startswith(BOM):
UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128)