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

Installation issues on Databricks #7647

Open
1 task
lukasz-kastelik opened this issue May 3, 2024 · 0 comments
Open
1 task

Installation issues on Databricks #7647

lukasz-kastelik opened this issue May 3, 2024 · 0 comments
Labels
P2 Medium priority, add to the next sprint if no P1 available

Comments

@lukasz-kastelik
Copy link

Describe the bug
I am trying to run a simple pipeline on Databricks ML runtime 14.3 LTS
I installed haystack using pip install haystack-ai and during import:
from haystack.components.embedders import SentenceTransformersDocumentEmbedder

Error message
ImportError: cannot import name 'Iterator' from 'typing_extensions' (/databricks/python/lib/python3.10/site-packages/typing_extensions.py)
File , line 12
10 from haystack.components.retrievers.in_memory import InMemoryEmbeddingRetriever
11 from haystack import Document
---> 12 from haystack.components.embedders import SentenceTransformersDocumentEmbedder
image

Expected behavior
Import works just fine

Additional context
No preprocessing was done.

To Reproduce
Create a databricks cluster with 14.3 ML LTS runtime, use default configuration, run pip install haystack-ai

FAQ Check

System:
Databricks 14.3 LTS ML (runtime details are available in the official docs)

@masci masci added P1 High priority, add to the next sprint P2 Medium priority, add to the next sprint if no P1 available and removed P1 High priority, add to the next sprint labels May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 Medium priority, add to the next sprint if no P1 available
Projects
None yet
Development

No branches or pull requests

2 participants