Traceback (most recent call last):


 "/home2/sj/opennmt/train.py", line 6, in <module>

main()


 "/home2/sj/translation/OpenNMT-py-master-GPU-v3/onmt/bin/train.py", line 200, in main

train(opt)


 "/home2/sj/translation/OpenNMT-py-master-GPU-v3/onmt/bin/train.py", line 29, in train

map_location=lambda storage, loc: storage)


 "/home2/sj/.local/lib/python3.6/site-packages/torch/serialization.py", line 426, in load

return _load(f, map_location, pickle_module, **pickle_load_args)


 "/home2/sj/.local/lib/python3.6/site-packages/torch/serialization.py", line 597, in _load

if _is_zipfile(f):


 "/home2/sj/.local/lib/python3.6/site-packages/torch/serialization.py", line 75, in _is_zipfile

if ord(magic_byte) != ord(read_byte):
TypeError: ord() expected a character, but string of length 0 found

Traceback (most recent call last):


 "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 281, in async_update_ha_state

await self.async_device_update()


 "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 459, in async_device_update

await self.async_update()


 "/usr/src/homeassistant/homeassistant/components/template/sensor.py", line 224, in async_update

self._state = self._template.async_render()


 "/usr/src/homeassistant/homeassistant/helpers/template.py", line 222, in async_render

return compiled.render(kwargs).strip()


 "/usr/local/lib/python3.7/site-packages/jinja2/asyncsupport.py", line 76, in render

return original_render(self, *args, **kwargs)


 "/usr/local/lib/python3.7/site-packages/jinja2/environment.py", line 1008, in render

return self.environment.handle_exception(exc_info, True)


 "/usr/local/lib/python3.7/site-packages/jinja2/environment.py", line 780, in handle_exception

reraise(exc_type, exc_value, tb)


 "/usr/local/lib/python3.7/site-packages/jinja2/_compat.py", line 37, in reraise

raise value.with_traceback(tb)


 "<template>", line 1, in top-level template code


 "/usr/local/lib/python3.7/site-packages/jinja2/sandbox.py", line 440, in call

return __context.call(__obj, *args, **kwargs)


 "/usr/src/homeassistant/homeassistant/helpers/template.py", line 814, in strptime

return datetime.strptime(string, fmt)
TypeError: strptime() argument 1 must be str, not Undefined
