Tuesday, 6 November 2018

Warning message from tika python module using the unpack method

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:

from tika import unpack

text = unpack.from_file('example.pdf')['content']

However, once in a while (not always!) I get this warning:

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?

This is the github page: https://github.com/chrismattmann/tika-python



from Warning message from tika python module using the unpack method

No comments:

Post a Comment