Traceback (most recent call last):


 "/opt/paperless/src/manage.py", line 18, in <module>

execute_from_command_line(sys.argv)


 "/usr/local/lib/python3.4/dist-packages/django/core/management/__init__.py", line 367, in execute_from_command_line

utility.execute()


 "/usr/local/lib/python3.4/dist-packages/django/core/management/__init__.py", line 359, in execute

self.fetch_command(subcommand).run_from_argv(self.argv)


 "/usr/local/lib/python3.4/dist-packages/django/core/management/base.py", line 294, in run_from_argv

self.execute(*args, **cmd_options)


 "/usr/local/lib/python3.4/dist-packages/django/core/management/base.py", line 345, in execute

output = self.handle(*args, **options)


 "/opt/paperless/src/documents/management/commands/document_consumer.py", line 57, in handle

self.loop()


 "/opt/paperless/src/documents/management/commands/document_consumer.py", line 67, in loop

self.file_consumer.consume()


 "/opt/paperless/src/documents/consumer.py", line 124, in consume

parsed_document.get_text(),


 "/opt/paperless/src/paperless_tesseract/parsers.py", line 55, in get_text

return self._get_ocr(images)


 "/opt/paperless/src/paperless_tesseract/parsers.py", line 131, in _get_ocr

raw_text = self._assemble_ocr_sections(imgs, middle, raw_text)


 "/opt/paperless/src/paperless_tesseract/parsers.py", line 174, in _assemble_ocr_sections

text = self._ocr(imgs[:middle], self.DEFAULT_OCR_LANGUAGE) + text


 "/opt/paperless/src/paperless_tesseract/parsers.py", line 163, in _ocr

r = pool.map(image_to_string, itertools.product(imgs, [lang]))


 "/usr/lib/python3.4/multiprocessing/pool.py", line 260, in map

return self._map_async(func, iterable, mapstar, chunksize).get()


 "/usr/lib/python3.4/multiprocessing/pool.py", line 599, in get

raise self._value
pyocr.error.TesseractError: (-9, b'Tesseract Open Source OCR Engine v3.03 with Leptonica\n')

Traceback (most recent call last):


 "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step

result = coro.send(None)


 "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 390, in async_remove_entity

await self.entities[entity_id].async_remove()


 "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity.py", line 396, in async_remove

await self.async_will_remove_from_hass()


 "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/automation/__init__.py", line 300, in async_will_remove_from_hass

await super().async_will_remove_from_hass()


 "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/restore_state.py", line 203, in async_will_remove_from_hass

data.async_restore_entity_removed(self.entity_id)


 "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/restore_state.py", line 183, in async_restore_entity_removed

self.entity_ids.remove(entity_id)
KeyError: 'automation.spalnia_knopka_nochnik'
