You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from haystack.components.converters import PDFMinerToDocument ImportError: cannot import name 'PDFMinerToDocument' from 'haystack.components.converters'
#7916
Open
MikeRecognex opened this issue
Jun 23, 2024
· 1 comment
I am importing the library as follows in my code (also per instructions)
from haystack.components.converters import PDFMinerToDocument
The error message I receive is:
Traceback (most recent call last):
File "/Users/michaeldoyle/Scratch/Streamlit/NetworkHTMLtoMongoPDFERRORS.py", line 15, in
from haystack.components.converters import PDFMinerToDocument
ImportError: cannot import name 'PDFMinerToDocument' from 'haystack.components.converters' (/Users/michaeldoyle/Scratch/Streamlit/haystack_env/lib/python3.9/site-packages/haystack/components/converters/init.py)
Describe the bug
As per the instructions at https://docs.haystack.deepset.ai/docs/pdfminertodocument I have installed pdfminer.six using pip install pdfminer.six
I am importing the library as follows in my code (also per instructions)
from haystack.components.converters import PDFMinerToDocument
The error message I receive is:
Traceback (most recent call last):
File "/Users/michaeldoyle/Scratch/Streamlit/NetworkHTMLtoMongoPDFERRORS.py", line 15, in
from haystack.components.converters import PDFMinerToDocument
ImportError: cannot import name 'PDFMinerToDocument' from 'haystack.components.converters' (/Users/michaeldoyle/Scratch/Streamlit/haystack_env/lib/python3.9/site-packages/haystack/components/converters/init.py)
To Reproduce
I have tried running the example in https://docs.haystack.deepset.ai/docs/pdfminertodocument and get same error.
Describe your environment (please complete the following information):
Mac Sonoma, M1 Pro
Haystack version: haystack-ai 2.0.1
haystack-bm25 1.0.2
haystack-pydoc-tools 0.2.0
Integration version: pdfminer.six 20231228
The text was updated successfully, but these errors were encountered: