opensearch-project / opensearch-py

Python Client for OpenSearch
https://opensearch.org/docs/latest/clients/python/
Apache License 2.0
350 stars 175 forks source link

[BUG] Versioning conflict urllib3 #464

Closed boehb-efs closed 1 year ago

boehb-efs commented 1 year ago

What is the bug?

When I start my script, which uses opensearch-py 2.2.0 (same with 2.3.0) and python-keycloak (version 2.16.3), I get an error, that urllib3 2.0.4 is not found. No such file or directory: '/opt/conda/lib/python3.11/site-packages/urllib3-2.0.4.dist-info/METADATA' Is there a (conscious) reason, that opensearch-py prevents from using urllib3 >= 2? https://github.com/opensearch-project/opensearch-py/blob/1532b06ec2adeecbf28c78fe67f463a67179a1a7/setup.py#L53C1-L53C1

This can easily lead to conflicts with other libraries!

How can one reproduce the bug?

python -m pip install superb-data-klient

import superbdataklient as sdk

client = sdk.SDKClient(env='sdk-dev')

However it appears to run, if executed a second time.

What is the expected behavior?

No versioning conflicts.

Do you have any screenshots?

Further informations see attachments. install.log client_init.log