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

Python package versions incompatible with code #103

Closed
impaktor opened this issue Oct 12, 2023 · 4 comments
Closed

Python package versions incompatible with code #103

impaktor opened this issue Oct 12, 2023 · 4 comments

Comments

@impaktor
Copy link

impaktor commented Oct 12, 2023

When I run the code/azure-search-vector-python-sample.ipynb notebook, I get:

  1. missing package tenacity (will be fixed by Minor fixes: add missing dependency, use the env var for deployment #91)
  2. Running pip install azure-search-documents --pre installs v. 11.4.0b11, but results in error from the first python code cell ImportError: cannot import name 'Vector' from 'azure.search.documents.models'
  3. according to Python example does not work due to package issue? #72, the following will help
  • pip install azure-search-documents==11.4.0a20230509004 --index-url=https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-python/pypi/simple,
  • but then I get: ImportError: cannot import name 'HnswVectorSearchAlgorithmConfiguration' from 'azure.search.documents.indexes.models'
  1. Running pip install azure-search-documents==11.4.0b6 gives same error as in 3.

I've tried above on both Python 3.11.3, and python 3.9.16. I'm on latest master: d82faba

Any thoughts would be appreciated.

@harpalshergill
Copy link

I have the same issue mentioned above. When Running pip install azure-search-documents --pre I get ImportError: cannot import name 'Vector' from 'azure.search.documents.models'

If I try pip install azure-search-documents==11.4.0b6 then I get ImportError: cannot import name 'HnswVectorSearchAlgorithmConfiguration' from 'azure.search.documents.indexes.models'

Any advice on this would be appreciated. thank you.

@tarockey
Copy link

tarockey commented Oct 16, 2023

+1 facing the same issue.

UPDATE: Fixed it by manually installing pip install azure-search-documents==11.4.0b8 (note the up from 11.4.0b6 to 11.4.0b8)

@farzad528
Copy link
Collaborator

We released an updated pypi version that uses features from our latest REST API version, 2023-10-01-preview. Please use 11.4.0b8 unless otherwise stated in the notebooks. I will update the notebooks to the latest preview API version shortly.

@impaktor
Copy link
Author

Thanks that new version fixed it for me as well. -> closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants