Warning message from tika python module using the unpack method

Python in C/C++ embedden, C-Module, ctypes, Cython, SWIG, SIP etc sind hier richtig.
Antworten
katherineamt
User
Beiträge: 1
Registriert: Montag 12. November 2018, 06:05

I'm currently using tika to extract the text from pdf files. I found a very fast method within the tika module. This method is called unpack. This is my code:

Code: Alles auswählen

from tika import unpack

text = unpack.from_file('example.pdf')['content']
However, once in a while (not always!) I get this warning:

Code: Alles auswählen

2018-11-02 15:30:25,533 [MainThread ] [WARNI] Failed to see startup log message; retrying...
After retrying the code starts to work. However, I don't understand the warning and also it takes time to retry. Anyone has an idea why I get this warning?

Any help here is appreciated.
__deets__
User
Beiträge: 14494
Registriert: Mittwoch 14. Oktober 2015, 14:29

Sounds like a network issue of some sort. Is your Tika Server ob the same machine?
Antworten