Home Assistant启动失败,页面报404

错误信息如下:

2019-11-08 16:14:38 ERROR (MainThread) [homeassistant.setup] Error during setup of component config
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/homeassistant/setup.py", line 171, in _async_setup_component
    result = await component.async_setup(  # type: ignore
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/homeassistant/components/config/__init__.py", line 34, in async_setup
    hass.components.frontend.async_register_built_in_panel(
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/homeassistant/loader.py", line 421, in __getattr__
    component: Optional[ModuleType] = integration.get_component()
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/homeassistant/loader.py", line 223, in get_component
    cache[self.domain] = importlib.import_module(self.pkg_path)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 1014, in _gcd_import
  File "", line 991, in _find_and_load
  File "", line 975, in _find_and_load_unlocked
  File "", line 671, in _load_unlocked
  File "", line 783, in exec_module
  File "", line 219, in _call_with_frames_removed
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/homeassistant/components/frontend/__init__.py", line 10, in
    import hass_frontend
ModuleNotFoundError: No module named 'hass_frontend'
2019-11-08 16:14:38 INFO (MainThread) [homeassistant.setup] Setting up history
2019-11-08 16:14:38 ERROR (MainThread) [homeassistant.setup] Error during setup of component history
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/homeassistant/setup.py", line 171, in _async_setup_component
    result = await component.async_setup(  # type: ignore
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/homeassistant/components/history/__init__.py", line 283, in async_setup
    hass.components.frontend.async_register_built_in_panel(
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/homeassistant/loader.py", line 421, in __getattr__
    component: Optional[ModuleType] = integration.get_component()
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/homeassistant/loader.py", line 223, in get_component
    cache[self.domain] = importlib.import_module(self.pkg_path)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 1014, in _gcd_import
  File "", line 991, in _find_and_load
  File "", line 975, in _find_and_load_unlocked
  File "", line 671, in _load_unlocked
  File "", line 783, in exec_module
  File "", line 219, in _call_with_frames_removed
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/homeassistant/components/frontend/__init__.py", line 10, in
    import hass_frontend
ModuleNotFoundError: No module named 'hass_frontend'

解决方法:

手动升级home-assistant-frontend:

pip3 install home-assistant-frontend

再次重新启动HA就可以了。

你可能感兴趣的:(Home,Assistant,Home,Assistant)