Azure / azure-sdk-for-python

This repository is for active development of the Azure SDK for Python. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/python/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-python.
MIT License
4.53k stars 2.76k forks source link

ImportError: cannot import name 'AzureOpenAIParameters' from 'azure.search.documents.indexes.models' #36832

Closed TaisukeIto closed 1 week ago

TaisukeIto commented 1 month ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. ImportError: cannot import name 'AzureOpenAIParameters' from 'azure.search.documents.indexes.models' ImportError cannot import name 'AzureOpenAIParameters' from 'azure.search.documents.indexes.models' (/home/taisukeito/.venv/lib/python3.12/site-packages/azure/search/documents/indexes/models/init.py) File "/home/taisukeito/20240809_azure-search-vector-samples/demo-python/code/basic-vector-workflow/azure-search-vector-python-sample.py", line 68, in from azure.search.documents.indexes.models import ( ImportError: cannot import name 'AzureOpenAIParameters' from 'azure.search.documents.indexes.models' (/home/taisukeito/.venv/lib/python3.12/site-packages/azure/search/documents/indexes/models/init.py)

Expected behavior

Screenshots error

Additional context Add any other context about the problem here.

pip install azure-search-documents 11.6.0b4

azure-search-vector-samples\demo-python\code\basic-vector-workflow\azure-search-vector-python-sample.ipynb

github-actions[bot] commented 1 month ago

Thank you for your feedback. Tagging and routing to the team member best able to assist.

xiangyan99 commented 1 month ago

Thanks for reaching out.

Unfortunately, I cannot repro the issue.

Could you try create a new virtual environment and install the package again?

github-actions[bot] commented 1 month ago

Hi @TaisukeIto. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.

wyunchi-ms commented 1 month ago

I meet the same problem:

wyunchi-ms commented 1 month ago

I raised a PR: https://github.com/Azure/azure-search-vector-samples/pull/264 to fix this

github-actions[bot] commented 3 weeks ago

Hi @TaisukeIto, we're sending this friendly reminder because we haven't heard back from you in 7 days. We need more information about this issue to help address it. Please be sure to give us your input. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!