:mag: AI orchestration framework to build customizable, production-ready LLM applications. Connect components (models, vector DBs, file converters) to pipelines or agents that can interact with your data. With advanced retrieval methods, it's best suited for building RAG, question answering, semantic search or conversational agent chatbots.
from haystack.components.converters import PDFMinerToDocument ImportError: cannot import name 'PDFMinerToDocument' from 'haystack.components.converters' #7916
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