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

Fix exception error message #335

Open
wajdikhattel opened this issue May 21, 2020 · 0 comments · May be fixed by #336
Open

Fix exception error message #335

wajdikhattel opened this issue May 21, 2020 · 0 comments · May be fixed by #336

Comments

@wajdikhattel
Copy link

Describe the bug
When you don't have one of the dependencies of the parsers installed, you will get the ExtensionNotSupported exception even though the extension exists.
Example (#333): with .pptx and not having the package Image:

ExtensionNotSupported: The filename extension .pptx is not yet supported by
textract. Please suggest this filename extension here:

https://github.com/deanmalmgren/textract/issues
Available extensions include: .csv, .doc, .docx, .eml, .epub, .gif, .htm, .html, .jpeg, .jpg, .json, .log, .mp3, .msg, .odt, .ogg, .pdf, .png, .pptx, .ps, .psv, .rtf, .tff, .tif, .tiff, .tsv, .txt, .wav, .xls, .xlsx

To Reproduce

  1. Use a supported extension (.pptx for example)
  2. Have one of the dependencies of that extension's parser not installed (Image for example)
  3. Run the textract.process(...) function
  4. See the error telling you that the extension is not supported

Expected behavior
An error saying that you need to install the missing dependency.

Desktop (please complete the following information):

  • OS: [e.g. Windows 10] Manjaro Linux 20.0.1
  • Textract version [e.g. 1.6.3] 1.6.3
  • Python version [e.g. 3.7] 3.6
  • Virtual environment (yes/no) yes
@wajdikhattel wajdikhattel linked a pull request May 21, 2020 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant