Won't Start After Configuration Change

I am running Windows 10. Whenever I change the configuration.yaml and close and save. Then restart the HA doesn’t run. Even if I just change the name, add a password, if anything is changed. I have uninstalled Python 64 bit, and used 32. I’ve verified I am running CMD prompt as an administrator. When I delete the configuration file it will start normally. Now comes the really fun part. When I do a configuration check script or use the interface to check it I get tons of errors on the file it just created. Please help! I am VERY NEW to this.

What are those errors?

You’ve done the equivalent of complaining to the doctor that “it hurts when I do that”, without saying what “it” or “that” are :wink:

It’d also help if you could tell us which version of HA you’re running.

Sorry about that Tinkerer, I am running 0.40, I get the following when I do a configuration check after running HA for the first time without changing anything in the configuration.

17-03-12 18:10:06 INFO (MainThread) [homeassistant.setup] Setting up introduction
17-03-12 18:10:06 ERROR (MainThread) [homeassistant.loader] Error loading homeassistant.components.http. Make sure all dependencies are installed
Traceback (most recent call last):
File “C:\Users\jeffc_000\AppData\Local\Programs\Python\Python36-32\lib\site-packages\homeassistant\loader.py”, line 141, in get_component
module = importlib.import_module(path)
File “C:\Users\jeffc_000\AppData\Local\Programs\Python\Python36-32\lib\importlib_init_.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 978, in _gcd_import
File “”, line 961, in _find_and_load
File “”, line 950, in find_and_load_unlocked
File “”, line 655, in load_unlocked
File “”, line 678, in exec_module
File “”, line 205, in call_with_frames_removed
File "C:\Users\jeffc_000\AppData\Local\Programs\Python\Python36-32\lib\site-packages\homeassistant\components\http_init
.py", line 16, in
from aiohttp import web
File "C:\Users\jeffc_000\AppData\Roaming.homeassistant\deps\aiohttp_init
.py", line 9, in
from . import hdrs # noqa
ImportError: cannot import name ‘hdrs’
17-03-12 18:10:06 ERROR (MainThread) [homeassistant.loader] Unable to find component http
17-03-12 18:10:06 ERROR (MainThread) [homeassistant.setup] Setup failed for http: Component not found.
17-03-12 18:10:06 ERROR (MainThread) [homeassistant.loader] Error loading homeassistant.components.sensor.yr. Make sure all dependencies are installed
Traceback (most recent call last):
File “C:\Users\jeffc_000\AppData\Local\Programs\Python\Python36-32\lib\site-packages\homeassistant\loader.py”, line 141, in get_component
module = importlib.import_module(path)
File "C:\Users\jeffc_000\AppData\Local\Programs\Python\Python36-32\lib\importlib_init
.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 978, in _gcd_import
File “”, line 961, in _find_and_load
File “”, line 950, in _find_and_load_unlocked
File “”, line 655, in load_unlocked
File “”, line 678, in exec_module
File “”, line 205, in call_with_frames_removed
File “C:\Users\jeffc_000\AppData\Local\Programs\Python\Python36-32\lib\site-packages\homeassistant\components\sensor\yr.py”, line 14, in
import aiohttp
File "C:\Users\jeffc_000\AppData\Roaming.homeassistant\deps\aiohttp_init
.py", line 9, in
from . import hdrs # noqa
ImportError: cannot import name ‘hdrs’
17-03-12 18:10:06 ERROR (MainThread) [homeassistant.loader] Unable to find component sensor.yr
17-03-12 18:10:06 INFO (MainThread) [homeassistant.setup] Setting up sensor
17-03-12 18:10:06 INFO (MainThread) [homeassistant.setup] Setting up discovery
17-03-12 18:10:06 INFO (MainThread) [homeassistant.setup] Setting up group
17-03-12 18:10:06 ERROR (MainThread) [homeassistant.loader] Error loading homeassistant.components.frontend. Make sure all dependencies are installed
Traceback (most recent call last):
File “C:\Users\jeffc_000\AppData\Local\Programs\Python\Python36-32\lib\site-packages\homeassistant\loader.py”, line 141, in get_component
module = importlib.import_module(path)
File "C:\Users\jeffc_000\AppData\Local\Programs\Python\Python36-32\lib\importlib_init
.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 978, in _gcd_import
File “”, line 961, in _find_and_load
File “”, line 950, in find_and_load_unlocked
File “”, line 655, in load_unlocked
File “”, line 678, in exec_module
File “”, line 205, in call_with_frames_removed
File "C:\Users\jeffc_000\AppData\Local\Programs\Python\Python36-32\lib\site-packages\homeassistant\components\frontend_init
.py", line 8, in
from aiohttp import web
File "C:\Users\jeffc_000\AppData\Roaming.homeassistant\deps\aiohttp_init
.py", line 9, in
from . import hdrs # noqa
ImportError: cannot import name ‘hdrs’
17-03-12 18:10:06 ERROR (MainThread) [homeassistant.loader] Unable to find component frontend
17-03-12 18:10:06 ERROR (MainThread) [homeassistant.setup] Setup failed for frontend: Component not found.
17-03-12 18:10:06 INFO (MainThread) [homeassistant.setup] Setting up conversation
17-03-12 18:10:06 INFO (MainThread) [homeassistant.setup] Setting up sun
17-03-12 18:10:06 ERROR (MainThread) [homeassistant.loader] Error loading homeassistant.components.logbook. Make sure all dependencies are installed
Traceback (most recent call last):
File “C:\Users\jeffc_000\AppData\Local\Programs\Python\Python36-32\lib\site-packages\homeassistant\loader.py”, line 141, in get_component
module = importlib.import_module(path)
File "C:\Users\jeffc_000\AppData\Local\Programs\Python\Python36-32\lib\importlib_init
.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 978, in _gcd_import
File “”, line 961, in _find_and_load
File “”, line 950, in find_and_load_unlocked
File “”, line 655, in load_unlocked
File “”, line 678, in exec_module
File “”, line 205, in call_with_frames_removed
File “C:\Users\jeffc_000\AppData\Local\Programs\Python\Python36-32\lib\site-packages\homeassistant\components\logbook.py”, line 18, in
from homeassistant.components.frontend import register_built_in_panel
File "C:\Users\jeffc_000\AppData\Local\Programs\Python\Python36-32\lib\site-packages\homeassistant\components\frontend_init
.py", line 8, in
from aiohttp import web
File "C:\Users\jeffc_000\AppData\Roaming.homeassistant\deps\aiohttp_init
.py", line 9, in
from . import hdrs # noqa
ImportError: cannot import name ‘hdrs’
17-03-12 18:10:06 ERROR (MainThread) [homeassistant.loader] Unable to find component logbook
17-03-12 18:10:06 ERROR (MainThread) [homeassistant.setup] Setup failed for logbook: Component not found.
17-03-12 18:10:06 ERROR (MainThread) [homeassistant.loader] Error loading homeassistant.components.tts. Make sure all dependencies are installed
Traceback (most recent call last):
File “C:\Users\jeffc_000\AppData\Local\Programs\Python\Python36-32\lib\site-packages\homeassistant\loader.py”, line 141, in get_component
module = importlib.import_module(path)
File "C:\Users\jeffc_000\AppData\Local\Programs\Python\Python36-32\lib\importlib_init
.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 978, in _gcd_import
File “”, line 961, in _find_and_load
File “”, line 950, in find_and_load_unlocked
File “”, line 655, in load_unlocked
File “”, line 678, in exec_module
File “”, line 205, in call_with_frames_removed
File "C:\Users\jeffc_000\AppData\Local\Programs\Python\Python36-32\lib\site-packages\homeassistant\components\tts_init
.py", line 17, in
from aiohttp import web
File "C:\Users\jeffc_000\AppData\Roaming.homeassistant\deps\aiohttp_init
.py", line 9, in
from . import hdrs # noqa
ImportError: cannot import name ‘hdrs’
17-03-12 18:10:06 ERROR (MainThread) [homeassistant.loader] Unable to find component tts
17-03-12 18:10:06 ERROR (MainThread) [homeassistant.setup] Setup failed for tts: Component not found.
17-03-12 18:10:06 ERROR (MainThread) [homeassistant.loader] Error loading homeassistant.components.history. Make sure all dependencies are installed
Traceback (most recent call last):
File “C:\Users\jeffc_000\AppData\Local\Programs\Python\Python36-32\lib\site-packages\homeassistant\loader.py”, line 141, in get_component
module = importlib.import_module(path)
File "C:\Users\jeffc_000\AppData\Local\Programs\Python\Python36-32\lib\importlib_init
.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 978, in _gcd_import
File “”, line 961, in _find_and_load
File “”, line 950, in find_and_load_unlocked
File “”, line 655, in load_unlocked
File “”, line 678, in exec_module
File “”, line 205, in call_with_frames_removed
File “C:\Users\jeffc_000\AppData\Local\Programs\Python\Python36-32\lib\site-packages\homeassistant\components\history.py”, line 20, in
from homeassistant.components.frontend import register_built_in_panel
File "C:\Users\jeffc_000\AppData\Local\Programs\Python\Python36-32\lib\site-packages\homeassistant\components\frontend_init
.py", line 8, in
from aiohttp import web
File "C:\Users\jeffc_000\AppData\Roaming.homeassistant\deps\aiohttp_init
.py", line 9, in
from . import hdrs # noqa
ImportError: cannot import name ‘hdrs’
17-03-12 18:10:06 ERROR (MainThread) [homeassistant.loader] Unable to find component history
17-03-12 18:10:06 ERROR (MainThread) [homeassistant.setup] Setup failed for history: Component not found.
17-03-12 18:10:06 INFO (MainThread) [homeassistant.setup] Setting up updater
17-03-12 18:10:06 ERROR (MainThread) [homeassistant.loader] Error loading homeassistant.components.config. Make sure all dependencies are installed
Traceback (most recent call last):
File “C:\Users\jeffc_000\AppData\Local\Programs\Python\Python36-32\lib\site-packages\homeassistant\loader.py”, line 141, in get_component
module = importlib.import_module(path)
File "C:\Users\jeffc_000\AppData\Local\Programs\Python\Python36-32\lib\importlib_init
.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 978, in _gcd_import
File “”, line 961, in _find_and_load
File “”, line 950, in find_and_load_unlocked
File “”, line 655, in load_unlocked
File “”, line 678, in exec_module
File “”, line 205, in call_with_frames_removed
File "C:\Users\jeffc_000\AppData\Local\Programs\Python\Python36-32\lib\site-packages\homeassistant\components\config_init
.py", line 11, in
from homeassistant.components.frontend import register_built_in_panel
File "C:\Users\jeffc_000\AppData\Local\Programs\Python\Python36-32\lib\site-packages\homeassistant\components\frontend_init
.py", line 8, in
from aiohttp import web
File "C:\Users\jeffc_000\AppData\Roaming.homeassistant\deps\aiohttp_init
.py", line 9, in
from . import hdrs # noqa
ImportError: cannot import name ‘hdrs’
17-03-12 18:10:06 ERROR (MainThread) [homeassistant.loader] Unable to find component config
17-03-12 18:10:06 ERROR (MainThread) [homeassistant.setup] Setup failed for config: Component not found.
Failed config
General Errors:
- Component not found: http
- Setup failed for http: Component not found.
- Platform not found: sensor.yr
- Component not found: frontend
- Setup failed for frontend: Component not found.
- Component not found: logbook
- Setup failed for logbook: Component not found.
- Component not found: tts
- Setup failed for tts: Component not found.
- Component not found: history
- Setup failed for history: Component not found.
- Component not found: config
- Setup failed for config: Component not found.

1 Like

Much, much easier if you use the formatting called out in the big blue box at the top of every forum page.

What does your configuration look like? What are you using to edit the file, Wordpad, Notepad, or something else?

Again, sorry I hope this doesn’t steer you away from helping me. When I do edit the configuration file I use Notepad++. However, even if I do not edit the configuration file HA will run once. I run the configuration check and I get the litany of errors. That is pretty confusing since I didn’t change it at all. Iconfiguration.yaml (1.2 KB) When I am in the HA and just call the restart serice I get the config-error see dev-info panel for details.

To confirm, even if all you do after a fresh install of HA is restart it, you get an error?

Unfortunately, I can’t duplicate the problem. I’ve just tried installing HA on my Windows 10 laptop, and it behaves even with your configuration script. That suggests a problem with the install/your system.

It will run once. Then afterwards if I do a configuration check while still in the HA interface, it errors. Is there a way to uninstall HA completely.

I’m assuming (I don’t use the Windows version) that the following will work:

  1. pip3 uninstall homeassistant
  2. Delete %APPDATA%/.homeassistant

Thanks for the help. I will try reinstalling.

Have exactly the same issue and I’m having on several machines:

  • 2016 server (upgraded 0.21 to 0.4), removed all, reinstalled 0.4 - same behavior
  • Hassbian - fresh download od 1.1 and 1.2 pre-release
  • Fresh install of Rasbian and all-in-one install script.

Looks like your experiencing this bug:
https://github.com/home-assistant/home-assistant/issues/6728#issuecomment-288209390

Having the exact same problem on Windows 10 server with v0.47.1.

Delete everything in the deps folder helps once. But the problem repeats when I try to change anything in configuration.yaml.