Skip to content

elasticsearch-py 7.17 urllib3 version 2 support #2216

Open
@buffer

Description

@buffer

Hi,
I am required to still run ES 7 in my environment and so I have to rely on elasticsearch-py 7.17 for my Python stuff. While upgrading requests to the latest version I noticed a urllib3 dependency conflict. It seems like elasticsearch-py 7.17 pins urllib3 version to be < 2 while requests 2.30.0 would like to install urllib3 version 2. Do you think it 's possible to modify the setup.py file so to use urllib3 version 2?

The branch 7.17 setup.py file looks like

install_requires = [
    "urllib3>=1.21.1, <2",
    "certifi",
]

and it should be modified this way

install_requires = [
    "urllib3>=1.21.1, <3",
    "certifi",
]

Thanks!

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