Hey guys,
Yesterday I did some changes to my configuration. All worked well for the last 2 weeks until I did a restart after changing my configuration.yaml. If I try to run home assistant I get the following error:
Traceback (most recent call last):
File "/srv/homeassistant/bin/hass", line 11, in <module>
sys.exit(main())
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/__main__.py", line 396, in main
exit_code = setup_and_run_hass(config_dir, args)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/__main__.py", line 281, in setup_and_run_hass
from homeassistant import bootstrap
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/bootstrap.py", line 19, in <module>
from homeassistant.setup import async_setup_component
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/setup.py", line 14, in <module>
import homeassistant.util.package as pkg_util
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/util/package.py", line 11, in <module>
import pkg_resources
File "/srv/homeassistant/lib/python3.4/site-packages/pkg_resources/__init__.py", line 72, in <module>
import packaging.requirements
File "/srv/homeassistant/lib/python3.4/site-packages/packaging/requirements.py", line 9, in <module>
from pyparsing import stringStart, stringEnd, originalTextFor, ParseException
File "/srv/homeassistant/lib/python3.4/site-packages/pyparsing.py", line 4734, in <module>
File "/srv/homeassistant/lib/python3.4/site-packages/pyparsing.py", line 1261, in setParseAction
self.parseAction = list(map(_trim_arity, list(fns)))
File "/srv/homeassistant/lib/python3.4/site-packages/pyparsing.py", line 1043, in _trim_arity
this_line = extract_stack(limit=2)[-1]
File "/usr/lib/python3.4/traceback.py", line 301, in extract_stack
stack = list(_extract_stack_iter(_get_stack(f), limit=limit))
File "/usr/lib/python3.4/traceback.py", line 65, in _extract_tb_or_stack_iter
line = linecache.getline(filename, lineno, f.f_globals)
File "/usr/lib/python3.4/linecache.py", line 15, in getline
lines = getlines(filename, module_globals)
File "/usr/lib/python3.4/linecache.py", line 41, in getlines
return updatecache(filename, module_globals)
File "/usr/lib/python3.4/linecache.py", line 127, in updatecache
lines = fp.readlines()
File "/usr/lib/python3.4/codecs.py", line 313, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe5 in position 5135: invalid continuation byte
I think the problem is the last line. So I tried to re-save my configuration.yaml file to make sure that it is UTF-8 encoded, but still no luck. I also checked if there are no non ASCII characters so there are none. Now I have stripped my config to a minimum to ensure that no other files could throw this error but I just can’t figure out the problem.
I hope that someone can help me with this.
Jorik