Traceback (most recent call last):



 "<ipython-input-1-f36a8d41893c>", line 1, in <module>

get_ipython().magic('load_ext Cython')



 "C:\Users\Jakes\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 2163, in magic

return self.run_line_magic(magic_name, magic_arg_s)



 "C:\Users\Jakes\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 2084, in run_line_magic

result = fn(*args,**kwargs)



 "<decorator-gen-65>", line 2, in load_ext



 "C:\Users\Jakes\Anaconda3\lib\site-packages\IPython\core\magic.py", line 193, in <lambda>

call = lambda f, *a, **k: f(*a, **k)



 "C:\Users\Jakes\Anaconda3\lib\site-packages\IPython\core\magics\extension.py", line 66, in load_ext

res = self.shell.extension_manager.load_extension(module_str)



 "C:\Users\Jakes\Anaconda3\lib\site-packages\IPython\core\extensions.py", line 86, in load_extension

if self._call_load_ipython_extension(mod):



 "C:\Users\Jakes\Anaconda3\lib\site-packages\IPython\core\extensions.py", line 133, in _call_load_ipython_extension

mod.load_ipython_extension(self.shell)



 "C:\Users\Jakes\Anaconda3\lib\site-packages\Cython\__init__.py", line 11, in load_ipython_extension

from .Build.IpythonMagic import CythonMagics
# pylint: disable=cyclic-import



 "C:\Users\Jakes\Anaconda3\lib\site-packages\Cython\Build\IpythonMagic.py", line 82, in <module>

from .Inline import cython_inline



 "C:\Users\Jakes\Anaconda3\lib\site-packages\Cython\Build\Inline.py", line 17, in <module>

from ..Compiler.ParseTreeTransforms import (CythonTransform,



 "C:\Users\Jakes\Anaconda3\lib\site-packages\Cython\Compiler\ParseTreeTransforms.py", line 1506, in <module>

class AnalyseDeclarationsTransform(EnvTransform):



 "C:\Users\Jakes\Anaconda3\lib\site-packages\Cython\Compiler\ParseTreeTransforms.py", line 1514, in AnalyseDeclarationsTransform

""", level='c_class', pipeline=[NormalizeTree(None)])



 "C:\Users\Jakes\Anaconda3\lib\site-packages\Cython\Compiler\TreeFragment.py", line 235, in __init__

mod = t = parse_from_strings(name, fmt_code, fmt_pxds, level=level, initial_pos=initial_pos)



 "C:\Users\Jakes\Anaconda3\lib\site-packages\Cython\Compiler\TreeFragment.py", line 58, in parse_from_strings

context = StringParseContext(name)



 "C:\Users\Jakes\Anaconda3\lib\site-packages\Cython\Compiler\TreeFragment.py", line 33, in __init__

create_testscope=False)



 "C:\Users\Jakes\Anaconda3\lib\site-packages\Cython\Compiler\Main.py", line 75, in __init__

from . import Builtin, CythonScope



 "C:\Users\Jakes\Anaconda3\lib\site-packages\Cython\Compiler\CythonScope.py", line 8, in <module>

from . import MemoryView



 "C:\Users\Jakes\Anaconda3\lib\site-packages\Cython\Compiler\MemoryView.py", line 9, in <module>

from . import Buffer



 "C:\Users\Jakes\Anaconda3\lib\site-packages\Cython\Compiler\Buffer.py", line 4, in <module>

from .ModuleNode import ModuleNode



 "C:\Users\Jakes\Anaconda3\lib\site-packages\Cython\Compiler\ModuleNode.py", line 2913, in <module>

capsule_utility_code = UtilityCode.load("Capsule")



 "Cython\Compiler\Code.py", line 254, in Cython.Compiler.Code.UtilityCodeBase.load

ValueError: More than one filename match found for utility code Capsule

Traceback (most recent call last):


 "/usr/lib/python3.6/asyncio/tasks.py", line 181, in _step

result = coro.throw(exc)


 "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py", line 398, in async_process_entity

new_entity, self, update_before_add=update_before_add


 "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py", line 244, in async_add_entity

yield from entity.async_added_to_hass()


 "/usr/lib/python3.6/site-packages/homeassistant/components/input_select.py", line 209, in async_added_to_hass

state = yield from async_get_last_state(self.hass, self.entity_id)


 "/usr/lib/python3.6/site-packages/homeassistant/helpers/restore_state.py", line 82, in async_get_last_state

_load_restore_cache, hass)


 "/usr/lib/python3.6/asyncio/futures.py", line 331, in __iter__

yield self
# This tells Task to wait for completion.


 "/usr/lib/python3.6/asyncio/tasks.py", line 244, in _wakeup

future.result()


 "/usr/lib/python3.6/asyncio/futures.py", line 244, in result

raise self._exception


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

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


 "/usr/lib/python3.6/site-packages/homeassistant/helpers/restore_state.py", line 31, in _load_restore_cache

last_run = last_recorder_run(hass)


 "/usr/lib/python3.6/site-packages/homeassistant/components/history.py", line 45, in last_recorder_run

.order_by(RecorderRuns.end.desc()).first())


 "/usr/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 2755, in first

ret = list(self[0:1])


 "/usr/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 2547, in __getitem__

return list(res)


 "/usr/lib/python3.6/site-packages/sqlalchemy/orm/loading.py", line 90, in instances

util.raise_from_cause(err)


 "/usr/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause

reraise(type(exception), exception, tb=exc_tb, cause=cause)


 "/usr/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 187, in reraise

raise value


 "/usr/lib/python3.6/site-packages/sqlalchemy/orm/loading.py", line 75, in instances

rows = [proc(row) for row in fetch]


 "/usr/lib/python3.6/site-packages/sqlalchemy/orm/loading.py", line 75, in <listcomp>

rows = [proc(row) for row in fetch]


 "/usr/lib/python3.6/site-packages/sqlalchemy/orm/loading.py", line 452, in _instance

loaded_instance, populate_existing, populators)


 "/usr/lib/python3.6/site-packages/sqlalchemy/orm/loading.py", line 513, in _populate_full

dict_[key] = getter(row)
ValueError: Couldn't parse datetime string: 'state_changed'
