Hi
I’m installing HASS on windows because I need some windows-only-possible integrations with peripheral (io belgian domotics qbus).
All went well during the configuration with builtin components until I implemented the Kodi component. Then I got the error:
2017-06-18 16:12:34 ERROR (MainThread) [homeassistant.loader] Error loading homeassistant.components.frontend. Make sure all dependencies are installed
Traceback (most recent call last):
File "C:\Python3\lib\site-packages\homeassistant\loader.py", line 141, in get_component
module = importlib.import_module(path)
File "C:\Python3\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 978, in _gcd_import
File "<frozen importlib._bootstrap>", line 961, in _find_and_load
File "<frozen importlib._bootstrap>", line 950, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
File "C:\Python3\lib\site-packages\homeassistant\components\frontend\__init__.py", line 12, in <module>
from homeassistant.components import api, group
File "C:\Python3\lib\site-packages\homeassistant\components\api.py", line 26, in <module>
from homeassistant.helpers.state import AsyncTrackStates
File "C:\Python3\lib\site-packages\homeassistant\helpers\state.py", line 8, in <module>
from homeassistant.components.media_player import (
File "C:\Python3\lib\site-packages\homeassistant\components\media_player\__init__.py", line 24, in <module>
from homeassistant.components.http import HomeAssistantView, KEY_AUTHENTICATED
File "C:\Python3\lib\site-packages\homeassistant\components\http\__init__.py", line 33, in <module>
from .static import (
File "C:\Python3\lib\site-packages\homeassistant\components\http\static.py", line 6, in <module>
from aiohttp.web import FileResponse
ImportError: cannot import name 'FileResponse'
2017-06-18 16:12:34 ERROR (MainThread) [homeassistant.loader] Unable to find component frontend
2017-06-18 16:12:34 ERROR (MainThread) [homeassistant.setup] Setup failed for frontend: Component not found.
And the website frontend did not came up again and there were similar loggings for history, logbook, …
The kodi component made me install jsonrpc-websocket==0.5 and the setting for websockets did not change the error.
I looked at other forum articles and I got the system working with:
- delete aiohttp folder in homeassisant deps folder
- install aiohttp==1.3.3
- install aiohttp_cors=0.5.3
- pip3 install homeassistant --force-reinstall -I
I do not know if this is a coincidence that I got the system working again but hopefully this can help some smart developers identifying the Root Cause Analysis or users to get their system online again.
Mario