I tried installing 0.41.0 tonight. I got the normal modules that wouldn’t install correctly pubnubsub-handler, psutils, pychromecase, pyatv, etc. HA came up though and told me that I needed to install these modules. because I have had problems getting the 0.40.2 install to run correctly today, I decided to run the modules one at a time. I got down to only pyatv and pychromecast to install. When I installed pyatv, and restarted, HA no longer comes up. It throws the following errors and more similar to these.
17-03-25 20:31:55 ERROR (MainThread) [homeassistant.loader] Error loading homeassistant.components.input_select. Make sure all dependencies are installed
Traceback (most recent call last):
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/loader.py", line 141, in get_component
module = importlib.import_module(path)
File "/usr/lib/python3.4/importlib/__init__.py", line 109, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 2254, in _gcd_import
File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
File "<frozen importlib._bootstrap>", line 1129, in _exec
File "<frozen importlib._bootstrap>", line 1471, in exec_module
File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/input_select.py", line 16, in <module>
from homeassistant.helpers.restore_state import async_get_last_state
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/restore_state.py", line 10, in <module>
from homeassistant.components.history import get_states, last_recorder_run
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/history.py", line 20, in <module>
from homeassistant.components.frontend import register_built_in_panel
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/frontend/__init__.py", line 12, in <module>
from homeassistant.components import api, group
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/api.py", line 26, in <module>
from homeassistant.helpers.state import AsyncTrackStates
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/state.py", line 8, in <module>
from homeassistant.components.media_player import (
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/media_player/__init__.py", line 24, in <module>
from homeassistant.components.http import HomeAssistantView, KEY_AUTHENTICATED
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/http/__init__.py", line 34, in <module>
from .static import FILE_SENDER, CACHING_FILE_SENDER, staticresource_middleware
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/http/static.py", line 6, in <module>
from aiohttp.file_sender import FileSender
ImportError: No module named 'aiohttp.file_sender'
17-03-25 20:31:55 ERROR (MainThread) [homeassistant.loader] Unable to find component input_select
17-03-25 20:31:55 ERROR (MainThread) [homeassistant.setup] Setup failed for input_select: Component not found.
17-03-25 20:31:55 ERROR (MainThread) [homeassistant.loader] Error loading homeassistant.components.history. Make sure all dependencies are installed
Traceback (most recent call last):
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/loader.py", line 141, in get_component
module = importlib.import_module(path)
File "/usr/lib/python3.4/importlib/__init__.py", line 109, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 2254, in _gcd_import
File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
File "<frozen importlib._bootstrap>", line 1129, in _exec
File "<frozen importlib._bootstrap>", line 1471, in exec_module
File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/history.py", line 20, in <module>
from homeassistant.components.frontend import register_built_in_panel
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/frontend/__init__.py", line 12, in <module>
from homeassistant.components import api, group
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/api.py", line 26, in <module>
from homeassistant.helpers.state import AsyncTrackStates
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/state.py", line 8, in <module>
from homeassistant.components.media_player import (
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/media_player/__init__.py", line 24, in <module>
from homeassistant.components.http import HomeAssistantView, KEY_AUTHENTICATED
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/http/__init__.py", line 34, in <module>
from .static import FILE_SENDER, CACHING_FILE_SENDER, staticresource_middleware
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/http/static.py", line 6, in <module>
from aiohttp.file_sender import FileSender
ImportError: No module named 'aiohttp.file_sender'
17-03-25 20:31:55 ERROR (MainThread) [homeassistant.loader] Unable to find component history
This is the same thing that was happening with the 0.40.2 install earlier today. But this time I have narrowed it down to when pyatv is installed.
(homeassistant_venv) homeassistant@hass2:~$ pip3 install --upgrade --target ~/.homeassistant/deps/ pyatv==0.2.1
I finally got it to install. I commented out the apple tv in my configuration, uninstalled HA, made sure the deps directory was gone. i’m in a virtual environment, so I went to the virtual lib directory and cleaned up some apps in there that appeared to have multiple instances. Then I did a apt-get update and upgrade. Finally I re-installed HA 0.41.0 and manually added in all of the dependencies one at a time rebooting between each. With apple tv commented out it did not ask me for pyatv so I didn’t install it and everything is fine.
I don’t have the patience after fighting with this all day to try and get apple tv working now. maybe next weekend.
I have nothing but respect and admiration for the team putting together HA. But I would like to request that they take a break from new functionality and fix the problems with the install/upgrade process. I know we are all on different setups, but even the standard installs for a virtual environment on a RPI don’t work right. Can we get those issues resolved before adding any more new functionality? Please?