Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't process docx files even though docx2txt is installed #521

Open
ShvetsIvan opened this issue Jul 31, 2024 · 1 comment
Open

Can't process docx files even though docx2txt is installed #521

ShvetsIvan opened this issue Jul 31, 2024 · 1 comment

Comments

@ShvetsIvan
Copy link

Hello,

I am trying to use textract to do the obvious with docx files in a AWS Lambda using python. Textract library is included in the package, as is the dependency - docx2txt. I try getting the text out of the file, but still getting the ExtensionNotSupported stating that docx is not supported. I tried putting the doc2txt library in the parsers folder too - didn't help.

image

Using:

  • Textract version 1.6.3
  • Python version 3.11
  • AWS Lambda function
@phil-scholarcy
Copy link

phil-scholarcy commented Aug 16, 2024

Is the file definitely a docx file and not a .doc file masquerading as one? I find there can be issues with the following scenarios:

  1. A .docx file is given a .doc extension
  2. A .doc file is given a .docx extension

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants