ERROR in Log

Hi there,

what’s the meaning of this error:

17-02-17 17:06:22 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved

Traceback (most recent call last):
File “/usr/lib/python3.4/asyncio/”, line 233, in _step
result = coro.throw(exc)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/”, line 387, in _update_entity_states
yield from update_coro
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/”, line 209, in async_update_ha_state
yield from self.hass.loop.run_in_executor(None, self.update)
File “/usr/lib/python3.4/asyncio/”, line 388, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.4/asyncio/”, line 286, in _wakeup
value = future.result()
File “/usr/lib/python3.4/asyncio/”, line 277, in result
raise self._exception
File “/usr/lib/python3.4/concurrent/futures/”, line 54, in run
result = self.fn(*self.args, **self.kwargs)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/calendar/”, line 138, in update
if not or not
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/util/”, line 296, in wrapper
result = method(*args, **kwargs)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/calendar/”, line 75, in update
result = events.list(**params).execute()
File “/home/homeassistant/.homeassistant/deps/oauth2client/”, line 137, in positional_wrapper
File “/home/homeassistant/.homeassistant/deps/googleapiclient/”, line 833, in execute
File “/home/homeassistant/.homeassistant/deps/googleapiclient/”, line 160, in _retry_request
File “/home/homeassistant/.homeassistant/deps/oauth2client/”, line 169, in new_request
File “/home/homeassistant/.homeassistant/deps/httplib2/”, line 1204, in request
File “/home/homeassistant/.homeassistant/deps/httplib2/”, line 854, in init
FileNotFoundError: [Errno 2] No such file or directory

It looks like httplib2 didn’t install correctly. Is it giving you this after each restart? If so you might want to try this from your homeassistant user under the virtual environment if you installed under one.

pip3 install httplib2 --upgrade --target /home/homeassistant/.homeassistant/deps

If that fails you may have another copy of httplib2 installed somewhere you can find that using the following commands

pip3 list
sudo pip3 list
pip list
sudo pip list

each place you find it, remove it by using the same sudo/pip3 combination you did in the last section like this

pip3 remove httplib2
sudo pip3 remove httplib2
pip remove httplib2
sudo pip3 remove httplib2

Then try re-installing using the original install in this email (the one with a target specified).

That process seems to work for me when this type of thing happens.

As a side question to the development team. What is the purpose of using the deps directory if we are under a virtual environment? I thought the benefit of the virtual environment was that we had an isolated directory for these types of files so that we didn’t “cross polinate” with other apps running on our server?

thanks turboc,

the upgrade works, no more error in the logfile.

El Grande