Skip to content

Python package versions incompatible with code #103

@impaktor

Description

@impaktor

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions