"bootstrap: Not initializing" Errors after 32.1 update

I’m guessing the update didn’t install aiohttp_cors==0.4.0?

Here is what I got from the Home-assistant.log:

   16-11-05 20:00:24 homeassistant.bootstrap: Not initializing http because could not install dependency aiohttp_cors==0.4.0
    16-11-05 20:00:24 homeassistant.bootstrap: Not initializing api because not all dependencies loaded: http
    16-11-05 20:00:24 homeassistant.bootstrap: Not initializing frontend because not all dependencies loaded: api
    16-11-05 20:00:24 homeassistant.bootstrap: Not initializing logbook because not all dependencies loaded: frontend
    16-11-05 20:00:25 homeassistant.bootstrap: Error during setup of component emulated_hue
    Traceback (most recent call last):
      File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/bootstrap.py", line 149, in _async_setup_component
        None, component.setup, hass, config)
      File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
        yield self  # This tells Task to wait for completion.
      File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
        value = future.result()
      File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
        raise self._exception
      File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
        result = self.fn(*self.args, **self.kwargs)
      File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/emulated_hue.py", line 79, in setup
        trusted_networks=[]
      File "/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/http.py", line 253, in __init__
        import aiohttp_cors
    ImportError: No module named 'aiohttp_cors'
    16-11-05 20:00:26 homeassistant.bootstrap: Not initializing media_player because not all dependencies loaded: http
    16-11-05 20:00:36 homeassistant.bootstrap: Not initializing http because could not install dependency aiohttp_cors==0.4.0
    16-11-05 20:00:36 homeassistant.bootstrap: Component http failed to setup
    16-11-05 20:00:36 homeassistant.bootstrap: Unable to prepare setup for platform notify.html5 because dependency frontend could not be initialized
    16-11-05 20:00:36 homeassistant.bootstrap: component notify failed to initialize
    16-11-05 20:01:03 netdisco.ssdp: Found malformed XML at http://192.168.86.178:9080: status=ok
    16-11-05 20:01:14 homeassistant.bootstrap: Not initializing http because could not install dependency aiohttp_cors==0.4.0
    16-11-05 20:01:14 homeassistant.bootstrap: Component http failed to setup
    16-11-05 20:01:24 homeassistant.bootstrap: Not initializing http because could not install dependency aiohttp_cors==0.4.0
    16-11-05 20:01:24 homeassistant.bootstrap: Component http failed to setup
    16-11-05 20:01:34 homeassistant.bootstrap: Not initializing http because could not install dependency aiohttp_cors==0.4.0
    16-11-05 20:01:34 homeassistant.bootstrap: Component http failed to setup
    16-11-05 20:01:44 homeassistant.bootstrap: Not initializing http because could not install dependency aiohttp_cors==0.4.0
    16-11-05 20:01:44 homeassistant.bootstrap: Component http failed to setup

FIXED:
Installing $ pip install aiohttp_cors while hass_venv is active did the trick.

2 Likes

I have a similar problem. if I do
pip install aiohttp_cors

it says that is all installed

what do you mean “while hass_venev is active”??

Home assistant virtual environment.
Assuming you are on the Rpi AIO installation, you can get there by doing the following:

$ sudo su -s /bin/bash hass
$ source /srv/hass/hass_venv/bin/activate

Then install aiohttp_cors:
$ pip install aiohttp_cors

Hope that helps!

I did the same thing but for a newer version (same problem though). I was missing a lot of packages after upgrade.
I specifically installed specific versions, for example aiohttp_cors==version etc.
That worked for me.

Thanks for the help!