from extractous import Extractor
extractor = Extractor()
# Extract text from a file
result = extractor.extract_file_to_string("Docs\Bug_Demonstration.docx")
print("Result:", result)
I receive the following error:
main.py:7: SyntaxWarning: invalid escape sequence '\B'
result = extractor.extract_file_to_string("Docs\Bug_Demonstration.docx")
TypeError: ParseError("Parse error occurred : TIKA-198: Illegal IOException from org.apache.tika.parser.microsoft.ooxml.OOXMLParser@281b1a01")
When running the following code:
I receive the following error:
The file that caused the error Bug_Demonstration.docx
I expect the code to run normally and extract the content of the file
OS: Windows 11