Somehow my installation is broken. Even if I restore from latest backup and rest…art it works once but on the subsequent restart this happens. Any clues?
**Home Assistant release (`hass --version`):**
0.40.1
**Python release (`python3 --version`):**
3.5.2+
**Component/platform:**
**Expected:**
it works
I don't understand this. Aiohttp is there?
```bash
(homeassistant_venv) homeassistant@tower:/srv/homeassistant/homeassistant_venv$ pip3 install aiohttp
Requirement already satisfied: aiohttp in ./lib/python3.5/site-packages
Requirement already satisfied: yarl<0.10,>=0.9.8 in ./lib/python3.5/site-packages (from aiohttp)
Requirement already satisfied: async-timeout>=1.1.0 in ./lib/python3.5/site-packages (from aiohttp)
Requirement already satisfied: chardet in ./lib/python3.5/site-packages (from aiohttp)
Requirement already satisfied: multidict>=2.1.4 in ./lib/python3.5/site-packages (from aiohttp)
```
**Traceback (if applicable):**
<details>
<pre>
Mar 20 22:51:24 tower systemd[1]: Started Home Assistant.
Mar 20 22:51:25 tower hass[4438]: INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: service=turn_off, domain=homeassistant>
Mar 20 22:51:25 tower hass[4438]: INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: service=turn_on, domain=homeassistant>
Mar 20 22:51:25 tower hass[4438]: INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: service=toggle, domain=homeassistant>
Mar 20 22:51:25 tower hass[4438]: INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: service=stop, domain=homeassistant>
Mar 20 22:51:25 tower hass[4438]: INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: service=restart, domain=homeassistant>
Mar 20 22:51:25 tower hass[4438]: INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: service=check_config, domain=homeassistant>
Mar 20 22:51:25 tower hass[4438]: INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: service=reload_core_config, domain=homeassistant>
Mar 20 22:51:25 tower hass[4438]: INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: service=create, domain=persistent_notification>
Mar 20 22:51:25 tower hass[4438]: INFO:homeassistant.bootstrap:Home Assistant core initialized
Mar 20 22:51:25 tower hass[4438]: INFO:homeassistant.loader:Loaded mqtt from homeassistant.components.mqtt
Mar 20 22:51:26 tower hass[4438]: INFO:homeassistant.loader:Loaded logger from homeassistant.components.logger
Mar 20 22:51:26 tower hass[4438]: INFO:homeassistant.setup:Setting up logger
Mar 20 22:51:26 tower hass[4438]: WARNING:homeassistant.components.recorder:Ended unfinished session (id=122 from 2017-03-20 21:46:50)
Mar 20 22:51:26 tower hass[4438]: ERROR:homeassistant.loader:Error loading homeassistant.components.automation. Make sure all dependencies are installed
Mar 20 22:51:26 tower hass[4438]: Traceback (most recent call last):
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/loader.py", line 141, in get_component
Mar 20 22:51:26 tower hass[4438]: module = importlib.import_module(path)
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/importlib/__init__.py", line 126, in import_module
Mar 20 22:51:26 tower hass[4438]: return _bootstrap._gcd_import(name[level:], package, level)
Mar 20 22:51:26 tower hass[4438]: File "<frozen importlib._bootstrap>", line 986, in _gcd_import
Mar 20 22:51:26 tower hass[4438]: File "<frozen importlib._bootstrap>", line 969, in _find_and_load
Mar 20 22:51:26 tower hass[4438]: File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
Mar 20 22:51:26 tower hass[4438]: File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
Mar 20 22:51:26 tower hass[4438]: File "<frozen importlib._bootstrap_external>", line 673, in exec_module
Mar 20 22:51:26 tower hass[4438]: File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/automation/__init__.py", line 19, in <module>
Mar 20 22:51:26 tower hass[4438]: from homeassistant.components import logbook
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/logbook.py", line 18, in <module>
Mar 20 22:51:26 tower hass[4438]: from homeassistant.components.frontend import register_built_in_panel
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/frontend/__init__.py", line 12, in <module>
Mar 20 22:51:26 tower hass[4438]: from homeassistant.components import api, group
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/api.py", line 26, in <module>
Mar 20 22:51:26 tower hass[4438]: from homeassistant.helpers.state import AsyncTrackStates
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/helpers/state.py", line 8, in <module>
Mar 20 22:51:26 tower hass[4438]: from homeassistant.components.media_player import (
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/media_player/__init__.py", line 24, in <module>
Mar 20 22:51:26 tower hass[4438]: from homeassistant.components.http import HomeAssistantView, KEY_AUTHENTICATED
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/http/__init__.py", line 34, in <module>
Mar 20 22:51:26 tower hass[4438]: from .static import FILE_SENDER, CACHING_FILE_SENDER, staticresource_middleware
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/http/static.py", line 6, in <module>
Mar 20 22:51:26 tower hass[4438]: from aiohttp.file_sender import FileSender
Mar 20 22:51:26 tower hass[4438]: ImportError: No module named 'aiohttp.file_sender'
Mar 20 22:51:26 tower hass[4438]: ERROR:homeassistant.loader:Unable to find component automation
Mar 20 22:51:26 tower hass[4438]: ERROR:homeassistant.setup:Setup failed for automation: Component not found.
Mar 20 22:51:26 tower hass[4438]: ERROR:homeassistant.loader:Error loading homeassistant.components.history. Make sure all dependencies are installed
Mar 20 22:51:26 tower hass[4438]: Traceback (most recent call last):
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/loader.py", line 141, in get_component
Mar 20 22:51:26 tower hass[4438]: module = importlib.import_module(path)
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/importlib/__init__.py", line 126, in import_module
Mar 20 22:51:26 tower hass[4438]: return _bootstrap._gcd_import(name[level:], package, level)
Mar 20 22:51:26 tower hass[4438]: File "<frozen importlib._bootstrap>", line 986, in _gcd_import
Mar 20 22:51:26 tower hass[4438]: File "<frozen importlib._bootstrap>", line 969, in _find_and_load
Mar 20 22:51:26 tower hass[4438]: File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
Mar 20 22:51:26 tower hass[4438]: File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
Mar 20 22:51:26 tower hass[4438]: File "<frozen importlib._bootstrap_external>", line 673, in exec_module
Mar 20 22:51:26 tower hass[4438]: File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/history.py", line 20, in <module>
Mar 20 22:51:26 tower hass[4438]: from homeassistant.components.frontend import register_built_in_panel
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/frontend/__init__.py", line 12, in <module>
Mar 20 22:51:26 tower hass[4438]: from homeassistant.components import api, group
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/api.py", line 26, in <module>
Mar 20 22:51:26 tower hass[4438]: from homeassistant.helpers.state import AsyncTrackStates
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/helpers/state.py", line 8, in <module>
Mar 20 22:51:26 tower hass[4438]: from homeassistant.components.media_player import (
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/media_player/__init__.py", line 24, in <module>
Mar 20 22:51:26 tower hass[4438]: from homeassistant.components.http import HomeAssistantView, KEY_AUTHENTICATED
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/http/__init__.py", line 34, in <module>
Mar 20 22:51:26 tower hass[4438]: from .static import FILE_SENDER, CACHING_FILE_SENDER, staticresource_middleware
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/http/static.py", line 6, in <module>
Mar 20 22:51:26 tower hass[4438]: from aiohttp.file_sender import FileSender
Mar 20 22:51:26 tower hass[4438]: ImportError: No module named 'aiohttp.file_sender'
Mar 20 22:51:26 tower hass[4438]: ERROR:homeassistant.loader:Unable to find component history
Mar 20 22:51:26 tower hass[4438]: ERROR:homeassistant.setup:Setup failed for history: Component not found.
Mar 20 22:51:26 tower hass[4438]: ERROR:homeassistant.loader:Error loading homeassistant.components.input_slider. Make sure all dependencies are installed
Mar 20 22:51:26 tower hass[4438]: Traceback (most recent call last):
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/loader.py", line 141, in get_component
Mar 20 22:51:26 tower hass[4438]: module = importlib.import_module(path)
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/importlib/__init__.py", line 126, in import_module
Mar 20 22:51:26 tower hass[4438]: return _bootstrap._gcd_import(name[level:], package, level)
Mar 20 22:51:26 tower hass[4438]: File "<frozen importlib._bootstrap>", line 986, in _gcd_import
Mar 20 22:51:26 tower hass[4438]: File "<frozen importlib._bootstrap>", line 969, in _find_and_load
Mar 20 22:51:26 tower hass[4438]: File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
Mar 20 22:51:26 tower hass[4438]: File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
Mar 20 22:51:26 tower hass[4438]: File "<frozen importlib._bootstrap_external>", line 673, in exec_module
Mar 20 22:51:26 tower hass[4438]: File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/input_slider.py", line 17, in <module>
Mar 20 22:51:26 tower hass[4438]: from homeassistant.helpers.restore_state import async_get_last_state
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/helpers/restore_state.py", line 10, in <module>
Mar 20 22:51:26 tower hass[4438]: from homeassistant.components.history import get_states, last_recorder_run
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/history.py", line 20, in <module>
Mar 20 22:51:26 tower hass[4438]: from homeassistant.components.frontend import register_built_in_panel
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/frontend/__init__.py", line 12, in <module>
Mar 20 22:51:26 tower hass[4438]: from homeassistant.components import api, group
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/api.py", line 26, in <module>
Mar 20 22:51:26 tower hass[4438]: from homeassistant.helpers.state import AsyncTrackStates
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/helpers/state.py", line 8, in <module>
Mar 20 22:51:26 tower hass[4438]: from homeassistant.components.media_player import (
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/media_player/__init__.py", line 24, in <module>
Mar 20 22:51:26 tower hass[4438]: from homeassistant.components.http import HomeAssistantView, KEY_AUTHENTICATED
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/http/__init__.py", line 34, in <module>
Mar 20 22:51:26 tower hass[4438]: from .static import FILE_SENDER, CACHING_FILE_SENDER, staticresource_middleware
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/http/static.py", line 6, in <module>
Mar 20 22:51:26 tower hass[4438]: from aiohttp.file_sender import FileSender
Mar 20 22:51:26 tower hass[4438]: ImportError: No module named 'aiohttp.file_sender'
Mar 20 22:51:26 tower hass[4438]: ERROR:homeassistant.loader:Unable to find component input_slider
Mar 20 22:51:26 tower hass[4438]: ERROR:homeassistant.setup:Setup failed for input_slider: Component not found.
Mar 20 22:51:26 tower hass[4438]: ERROR:homeassistant.loader:Error loading homeassistant.components.input_boolean. Make sure all dependencies are installed
Mar 20 22:51:26 tower hass[4438]: Traceback (most recent call last):
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/loader.py", line 141, in get_component
Mar 20 22:51:26 tower hass[4438]: module = importlib.import_module(path)
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/importlib/__init__.py", line 126, in import_module
Mar 20 22:51:26 tower hass[4438]: return _bootstrap._gcd_import(name[level:], package, level)
Mar 20 22:51:26 tower hass[4438]: File "<frozen importlib._bootstrap>", line 986, in _gcd_import
Mar 20 22:51:26 tower hass[4438]: File "<frozen importlib._bootstrap>", line 969, in _find_and_load
Mar 20 22:51:26 tower hass[4438]: File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
Mar 20 22:51:26 tower hass[4438]: File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
Mar 20 22:51:26 tower hass[4438]: File "<frozen importlib._bootstrap_external>", line 673, in exec_module
Mar 20 22:51:26 tower hass[4438]: File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/input_boolean.py", line 18, in <module>
Mar 20 22:51:26 tower hass[4438]: from homeassistant.helpers.restore_state import async_get_last_state
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/helpers/restore_state.py", line 10, in <module>
Mar 20 22:51:26 tower hass[4438]: from homeassistant.components.history import get_states, last_recorder_run
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/history.py", line 20, in <module>
Mar 20 22:51:26 tower hass[4438]: from homeassistant.components.frontend import register_built_in_panel
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/frontend/__init__.py", line 12, in <module>
Mar 20 22:51:26 tower hass[4438]: from homeassistant.components import api, group
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/api.py", line 26, in <module>
Mar 20 22:51:26 tower hass[4438]: from homeassistant.helpers.state import AsyncTrackStates
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/helpers/state.py", line 8, in <module>
Mar 20 22:51:26 tower hass[4438]: from homeassistant.components.media_player import (
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/media_player/__init__.py", line 24, in <module>
Mar 20 22:51:26 tower hass[4438]: from homeassistant.components.http import HomeAssistantView, KEY_AUTHENTICATED
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/http/__init__.py", line 34, in <module>
Mar 20 22:51:26 tower hass[4438]: from .static import FILE_SENDER, CACHING_FILE_SENDER, staticresource_middleware
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/http/static.py", line 6, in <module>
Mar 20 22:51:26 tower hass[4438]: from aiohttp.file_sender import FileSender
Mar 20 22:51:26 tower hass[4438]: ImportError: No module named 'aiohttp.file_sender'
Mar 20 22:51:26 tower hass[4438]: ERROR:homeassistant.loader:Unable to find component input_boolean
Mar 20 22:51:26 tower hass[4438]: ERROR:homeassistant.setup:Setup failed for input_boolean: Component not found.
Mar 20 22:51:26 tower hass[4438]: ERROR:homeassistant.loader:Error loading homeassistant.components.http. Make sure all dependencies are installed
Mar 20 22:51:26 tower hass[4438]: Traceback (most recent call last):
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/loader.py", line 141, in get_component
Mar 20 22:51:26 tower hass[4438]: module = importlib.import_module(path)
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/importlib/__init__.py", line 126, in import_module
Mar 20 22:51:26 tower hass[4438]: return _bootstrap._gcd_import(name[level:], package, level)
Mar 20 22:51:26 tower hass[4438]: File "<frozen importlib._bootstrap>", line 986, in _gcd_import
Mar 20 22:51:26 tower hass[4438]: File "<frozen importlib._bootstrap>", line 969, in _find_and_load
Mar 20 22:51:26 tower hass[4438]: File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
Mar 20 22:51:26 tower hass[4438]: File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
Mar 20 22:51:26 tower hass[4438]: File "<frozen importlib._bootstrap_external>", line 673, in exec_module
Mar 20 22:51:26 tower hass[4438]: File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/http/__init__.py", line 34, in <module>
Mar 20 22:51:26 tower hass[4438]: from .static import FILE_SENDER, CACHING_FILE_SENDER, staticresource_middleware
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/http/static.py", line 6, in <module>
Mar 20 22:51:26 tower hass[4438]: from aiohttp.file_sender import FileSender
Mar 20 22:51:26 tower hass[4438]: ImportError: No module named 'aiohttp.file_sender'
Mar 20 22:51:26 tower hass[4438]: ERROR:homeassistant.loader:Unable to find component http
Mar 20 22:51:26 tower hass[4438]: ERROR:homeassistant.setup:Setup failed for http: Component not found.
Mar 20 22:51:26 tower hass[4438]: ERROR:homeassistant.loader:Error loading homeassistant.components.sensor.template. Make sure all dependencies are installed
Mar 20 22:51:26 tower hass[4438]: Traceback (most recent call last):
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/loader.py", line 141, in get_component
Mar 20 22:51:26 tower hass[4438]: module = importlib.import_module(path)
Mar 20 22:51:26 tower hass[4438]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/importlib/__init__.py", line 126, in import_module
Mar 20 22:51:26 tower hass[4438]: return _bootstrap._gcd_import(name[level:], package, level)
Mar 20 22:51:26 tower hass[4438]: File "<frozen importlib._bootstrap>", line 986, in _gcd_import
Mar 20 22:51:26
</pre>
</details>
**Additional info:**