Traceback (most recent call last):


 "/usr/lib/python3/dist-packages/pip/basecommand.py", line 209, in main

status = self.run(options, args)


 "/usr/lib/python3/dist-packages/pip/commands/install.py", line 328, in run

wb.build(autobuilding=True)


 "/usr/lib/python3/dist-packages/pip/wheel.py", line 748, in build

self.requirement_set.prepare_files(self.finder)


 "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 360, in prepare_files

ignore_dependencies=self.ignore_dependencies))


 "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 512, in _prepare_file

finder, self.upgrade, require_hashes)


 "/usr/lib/python3/dist-packages/pip/req/req_install.py", line 273, in populate_link

self.link = finder.find_requirement(self, upgrade)


 "/usr/lib/python3/dist-packages/pip/index.py", line 442, in find_requirement

all_candidates = self.find_all_candidates(req.name)


 "/usr/lib/python3/dist-packages/pip/index.py", line 400, in find_all_candidates

for page in self._get_pages(url_locations, project_name):


 "/usr/lib/python3/dist-packages/pip/index.py", line 545, in _get_pages

page = self._get_page(location)


 "/usr/lib/python3/dist-packages/pip/index.py", line 648, in _get_page

return HTMLPage.get_page(link, session=self.session)


 "/usr/lib/python3/dist-packages/pip/index.py", line 757, in get_page

"Cache-Control": "max-age=600",


 "/usr/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/sessions.py", line 480, in get

return self.request('GET', url, **kwargs)


 "/usr/lib/python3/dist-packages/pip/download.py", line 378, in request

return super(PipSession, self).request(method, url, *args, **kwargs)


 "/usr/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/sessions.py", line 468, in request

resp = self.send(prep, **send_kwargs)


 "/usr/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/sessions.py", line 576, in send

r = adapter.send(request, **kwargs)


 "/usr/share/python-wheels/CacheControl-0.11.5-py2.py3-none-any.whl/cachecontrol/adapter.py", line 46, in send

resp = super(CacheControlAdapter, self).send(request, **kw)


 "/usr/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/adapters.py", line 376, in send

timeout=timeout


 "/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 610, in urlopen

_stacktrace=sys.exc_info()[2])


 "/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/util/retry.py", line 228, in increment

total -= 1
TypeError: unsupported operand type(s) for -=: 'Retry' and _'int'

Traceback (most recent call last):


 "/usr/local/lib/python3.5/dist-packages/homeassistant/helpers/entity_component.py", line 150, in _async_setup_platform

entity_platform.add_entities, discovery_info


 "/usr/lib/python3.5/asyncio/futures.py", line 361, in __iter__

yield self
# This tells Task to wait for completion.


 "/usr/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup

future.result()


 "/usr/lib/python3.5/asyncio/futures.py", line 274, in result

raise self._exception


 "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run

result = self.fn(*self.args, **self.kwargs)


 "/usr/local/lib/python3.5/dist-packages/homeassistant/components/media_player/kodi.py", line 59, in setup_platform

turn_off_action=config.get(CONF_TURN_OFF_ACTION)),


 "/usr/local/lib/python3.5/dist-packages/homeassistant/components/media_player/kodi.py", line 80, in __init__

self.update()


 "/usr/local/lib/python3.5/dist-packages/homeassistant/components/media_player/kodi.py", line 114, in update

self._players = self._get_players()


 "/usr/local/lib/python3.5/dist-packages/homeassistant/components/media_player/kodi.py", line 91, in _get_players

return self._server.Player.GetActivePlayers()


 "/home/osboxes/.homeassistant/deps/jsonrpc_requests/jsonrpc.py", line 112, in __call__

return self.__request_method(self.__method_name, args, kwargs)


 "/home/osboxes/.homeassistant/deps/jsonrpc_requests/jsonrpc.py", line 96, in __request

return self.send_request(method_name, is_notification, args or kwargs)


 "/home/osboxes/.homeassistant/deps/jsonrpc_requests/jsonrpc.py", line 37, in send_request

response = self.request(data=request_body)


 "/usr/local/lib/python3.5/dist-packages/requests/sessions.py", line 535, in post

return self.request('POST', url, data=data, json=json, **kwargs)


 "/usr/local/lib/python3.5/dist-packages/requests/sessions.py", line 474, in request

prep = self.prepare_request(req)


 "/usr/local/lib/python3.5/dist-packages/requests/sessions.py", line 407, in prepare_request

hooks=merge_hooks(request.hooks, self.hooks),


 "/usr/local/lib/python3.5/dist-packages/requests/models.py", line 306, in prepare

self.prepare_auth(auth, url)


 "/usr/local/lib/python3.5/dist-packages/requests/models.py", line 527, in prepare_auth

r = auth(self)


 "/usr/local/lib/python3.5/dist-packages/requests/auth.py", line 68, in __call__

r.headers['Authorization'] = _basic_auth_str(self.username, self.password)


 "/usr/local/lib/python3.5/dist-packages/requests/auth.py", line 38, in _basic_auth_str

b64encode(b':'.join((username, password))).strip()
TypeError: sequence item 0: expected a bytes-like object, NoneType found
