core: Unable to set up dependencies of default_config. Setup failed for dependencies: config, frontend, history, logbook, map, mobile_app
Home Assistant release with the issue:
Last working Home Assistant release (if known):
Operating environment (Hass.io/Docker/Windows/etc.):
Ubuntu 18.04
Integration:
Description of problem:
I am following this guide https://www.home-assistant.io/docs/installation/raspberry-pi/ and keep receiving the error
Unable to set up dependencies of default_config. Setup failed for dependencies: config, frontend, history, logbook, map, mobile_app
when starting using the command hass .
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
Traceback (if applicable):
Unable to find configuration. Creating default one in /home/USER/.homeassistant
Config directory: /home/USER/.homeassistant
2019-10-31 00:49:06 INFO (SyncWorker_1) [homeassistant.loader] Loaded default_config from homeassistant.components.default_config
2019-10-31 00:49:06 INFO (SyncWorker_1) [homeassistant.loader] Loaded group from homeassistant.components.group
2019-10-31 00:49:06 INFO (SyncWorker_1) [homeassistant.loader] Loaded automation from homeassistant.components.automation
2019-10-31 00:49:06 INFO (SyncWorker_1) [homeassistant.loader] Loaded homeassistant from homeassistant.components.homeassistant
2019-10-31 00:49:06 INFO (SyncWorker_1) [homeassistant.loader] Loaded persistent_notification from homeassistant.components.persistent_notification
2019-10-31 00:49:06 INFO (SyncWorker_0) [homeassistant.loader] Loaded script from homeassistant.components.script
2019-10-31 00:49:06 INFO (SyncWorker_2) [homeassistant.loader] Loaded tts from homeassistant.components.tts
2019-10-31 00:49:06 INFO (SyncWorker_1) [homeassistant.loader] Loaded device_automation from homeassistant.components.device_automation
2019-10-31 00:49:06 INFO (MainThread) [homeassistant.setup] Setting up homeassistant
2019-10-31 00:49:06 INFO (MainThread) [homeassistant.setup] Setup of domain homeassistant took 0.0 seconds.
2019-10-31 00:49:06 INFO (MainThread) [homeassistant.setup] Setting up persistent_notification
2019-10-31 00:49:06 INFO (MainThread) [homeassistant.setup] Setup of domain persistent_notification took 0.0 seconds.
2019-10-31 00:49:06 INFO (SyncWorker_0) [homeassistant.loader] Loaded http from homeassistant.components.http
2019-10-31 00:49:06 INFO (SyncWorker_2) [homeassistant.loader] Loaded webhook from homeassistant.components.webhook
2019-10-31 00:49:06 INFO (SyncWorker_1) [homeassistant.loader] Loaded cloud from homeassistant.components.cloud
2019-10-31 00:49:06 INFO (SyncWorker_3) [homeassistant.loader] Loaded config from homeassistant.components.config
2019-10-31 00:49:06 INFO (SyncWorker_4) [homeassistant.loader] Loaded frontend from homeassistant.components.frontend
2019-10-31 00:49:06 INFO (SyncWorker_0) [homeassistant.loader] Loaded api from homeassistant.components.api
2019-10-31 00:49:06 INFO (SyncWorker_2) [homeassistant.loader] Loaded auth from homeassistant.components.auth
2019-10-31 00:49:06 INFO (SyncWorker_1) [homeassistant.loader] Loaded lovelace from homeassistant.components.lovelace
2019-10-31 00:49:06 INFO (SyncWorker_3) [homeassistant.loader] Loaded onboarding from homeassistant.components.onboarding
2019-10-31 00:49:06 INFO (SyncWorker_4) [homeassistant.loader] Loaded system_log from homeassistant.components.system_log
2019-10-31 00:49:06 INFO (SyncWorker_0) [homeassistant.loader] Loaded websocket_api from homeassistant.components.websocket_api
2019-10-31 00:49:06 INFO (SyncWorker_2) [homeassistant.loader] Loaded history from homeassistant.components.history
2019-10-31 00:49:06 INFO (SyncWorker_1) [homeassistant.loader] Loaded recorder from homeassistant.components.recorder
2019-10-31 00:49:06 INFO (SyncWorker_3) [homeassistant.loader] Loaded logbook from homeassistant.components.logbook
2019-10-31 00:49:06 INFO (SyncWorker_4) [homeassistant.loader] Loaded map from homeassistant.components.map
2019-10-31 00:49:06 INFO (SyncWorker_0) [homeassistant.loader] Loaded mobile_app from homeassistant.components.mobile_app
2019-10-31 00:49:06 INFO (SyncWorker_2) [homeassistant.loader] Loaded person from homeassistant.components.person
2019-10-31 00:49:06 INFO (SyncWorker_1) [homeassistant.loader] Loaded ssdp from homeassistant.components.ssdp
2019-10-31 00:49:06 INFO (SyncWorker_3) [homeassistant.loader] Loaded sun from homeassistant.components.sun
2019-10-31 00:49:06 INFO (SyncWorker_4) [homeassistant.loader] Loaded system_health from homeassistant.components.system_health
2019-10-31 00:49:06 INFO (SyncWorker_0) [homeassistant.loader] Loaded updater from homeassistant.components.updater
2019-10-31 00:49:06 INFO (SyncWorker_2) [homeassistant.loader] Loaded zeroconf from homeassistant.components.zeroconf
2019-10-31 00:49:06 INFO (MainThread) [homeassistant.bootstrap] Setting up {'system_log'}
2019-10-31 00:49:06 INFO (MainThread) [homeassistant.setup] Setting up http
2019-10-31 00:49:06 INFO (MainThread) [homeassistant.setup] Setup of domain http took 0.0 seconds.
2019-10-31 00:49:06 INFO (MainThread) [homeassistant.setup] Setting up system_log
2019-10-31 00:49:06 INFO (MainThread) [homeassistant.setup] Setup of domain system_log took 0.0 seconds.
2019-10-31 00:49:06 INFO (MainThread) [homeassistant.setup] Setting up recorder
2019-10-31 00:49:06 INFO (MainThread) [homeassistant.setup] Setup of domain recorder took 0.1 seconds.
2019-10-31 00:49:06 INFO (MainThread) [homeassistant.setup] Setting up lovelace
2019-10-31 00:49:06 ERROR (MainThread) [homeassistant.setup] Error during setup of component lovelace
Traceback (most recent call last):
File "/home/USER/homeassistant/lib/python3.6/site-packages/homeassistant/setup.py", line 167, in _async_setup_component
hass, processed_config
File "/home/USER/homeassistant/lib/python3.6/site-packages/homeassistant/components/lovelace/__init__.py", line 66, in async_setup
hass.components.frontend.async_register_built_in_panel(
File "/home/USER/homeassistant/lib/python3.6/site-packages/homeassistant/loader.py", line 421, in __getattr__
component: Optional[ModuleType] = integration.get_component()
File "/home/USER/homeassistant/lib/python3.6/site-packages/homeassistant/loader.py", line 223, in get_component
cache[self.domain] = importlib.import_module(self.pkg_path)
File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/USER/homeassistant/lib/python3.6/site-packages/homeassistant/components/frontend/__init__.py", line 10, in <module>
import hass_frontend
ModuleNotFoundError: No module named 'hass_frontend'
2019-10-31 00:49:06 INFO (MainThread) [homeassistant.setup] Setting up group
2019-10-31 00:49:06 INFO (MainThread) [homeassistant.setup] Setup of domain group took 0.0 seconds.
2019-10-31 00:49:06 INFO (MainThread) [homeassistant.setup] Setting up updater
2019-10-31 00:49:06 INFO (MainThread) [homeassistant.setup] Setup of domain updater took 0.0 seconds.
2019-10-31 00:49:06 INFO (MainThread) [homeassistant.setup] Setting up ssdp
2019-10-31 00:49:06 INFO (MainThread) [homeassistant.setup] Setup of domain ssdp took 0.0 seconds.
2019-10-31 00:49:06 INFO (MainThread) [homeassistant.setup] Setting up sun
2019-10-31 00:49:06 INFO (MainThread) [homeassistant.setup] Setup of domain sun took 0.0 seconds.
2019-10-31 00:49:06 INFO (MainThread) [homeassistant.setup] Setting up person
2019-10-31 00:49:06 INFO (SyncWorker_3) [homeassistant.loader] Loaded binary_sensor from homeassistant.components.binary_sensor
2019-10-31 00:49:06 INFO (MainThread) [homeassistant.setup] Setting up config
2019-10-31 00:49:06 ERROR (MainThread) [homeassistant.setup] Error during setup of component config
Traceback (most recent call last):
File "/home/USER/homeassistant/lib/python3.6/site-packages/homeassistant/setup.py", line 167, in _async_setup_component
hass, processed_config
File "/home/USER/homeassistant/lib/python3.6/site-packages/homeassistant/components/config/__init__.py", line 34, in async_setup
hass.components.frontend.async_register_built_in_panel(
File "/home/USER/homeassistant/lib/python3.6/site-packages/homeassistant/loader.py", line 421, in __getattr__
component: Optional[ModuleType] = integration.get_component()
File "/home/USER/homeassistant/lib/python3.6/site-packages/homeassistant/loader.py", line 223, in get_component
cache[self.domain] = importlib.import_module(self.pkg_path)
File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/USER/homeassistant/lib/python3.6/site-packages/homeassistant/components/frontend/__init__.py", line 10, in <module>
import hass_frontend
ModuleNotFoundError: No module named 'hass_frontend'
2019-10-31 00:49:06 INFO (MainThread) [homeassistant.setup] Setting up websocket_api
2019-10-31 00:49:06 INFO (MainThread) [homeassistant.setup] Setup of domain websocket_api took 0.0 seconds.
2019-10-31 00:49:06 INFO (MainThread) [homeassistant.setup] Setting up history
2019-10-31 00:49:06 ERROR (MainThread) [homeassistant.setup] Error during setup of component history
Traceback (most recent call last):
File "/home/USER/homeassistant/lib/python3.6/site-packages/homeassistant/setup.py", line 167, in _async_setup_component
hass, processed_config
File "/home/USER/homeassistant/lib/python3.6/site-packages/homeassistant/components/history/__init__.py", line 283, in async_setup
hass.components.frontend.async_register_built_in_panel(
File "/home/USER/homeassistant/lib/python3.6/site-packages/homeassistant/loader.py", line 421, in __getattr__
component: Optional[ModuleType] = integration.get_component()
File "/home/USER/homeassistant/lib/python3.6/site-packages/homeassistant/loader.py", line 223, in get_component
cache[self.domain] = importlib.import_module(self.pkg_path)
File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/USER/homeassistant/lib/python3.6/site-packages/homeassistant/components/frontend/__init__.py", line 10, in <module>
import hass_frontend
ModuleNotFoundError: No module named 'hass_frontend'
2019-10-31 00:49:06 INFO (MainThread) [homeassistant.setup] Setting up api
2019-10-31 00:49:07 INFO (MainThread) [homeassistant.setup] Setting up auth
2019-10-31 00:49:07 INFO (MainThread) [homeassistant.setup] Setup of domain auth took 0.0 seconds.
2019-10-31 00:49:07 INFO (MainThread) [homeassistant.setup] Setting up system_health
2019-10-31 00:49:07 INFO (MainThread) [homeassistant.setup] Setup of domain system_health took 0.0 seconds.
2019-10-31 00:49:07 INFO (MainThread) [homeassistant.setup] Setting up webhook
2019-10-31 00:49:07 INFO (MainThread) [homeassistant.setup] Setup of domain webhook took 0.0 seconds.
2019-10-31 00:49:07 INFO (SyncWorker_0) [homeassistant.loader] Loaded google_translate from homeassistant.components.google_translate
2019-10-31 00:49:07 INFO (MainThread) [homeassistant.setup] Setting up script
2019-10-31 00:49:07 INFO (MainThread) [homeassistant.setup] Setup of domain script took 0.0 seconds.
2019-10-31 00:49:07 INFO (MainThread) [homeassistant.setup] Setup of domain person took 0.1 seconds.
2019-10-31 00:49:07 INFO (MainThread) [homeassistant.setup] Setting up binary_sensor
2019-10-31 00:49:07 INFO (MainThread) [homeassistant.setup] Setup of domain binary_sensor took 0.0 seconds.
2019-10-31 00:49:07 INFO (MainThread) [homeassistant.setup] Setup of domain api took 0.0 seconds.
2019-10-31 00:49:07 INFO (MainThread) [homeassistant.setup] Setting up tts
2019-10-31 00:49:07 INFO (MainThread) [homeassistant.setup] Setting up onboarding
2019-10-31 00:49:07 INFO (MainThread) [homeassistant.setup] Setting up cloud
2019-10-31 00:49:07 INFO (MainThread) [homeassistant.setup] Setting up device_automation
2019-10-31 00:49:07 INFO (MainThread) [homeassistant.setup] Setup of domain device_automation took 0.0 seconds.
2019-10-31 00:49:07 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.updater
2019-10-31 00:49:07 INFO (MainThread) [homeassistant.setup] Setting up zeroconf
2019-10-31 00:49:07 INFO (MainThread) [homeassistant.setup] Setting up automation
2019-10-31 00:49:07 INFO (MainThread) [homeassistant.setup] Setup of domain automation took 0.0 seconds.
2019-10-31 00:49:07 INFO (MainThread) [homeassistant.setup] Setup of domain tts took 0.3 seconds.
2019-10-31 00:49:07 INFO (MainThread) [homeassistant.setup] Setup of domain onboarding took 0.3 seconds.
2019-10-31 00:49:07 INFO (MainThread) [homeassistant.setup] Setup of domain cloud took 0.0 seconds.
2019-10-31 00:49:07 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of frontend. Setup failed for dependencies: lovelace
2019-10-31 00:49:07 ERROR (MainThread) [homeassistant.setup] Setup failed for frontend: Could not set up all dependencies.
2019-10-31 00:49:07 ERROR (MainThread) [homeassistant.config] Unable to import mobile_app: No module named 'hass_frontend'
2019-10-31 00:49:07 ERROR (MainThread) [homeassistant.setup] Setup failed for mobile_app: Invalid config.
2019-10-31 00:49:07 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of logbook. Setup failed for dependencies: frontend
2019-10-31 00:49:07 ERROR (MainThread) [homeassistant.setup] Setup failed for logbook: Could not set up all dependencies.
2019-10-31 00:49:07 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of map. Setup failed for dependencies: frontend
2019-10-31 00:49:07 ERROR (MainThread) [homeassistant.setup] Setup failed for map: Could not set up all dependencies.
2019-10-31 00:49:07 INFO (MainThread) [homeassistant.setup] Setup of domain zeroconf took 0.0 seconds.
2019-10-31 00:49:07 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of default_config. Setup failed for dependencies: config, frontend, history, logbook, map, mobile_app
2019-10-31 00:49:07 ERROR (MainThread) [homeassistant.setup] Setup failed for default_config: Could not set up all dependencies.
2019-10-31 00:49:09 INFO (MainThread) [homeassistant.bootstrap] Home Assistant initialized in 2.41s
2019-10-31 00:49:09 WARNING (MainThread) [homeassistant.bootstrap] Python 3.6 support is deprecated and will be removed in the first release after December 15, 2019. Please upgrade Python to 3.7.0 or higher.
2019-10-31 00:49:09 INFO (MainThread) [homeassistant.core] Starting Home Assistant
2019-10-31 00:49:09 INFO (SyncWorker_0) [homeassistant.components.zeroconf] Starting Zeroconf broadcast
2019-10-31 00:49:09 INFO (MainThread) [homeassistant.core] Timer:starting
Additional information:
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 2
- Comments: 48 (2 by maintainers)
Commits related to this issue
- v6.27 + DietPi-Software | Home Assistant: Skip pyenv virtualenv. pyenv itself is installed locally for the "homeassistant" user already, hence another virtualenv is overkill. This simplifies install ... — committed to MichaIng/DietPi by MichaIng 5 years ago
- v6.27 (#3231) + DietPi-Software | Home Assistant: Skip pyenv virtualenv. pyenv itself is installed locally for the "homeassistant" user already, hence another virtualenv is overkill. This simplifies ... — committed to MichaIng/DietPi by MichaIng 5 years ago
Has nothing to do with docker or so… The frontend is not loaded due to a bug introduced by one of the last few commits. It’s being fixed by https://github.com/home-assistant/home-assistant/pull/28203.
It should only happen for someone installing it for the first time, as any version up to 0.100.3 successfully loads/installs the required module:
INFO (SyncWorker_7) [homeassistant.util.package] Attempting install of home-assistant-frontend==20191002.2Upgrading to the current latest version will work again, because the required module (the frontend) has been installed by downgrading to 0.100.3, running it for a short period until it fully installed all the dependencies.@lucaorioli so unless you are running hass in docker, it does not matter at all that you installed docker, not even how you installed docker, eg. by running the script loaded via curl and piped to a root shell (insane), or via their apt repo or by just installing the docker.io available in debians repo. It’s just pure coincidence, because you happend to have downgraded hass at the same time.
@ all the rest with this issue: just downgrade to 0.100.3, run hass and check the logs until all dependencies have been installed and then you can upgrade again. Alternatively you may also run
pip3 install home-assistant-frontend==20191025.1without downgrading hass first, which would install the frontend manually.Just tried a fresh install of raspbian, followed the RPi install directions and got the same loading errors.
I force-quit (Ctrl-C)
hass, and without a manual install of Docker, I ran @makuser’s solution (pip3 install home-assistant-frontend==20191025.1). I re-ranhassand all was good.Before posting here, please read your error log carefully. @trantuan4889 for example, your error is explicitly described in your log:
Remove the api_password config
then when i remove scenes.yaml,it works good to all guys?? where can i find scenes.yaml??
Update:
I was able to fix my issues by installing botocore-python3
It seems there is a hash error with that file and pip3 will not install it. So I downloaded it manually and installed it and that fixed all 3 of my errors.
Log:
Solved: wget https://www.piwheels.org/simple/botocore-python3/botocore_python3-1.12.139-py2.py3-none-any.whl
pip3 install botocore_python3-1.12.139-py2.py3-none-any.whl
Can confirm
Was what was needed.
Fresh install of 101.3 when upgrading to python 3.7.5. Ran into the 404 not found error.
Went to /srv/homeassistant_venv, source bin/activate, then ran the: pip install home-assistant-frontend==20191025.1, restarted home assistant and now it’s up! Thanks
As of 11/10/2019 - This is still an issue to all new users and new installs. Not a good experience for a new user of HA. Not cool at all.
FYI… a fresh new install from raspbian Buster and manually loading HA in a virtual environment @ 0.100.3 still fails the dependency of the above names items.
😦
I find the solution to run the latest version of home assistant. Firstly install the version 0.100.3, then run
hass --open-uito let the hass setup and install its all dependencies. When the log printINFO (MainThread) [homeassistant.core] Timer:starting, kill the terminal and upgrade it to the newest version of homeassistant and it works.I’m using home assistant 0.103 within a venv. If I set default_config to my configuration.yaml, I got the following errors in the log.
Unable to set up dependencies of default_config. Setup failed for dependencies: cloud, mobile_app Setup failed for default_config: Could not set up all dependencies.Furthermore I was not able to access home assistant with the new companion app 2.0.Reason: I’m using a Raspberry Pi with os Raspian Stretch. The latest gclib version available in Raspian Stretch is version 2.24. The mobile_app component needs version 2.25.
Solution: Update the gclib version.
#show available gclib versions
strings /lib/arm-linux-gnueabihf/libc.so.6 | grep GLIBC#add the sources of a contrib with a newer gclib version
echo "deb http://http.debian.net/debian/ testing main contrib non-free" >> /etc/apt/sources.list#upgrade your system
sudo apt-get update sudo apt-cache search lib6c sudo apt-get -f install libc6#show available gclib versions again
strings /lib/arm-linux-gnueabihf/libc.so.6 | grep GLIBCFinally reboot the os. Done!
I had the same problem. CHECK for eventual upper-case entity names in scene.yaml and correct it with lower. I solved in this way.
I had the same problem. I downgrading to version 100.3 pip3 install --upgrade homeassistant~=0.100.3 then installed docker with curl curl -sSL https://get.docker.com | sh
and it worked
For me this was the first experiment to do a clean install on my pi and all wend ok until i entered hass. From there dependency errors popped up and at the end i got when i access the url a 404. Based on this discussion i will try to go for 0.100.3 and see if a clean install works here. Thanks for your observations.
Removing api_password worked for me! Thanks
You delete “api_password” -> it’s ok
http: base_url: xxxxx.duckdns.org:8123 ssl_certificate: “/ssl/fullchain.pem” ssl_key: “/ssl/privkey.pem” login_attempts_threshold: 20 api_password: -> delete
https://www.home-assistant.io/addons/duckdns/