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

AttributeError: module 'pdfminer.high_level' has no attribute 'extract_text'" #297

Open
subhrajit-mohanty opened this issue Jan 20, 2025 · 0 comments

Comments

@subhrajit-mohanty
Copy link

I am getting the following issue when I was trying to extract the attached

Interstallar.pdf

PDF.

FileConversionException: Could not convert 'Interstallar.pdf' to Markdown. File type was recognized as ['.pdf', '.pdf', '.fdf']. While converting the file, the following error was encountered:

Traceback (most recent call last):
  File "/opt/miniconda/envs/py311/lib/python3.11/site-packages/markitdown/_markitdown.py", line 1239, in _convert
    res = converter.convert(local_path, **_kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/miniconda/envs/py311/lib/python3.11/site-packages/markitdown/_markitdown.py", line 490, in convert
    text_content=pdfminer.high_level.extract_text(local_path),
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'pdfminer.high_level' has no attribute 'extract_text'
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

1 participant