Home Assistant not starting because of homematic problem

I had a problem with corrupted sd card because of lack of power and after fixing it, I still have problem with initializing home assistant. Tried to google it but can’t find any relevant info. For me, it’s clear that homematic has problem to load but don’t know why and how to fix it. I really need to fix that asap because right now my heaters automatic is gone and I need to switch it on and off manually :confused:
Help, please!

17-04-27 08:42:33 ERROR (MainThread) [homeassistant.setup] Error during setup of component http
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/setup.py", line 189, in     _async_setup_component
result = yield from component.async_setup(hass, processed_config)
File "/usr/lib/python3.4/asyncio/coroutines.py", line 141, in coro
res = func(*args, **kw)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/http/__init__.py", line 141, in async_setup
is_ban_enabled=is_ban_enabled
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/http/__init__.py", line 184, in __init__
import aiohttp_cors
File "/home/homeassistant/.homeassistant/deps/aiohttp_cors/__init__.py", line 22, in <module>
from .__about__ import (
ImportError: No module named 'aiohttp_cors.__about__'
17-04-27 08:42:33 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of websocket_api.    Setup failed for dependencies: http
17-04-27 08:42:33 ERROR (MainThread) [homeassistant.setup] Setup failed for websocket_api: Could not setup all dependencies.
17-04-27 08:42:33 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of api. Setup failed for dependencies: http
17-04-27 08:42:33 ERROR (MainThread) [homeassistant.setup] Setup failed for api: Could not setup all dependencies.
17-04-27 08:42:33 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of tts. Setup failed for dependencies: http
17-04-27 08:42:33 ERROR (MainThread) [homeassistant.setup] Setup failed for tts: Could not setup all dependencies.
17-04-27 08:42:33 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of frontend. Setup failed for dependencies: api, websocket_api
17-04-27 08:42:33 ERROR (MainThread) [homeassistant.setup] Setup failed for frontend: Could not setup all dependencies.
17-04-27 08:42:33 ERROR (MainThread) [homeassistant.setup] Error during setup of component homematic
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/setup.py", line 192, in _async_setup_component
None, component.setup, hass, processed_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/homeassistant/lib/python3.4/site-packages/homeassistant/components/homematic.py", line 246, in setup
from pyhomematic import HMConnection
ImportError: cannot import name 'HMConnection'
17-04-27 08:42:33 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of climate.homematic. Setup failed for dependencies: homematic
17-04-27 08:42:33 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform climate.homematic: Could not setup all dependencies.
17-04-27 08:42:43 WARNING (MainThread) [homeassistant.setup] Setup of recorder is taking over 10 seconds.

Also, tried to update home assistant and it also failed:

homeassistant@hassbian:/home/pi $ pip3 install --upgrade homeassistant
Downloading/unpacking homeassistant from https://pypi.python.org/packages/54/05/53b210e30d4c8e1b0e45678d9ef0e497857c63d669e4bbfc9947440e07bf/homeassistant-0.43.1-py2.py3-none-any.whl#md5=cbe0deae214446aac755c638ed3076d1
Downloading homeassistant-0.43.1-py2.py3-none-any.whl (7.0MB): 7.0MB downloaded
Downloading/unpacking aiohttp==2.0.7 (from homeassistant)
Downloading aiohttp-2.0.7.tar.gz (739kB): 739kB downloaded
Running setup.py (path:/tmp/pip-build-o6hmidjw/aiohttp/setup.py) egg_info for package aiohttp
Traceback (most recent call last):
  File "<string>", line 3, in <module>
ImportError: cannot import name 'egg_info'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File "<string>", line 3, in <module>

ImportError: cannot import name 'egg_info'

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-o6hmidjw/aiohttp
Storing debug log for failure in /home/homeassistant/.pip/pip.log

Can you try to install the packages with sudo or root account?

Meanwhile I tried to upgrade all packages related with pip and something changed…well, but still no success. Now, no mather if I try upgrade from root or not, I get this stack trace:

 root@hassbian /h/pi# pip3 install --upgrade homeassistant
Downloading/unpacking homeassistant from https://pypi.python.org/packages/54/05/53b210e30d4c8e1b0e45678d9ef0e497857c63d669e4bbfc9947440e07bf/homeassistant-0.43.1-py2.py3-none-any.whl#md5=cbe0deae214446aac755c638ed3076d1
Downloading homeassistant-0.43.1-py2.py3-none-any.whl (7.0MB): 7.0MB downloaded
Requirement already up-to-date: pyyaml>=3.11,<4 in /usr/local/lib/python3.4/dist-packages (from homeassistant)
Requirement already up-to-date: pytz>=2017.02 in /usr/local/lib/python3.4/dist-packages (from homeassistant)
Requirement already up-to-date: async-timeout==1.2.0 in /usr/local/lib/python3.4/dist-packages (from homeassistant)
Downloading/unpacking aiohttp==2.0.7 (from homeassistant)
Downloading aiohttp-2.0.7.tar.gz (739kB): 739kB downloaded
Running setup.py (path:/tmp/pip-build-h0j_6hxi/aiohttp/setup.py) egg_info for package aiohttp
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/setuptools/dist.py", line 416, in fetch_build_egg
    cmd = self._egg_fetcher
 AttributeError: 'Distribution' object has no attribute '_egg_fetcher'
 During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/setuptools/dist.py", line 416, in fetch_build_egg
    cmd = self._egg_fetcher
AttributeError: 'Distribution' object has no attribute '_egg_fetcher'

And it’s repeated many times. I also reinstalled pip but no luck.