-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Cannot use OpenAIGenerator or HuggingFaceLocalGenerator on Databricks - package conflict? #7751
Comments
Hey! The issue seems similar to this stack overflow thread. Which version of (probably a duplicate of #7647) |
I tried |
Has the new version of If yes, can you force reinstalling Haystack and restarting the kernel (IDK if this is feasible on databricks)? |
Describe the bug
While importing
from haystack.components.generators import OpenAIGenerator
orfrom haystack.components.generators import HuggingFaceLocalGenerator
on Databricks Runtime 14.3 LTS or 15.1 ML you get an error:Error message
Error that was thrown (if available)
Expected behavior
cannot import name 'Iterator' from 'typing_extensions' (/databricks/python/lib/python3.10/site-packages/typing_extensions.py)
Additional context
Full list of Python dependencies available in Databricks is listed here: https://docs.databricks.com/en/release-notes/runtime/14.3lts.html
To Reproduce
Provision a Databricks cluster and install the newest verstion of haystack-ai using pip.
FAQ Check
The text was updated successfully, but these errors were encountered: