ImportError: cannot import name 'PipelineSchemaError' from 'haystack.errors' #7747
Replies: 5 comments 1 reply
-
Hey @mandar-gite where did you find this class PipelineSchemaError - somewhere in docs? haystack-ai 2.1.1 doesn't have such a class |
Beta Was this translation helpful? Give feedback.
-
Hi @vblagoje |
Beta Was this translation helpful? Give feedback.
-
`## Retrieves best matching documents from the document store from haystack_integrations.document_stores.opensearch import OpenSearchDocumentStore from docstore import get_embedding_model document_store = OpenSearchDocumentStore( embedding_model = get_embedding_model() def get_retriever(): def get_text_embedder(): def retrieve(query):
retrieve('')` gives the error File �[0;32m/media/F/machine_learning/cascade_1.2/docstore.py:4�[0m File �[0;32m/media/F/machine_learning/cascade_1.2/cascade_1.2_venv/lib/python3.10/site-packages/haystack/document_stores/opensearch.py:11�[0m File �[0;32m/media/F/machine_learning/cascade_1.2/cascade_1.2_venv/lib/python3.10/site-packages/haystack/document_stores/filter_utils.py:6�[0m File �[0;32m/media/F/machine_learning/cascade_1.2/cascade_1.2_venv/lib/python3.10/site-packages/haystack/document_stores/utils.py:9�[0m File �[0;32m/media/F/machine_learning/cascade_1.2/cascade_1.2_venv/lib/python3.10/site-packages/haystack/nodes/init.py:1�[0m File �[0;32m/media/F/machine_learning/cascade_1.2/cascade_1.2_venv/lib/python3.10/site-packages/haystack/nodes/base.py:11�[0m �[0;31mImportError�[0m: cannot import name 'PipelineSchemaError' from 'haystack.errors' (/media/F/machine_learning/cascade_1.2/cascade_1.2_venv/lib/python3.10/site-packages/haystack/errors.py) |
Beta Was this translation helpful? Give feedback.
-
@mandar-gite this is haystack 1.x and it could be that you have somehow installed both old and new haystack. Please start with a clean new env and report back. |
Beta Was this translation helpful? Give feedback.
-
Yeah , It worked fine after i completely shifted to haystack ai. Thank you! |
Beta Was this translation helpful? Give feedback.
-
ImportError: cannot import name 'PipelineSchemaError' from 'haystack.errors' (/home/mandar/miniconda3/envs/cascade/lib/python3.12/site-packages/haystack/errors.py)
installed packages:
haystack-ai 2.1.1
haystack-bm25 1.0.2
used pip to installed these libraries
Beta Was this translation helpful? Give feedback.
All reactions