Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cristianm opened this issue Nov 21, 2021 · 0 comments

Comments

@cristianm
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant