Traceback (most recent call last):


 "/home/anaconda3/bin/onmt_translate", line 10, in <module>

sys.exit(main())


 "/home/OpenNMT-py-master/onmt/bin/translate.py", line 49, in main

translate(opt)


 "/home/OpenNMT-py-master/onmt/bin/translate.py", line 33, in translate

attn_debug=opt.attn_debug


 "/home/OpenNMT-py-master/onmt/translate/translator.py", line 418, in translate

msg = self._report_rouge(tgt)


 "/home/OpenNMT-py-master/onmt/translate/translator.py", line 871, in _report_rouge

shell=True, stdin=self.out_file


 "/home/anaconda3/lib/python3.6/subprocess.py", line 336, in check_output

**kwargs).stdout


 "/home/anaconda3/lib/python3.6/subprocess.py", line 418, in run

output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command 'python /home/OpenNMT-py-master/onmt/translate/tools/test_rouge.py -r [b"...\n", b"....\n"] -c STDIN' returned non-zero exit status 2.

Traceback (most recent call last):


 "/usr/lib/python3.4/asyncio/tasks.py", line 233, in _step

result = coro.throw(exc)


 "/home/schwim/bin/hass/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 381, in async_process_entity

new_entity, self, update_before_add=update_before_add


 "/home/schwim/bin/hass/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 212, in async_add_entity

yield from self.hass.async_add_job(entity.update)


 "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__

yield self
# This tells Task to wait for completion.


 "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup

value = future.result()


 "/usr/lib/python3.4/asyncio/futures.py", line 277, in result

raise self._exception


 "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run

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


 "/home/schwim/bin/hass/lib/python3.4/site-packages/homeassistant/components/switch/digitalloggers.py", line 113, in update

self._parent_device.statuslocal[self.outletnumber - 1][2] == 'ON'
TypeError: 'NoneType' object is not subscriptable
