Tika throwing AttributeError through python on windows

  apache-tika, pdf, python, windows

Tika throwing AttributeError through python on windows

pdf=parser.from_file("Sample.pdf")
print(pdf['content'])

I am trying to use the Tika module for python to read a pdf file (above code) however the following error is thrown:
AttributeError: module ‘os’ has no attribute ‘setsid’
From my understanding setsid is only available in unix and I am on windows. Does this mean i cannot use tika or is there a way around this?


Source: StackOverflow

LEAVE A COMMENT