Traceback (most recent call last):


 "/usr/lib/python3.5/site-packages/homeassistant/helpers/entity_component.py", line 164, in _async_setup_platform

SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)


 "/usr/lib64/python3.5/asyncio/tasks.py", line 406, in wait_for

return fut.result()


 "/usr/lib64/python3.5/asyncio/futures.py", line 294, in result

raise self._exception


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

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


 "/usr/lib/python3.5/site-packages/homeassistant/components/calendar/todoist.py", line 146, in setup_platform

TodoistProjectDevice(hass, project_data, labels, api)


 "/usr/lib/python3.5/site-packages/homeassistant/components/calendar/todoist.py", line 241, in __init__

super().__init__(hass, calendar_format)


 "/usr/lib/python3.5/site-packages/homeassistant/components/calendar/__init__.py", line 72, in __init__

self.update()


 "/usr/lib/python3.5/site-packages/homeassistant/components/calendar/todoist.py", line 246, in update

super().update()


 "/usr/lib/python3.5/site-packages/homeassistant/components/calendar/__init__.py", line 138, in update

if not self.data or not self.data.update():


 "/usr/lib/python3.5/site-packages/homeassistant/util/__init__.py", line 306, in wrapper

result = method(*args, **kwargs)


 "/usr/lib/python3.5/site-packages/homeassistant/components/calendar/todoist.py", line 494, in update

project_task_data = self._api.projects.get_data(self._id)[TASKS]
TypeError: string indices must be integers

Traceback (most recent call last):


 "main.py", line 79, in <module>

model = LatentAttention()


 "main.py", line 12, in __init__

self.mnist = input_data.read_data_sets("MNIST_data/", one_hot=True)


 "/home/medgar/models/autoencoders/variational-autoencoder-kvfrans/input_data.py", line 148, in read_data_sets

train_images = extract_images(local_file)


 "/home/medgar/models/autoencoders/variational-autoencoder-kvfrans/input_data.py", line 38, in extract_images

buf = bytestream.read(rows * cols * num_images)


 "/usr/lib/python2.7/gzip.py", line 275, in read

chunk = self.extrabuf[offset: offset + size]
TypeError: only integer scalar arrays can be converted to a scalar index
