Dear community,
I recently ran apt-get update / upgrade on my Pi and after this I started the HA update on my virtualenv install.
First issue was some python problem because of an lsb_release error.
Strangely this error didn’t prevent HA to start, but all my devices were gone
I renamed lsb_release and then was able to update HA again, but all devices are missing.
The error log showed me another strange thing. At the end of the log an UTF-8 error is showing up. I didn’t tweak anything else after the update and everything was running smoothly before.
Any idea where I should start fixing this is highly appreciated!
Best regards and thank you for any hint on this…
Huettenwirt
Logger: homeassistant.bootstrap
Source: util/package.py:54
First occurred: 08:12:22 (1 occurrences)
Last logged: 08:12:22
Error setting up integration device_tracker - received exception
Traceback (most recent call last):
File "/home/homeassistant/.pyenv/versions/3.8.0/lib/python3.8/site-packages/homeassistant/config_entries.py", line 827, in async_forward_entry_setup
result = await async_setup_component(self.hass, domain, self._hass_config)
File "/home/homeassistant/.pyenv/versions/3.8.0/lib/python3.8/site-packages/homeassistant/setup.py", line 57, in async_setup_component
return await setup_tasks[domain] # type: ignore
File "/home/homeassistant/.pyenv/versions/3.8.0/lib/python3.8/site-packages/homeassistant/config_entries.py", line 827, in async_forward_entry_setup
result = await async_setup_component(self.hass, domain, self._hass_config)
File "/home/homeassistant/.pyenv/versions/3.8.0/lib/python3.8/site-packages/homeassistant/setup.py", line 57, in async_setup_component
return await setup_tasks[domain] # type: ignore
File "/home/homeassistant/.pyenv/versions/3.8.0/lib/python3.8/site-packages/homeassistant/config_entries.py", line 827, in async_forward_entry_setup
result = await async_setup_component(self.hass, domain, self._hass_config)
File "/home/homeassistant/.pyenv/versions/3.8.0/lib/python3.8/site-packages/homeassistant/setup.py", line 57, in async_setup_component
return await setup_tasks[domain] # type: ignore
File "/home/homeassistant/.pyenv/versions/3.8.0/lib/python3.8/site-packages/homeassistant/helpers/discovery.py", line 186, in async_load_platform
setup_success = await setup.async_setup_component(hass, component, hass_config)
File "/home/homeassistant/.pyenv/versions/3.8.0/lib/python3.8/site-packages/homeassistant/setup.py", line 57, in async_setup_component
return await setup_tasks[domain] # type: ignore
File "/home/homeassistant/.pyenv/versions/3.8.0/lib/python3.8/site-packages/homeassistant/setup.py", line 64, in async_setup_component
return await task # type: ignore
File "/home/homeassistant/.pyenv/versions/3.8.0/lib/python3.8/site-packages/homeassistant/setup.py", line 174, in _async_setup_component
processed_config = await conf_util.async_process_component_config(
File "/home/homeassistant/.pyenv/versions/3.8.0/lib/python3.8/site-packages/homeassistant/config.py", line 817, in async_process_component_config
p_integration = await async_get_integration_with_requirements(hass, p_name)
File "/home/homeassistant/.pyenv/versions/3.8.0/lib/python3.8/site-packages/homeassistant/requirements.py", line 74, in async_get_integration_with_requirements
await async_process_requirements(
File "/home/homeassistant/.pyenv/versions/3.8.0/lib/python3.8/site-packages/homeassistant/requirements.py", line 121, in async_process_requirements
if pkg_util.is_installed(req):
File "/home/homeassistant/.pyenv/versions/3.8.0/lib/python3.8/site-packages/homeassistant/util/package.py", line 54, in is_installed
return version(req.project_name) in req
File "/home/homeassistant/.pyenv/versions/3.8.0/lib/python3.8/importlib/metadata.py", line 472, in version
return distribution(distribution_name).version
File "/home/homeassistant/.pyenv/versions/3.8.0/lib/python3.8/importlib/metadata.py", line 228, in version
return self.metadata['Version']
File "/home/homeassistant/.pyenv/versions/3.8.0/lib/python3.8/importlib/metadata.py", line 216, in metadata
self.read_text('METADATA')
File "/home/homeassistant/.pyenv/versions/3.8.0/lib/python3.8/importlib/metadata.py", line 432, in read_text
return self._path.joinpath(filename).read_text(encoding='utf-8')
File "/home/homeassistant/.pyenv/versions/3.8.0/lib/python3.8/pathlib.py", line 1215, in read_text
return f.read()
File "/home/homeassistant/.pyenv/versions/3.8.0/lib/python3.8/codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 8-9: invalid continuation byte