Not initializing http because could not install dependency aiohttp_cors==0.5.2

I just installed on Linux mint 18 using pip. Could somebody help me to get this running, I don´t really know what the problem is, dependencies i think.

when i run hass --open-ui I cannot load the web page.

This is the log

`17-04-24 02:01:06 ERROR (MainThread)` [homeassistant.setup] Not initializing http because could not install dependency aiohttp_cors==0.5.2
17-04-24 02:01:06 ERROR (MainThread) [homeassistant.setup] Setup failed for http: Could not install all requirements.
17-04-24 02:01:06 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of websocket_api. Setup failed for dependencies: http
17-04-24 02:01:06 ERROR (MainThread) [homeassistant.setup] Setup failed for websocket_api: Could not setup all dependencies.
17-04-24 02:01:06 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of api. Setup failed for dependencies: http
17-04-24 02:01:06 ERROR (MainThread) [homeassistant.setup] Setup failed for api: Could not setup all dependencies.
17-04-24 02:01:06 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of frontend. Setup failed for dependencies: api, websocket_api
17-04-24 02:01:06 ERROR (MainThread) [homeassistant.setup] Setup failed for frontend: Could not setup all dependencies.
17-04-24 02:01:09 ERROR (MainThread) [homeassistant.setup] Not initializing recorder because could not install dependency sqlalchemy==1.1.9
17-04-24 02:01:09 ERROR (MainThread) [homeassistant.setup] Setup failed for recorder: Could not install all requirements.
17-04-24 02:01:09 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of history. Setup failed for dependencies: recorder, http
17-04-24 02:01:09 ERROR (MainThread) [homeassistant.setup] Setup failed for history: Could not setup all dependencies.
17-04-24 02:01:09 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of config. Setup failed for dependencies: http
17-04-24 02:01:09 ERROR (MainThread) [homeassistant.setup] Setup failed for config: Could not setup all dependencies.
17-04-24 02:01:09 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of logbook. Setup failed for dependencies: recorder, frontend
17-04-24 02:01:09 ERROR (MainThread) [homeassistant.setup] Setup failed for logbook: Could not setup all dependencies.
17-04-24 02:01:11 ERROR (MainThread) [homeassistant.setup] Not initializing tts because could not install dependency mutagen==1.36.2
17-04-24 02:01:11 ERROR (MainThread) [homeassistant.setup] Setup failed for tts: Could not install all requirements.
17-04-24 02:01:16 ERROR (MainThread) [homeassistant.setup] Not initializing discovery because could not install dependency netdisco==1.0.0rc3
17-04-24 02:01:16 ERROR (MainThread) [homeassistant.setup] Setup failed for discovery: Could not install all requirements.
17-04-24 02:01:19 WARNING (MainThread) [homeassistant.setup] Setup of sensor is taking over 10 seconds.
17-04-24 02:01:20 ERROR (MainThread) [homeassistant.setup] Not initializing sun because could not install dependency astral==1.4
17-04-24 02:01:20 ERROR (MainThread) [homeassistant.setup] Setup failed for sun: Could not install all requirements.
17-04-24 02:01:21 ERROR (MainThread) [homeassistant.setup] Not initializing updater because could not install dependency distro==1.0.4
17-04-24 02:01:21 ERROR (MainThread) [homeassistant.setup] Setup failed for updater: Could not install all requirements.
17-04-24 02:01:22 ERROR (MainThread) [homeassistant.setup] Not initializing conversation because could not install dependency fuzzywuzzy==0.15.0
17-04-24 02:01:22 ERROR (MainThread) [homeassistant.setup] Setup failed for conversation: Could not install all requirements.
17-04-24 02:01:25 ERROR (MainThread) [homeassistant.setup] Not initializing sensor.yr because could not install dependency xmltodict==0.10.2
17-04-24 02:01:25 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform sensor.yr: Could not install all requirements.

I tried to install the missing dependency but got this and it still does not work

pip install aiohttp_cors
Collecting aiohttp_cors
  Using cached aiohttp_cors-0.5.3-py3-none-any.whl
Collecting aiohttp>=1.1 (from aiohttp_cors)
  Using cached aiohttp-2.0.7-cp35-cp35m-manylinux1_x86_64.whl
Collecting typing (from aiohttp_cors)
  Using cached typing-3.6.1.tar.gz
Collecting chardet (from aiohttp>=1.1->aiohttp_cors)
  Using cached chardet-3.0.2-py2.py3-none-any.whl
Collecting yarl<0.11,>=0.10.0 (from aiohttp>=1.1->aiohttp_cors)
  Using cached yarl-0.10.0-cp35-cp35m-manylinux1_x86_64.whl
Collecting multidict>=2.1.4 (from aiohttp>=1.1->aiohttp_cors)
  Using cached multidict-2.1.4-cp35-cp35m-manylinux1_x86_64.whl
Collecting async-timeout>=1.2.0 (from aiohttp>=1.1->aiohttp_cors)
  Using cached async_timeout-1.2.0-py3-none-any.whl
Building wheels for collected packages: typing
  Running setup.py bdist_wheel for typing ... error
  Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-wwvr2fie/typing/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmp6zpe9kkwpip-wheel- --python-tag cp35:
  usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: -c --help [cmd1 cmd2 ...]
     or: -c --help-commands
     or: -c cmd --help
  
  error: invalid command 'bdist_wheel'
  
  ----------------------------------------
  **Failed building wheel for typing**
  Running setup.py clean for typing
Failed to build typing
Installing collected packages: chardet, multidict, yarl, async-timeout, aiohttp, typing, aiohttp-cors
  Running setup.py install for typing ... done
Successfully installed aiohttp-2.0.7 aiohttp-cors-0.5.3 async-timeout-1.2.0 chardet-2.3.0 multidict-2.1.4 typing-3.6.1 yarl-0.10.0

OK, i solved it. I had to install every package (there was like 20 of them) that was missing.

sudo systemctl stop [email protected]
sudo su -s /bin/bash homeassistant
source /srv/homeassistant/bin/activate
pip3 install insert-package-name==1.2.3

Hi Aanfbaeck, Thanks for looking into this, does the recent commit by @fabaff fix this? Does this mean that I can start again from the beginning and the dependency problem will be sorted out?

Or do I have go through the log and try to install the deps in pip ?

Sorry, i´m rubbish with python stuff, I might be being a bit stupid and missing the obvious here.

alright I got it working, sort of anyway.

I had to upgrade pip3 first and then install setuptools, later i discovered that the discovery module also has dependency problems so had to install python3-dev as well.

I went through the log… No biggie. Took a couple of minutes. I get dependancy problems on pretty much every module i try to add but it’s not a big problem to add them manualy. It would be nice if it worked automaticaly though.