Hi tteck,
I have just used your homeassistant-core-v4.sh to create a container, the container was created OK on my NUC, but while running the command inside the LXC console (cd /srv/homeassistant && python3 -m venv . && source bin/activate && hass) I have got errors below.
Can you please look at it and tell me how to overcome this?
Thanks in advance and have peacefull holidays!
LubomirH
root@homeassistant-core:~# cd /srv/homeassistant && python3 -m venv . && source bin/activate && hass
Unable to find configuration. Creating default one in /root/.homeassistant
2022-12-24 13:26:00.880 ERROR (MainThread) [homeassistant.bootstrap] Error setting up integration bluetooth - received exception
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3037, in _dep_map
return self.__dep_map
File "/srv/homeassistant/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2834, in __getattr__
raise AttributeError(attr)
AttributeError: _DistInfoDistribution__dep_map
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3028, in _parsed_pkg_info
return self._pkg_info
File "/srv/homeassistant/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2834, in __getattr__
raise AttributeError(attr)
AttributeError: _pkg_info
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.10/site-packages/homeassistant/setup.py", line 97, in async_setup_component
return await task
File "/srv/homeassistant/lib/python3.10/site-packages/homeassistant/setup.py", line 200, in _async_setup_component
await async_process_deps_reqs(hass, config, integration)
File "/srv/homeassistant/lib/python3.10/site-packages/homeassistant/setup.py", line 379, in async_process_deps_reqs
await requirements.async_get_integration_with_requirements(
File "/srv/homeassistant/lib/python3.10/site-packages/homeassistant/requirements.py", line 51, in async_get_integration_with_requirements
return await manager.async_get_integration_with_requirements(domain)
File "/srv/homeassistant/lib/python3.10/site-packages/homeassistant/requirements.py", line 170, in async_get_integration_with_requirements
await self._async_process_integration(integration, done)
File "/srv/homeassistant/lib/python3.10/site-packages/homeassistant/requirements.py", line 185, in _async_process_integration
await self.async_process_requirements(
File "/srv/homeassistant/lib/python3.10/site-packages/homeassistant/requirements.py", line 251, in async_process_requirements
await self._async_process_requirements(name, missing)
File "/srv/homeassistant/lib/python3.10/site-packages/homeassistant/requirements.py", line 276, in _async_process_requirements
installed, failures = await self.hass.async_add_executor_job(
File "/root/.pyenv/versions/3.10.8/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.10/site-packages/homeassistant/requirements.py", line 112, in _install_requirements_if_missing
if pkg_util.is_installed(req) or _install_with_retry(req, kwargs):
File "/srv/homeassistant/lib/python3.10/site-packages/homeassistant/util/package.py", line 40, in is_installed
pkg_resources.get_distribution(package)
File "/srv/homeassistant/lib/python3.10/site-packages/pkg_resources/__init__.py", line 478, in get_distribution
dist = get_provider(dist)
File "/srv/homeassistant/lib/python3.10/site-packages/pkg_resources/__init__.py", line 354, in get_provider
return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
File "/srv/homeassistant/lib/python3.10/site-packages/pkg_resources/__init__.py", line 909, in require
needed = self.resolve(parse_requirements(requirements))
File "/srv/homeassistant/lib/python3.10/site-packages/pkg_resources/__init__.py", line 803, in resolve
new_requirements = dist.requires(req.extras)[::-1]
File "/srv/homeassistant/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2755, in requires
dm = self._dep_map
File "/srv/homeassistant/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3039, in _dep_map
self.__dep_map = self._compute_dependencies()
File "/srv/homeassistant/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3048, in _compute_dependencies
for req in self._parsed_pkg_info.get_all('Requires-Dist') or []:
File "/srv/homeassistant/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3030, in _parsed_pkg_info
metadata = self.get_metadata(self.PKG_INFO)
File "/srv/homeassistant/lib/python3.10/site-packages/pkg_resources/__init__.py", line 1431, in get_metadata
value = self._get(path)
File "/srv/homeassistant/lib/python3.10/site-packages/pkg_resources/__init__.py", line 1635, in _get
with open(path, 'rb') as stream:
FileNotFoundError: [Errno 2] No such file or directory: '/srv/homeassistant/lib/python3.10/site-packages/dbus_fast-1.83.0.dist-info/METADATA'
2022-12-24 13:26:07.097 ERROR (MainThread) [homeassistant.bootstrap] Error setting up integration default_config - received exception
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3037, in _dep_map
return self.__dep_map
File "/srv/homeassistant/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2834, in __getattr__
raise AttributeError(attr)
AttributeError: _DistInfoDistribution__dep_map
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3028, in _parsed_pkg_info
return self._pkg_info
File "/srv/homeassistant/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2834, in __getattr__
raise AttributeError(attr)
AttributeError: _pkg_info
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.10/site-packages/homeassistant/setup.py", line 97, in async_setup_component
return await task
File "/srv/homeassistant/lib/python3.10/site-packages/homeassistant/setup.py", line 200, in _async_setup_component
await async_process_deps_reqs(hass, config, integration)
File "/srv/homeassistant/lib/python3.10/site-packages/homeassistant/setup.py", line 375, in async_process_deps_reqs
if failed_deps := await _async_process_dependencies(hass, config, integration):
File "/srv/homeassistant/lib/python3.10/site-packages/homeassistant/setup.py", line 145, in _async_process_dependencies
results = await asyncio.gather(
File "/srv/homeassistant/lib/python3.10/site-packages/homeassistant/setup.py", line 90, in async_setup_component
return await setup_tasks[domain]
FileNotFoundError: [Errno 2] No such file or directory: '/srv/homeassistant/lib/python3.10/site-packages/dbus_fast-1.83.0.dist-info/METADATA'