Skip to content

dependency incompatibility: requests (latest:2.30.0), urllib3>=2.0.0 #11419

@jayaddison

Description

@jayaddison

Describe the bug

Currently the requests library, as of version 2.30.0 (self-correction: this should have been 'as of version 2.29.0'; I had not read some of the updates in the linked thread), does not support urllib3 versions greater than 2.0.0 - including the most recent urllib3 releases on PyPi.

Sphinx doesn't have any explicit dependencies on urllib3, so it's pulled in by default during pip install and uses the latest-available-version.

How to Reproduce

The test failures (request timeouts) in #11392 appear to be related to this incompatibility.

Placing an upper-bound constraint on the urllib3 version to avoid 2.x package installs (for example, urllib3<2.0.0) resolves the failures; I'll push a demonstration commit to the pull request branch to illustrate that.

Environment Information

Platform:              linux; (Linux-6.1.0-9-amd64-x86_64-with-glibc2.36)
Python version:        3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0])
Python implementation: CPython
Sphinx version:        7.0.1+/824202e99
Docutils version:      0.19
Jinja2 version:        3.1.2
Pygments version:      2.15.1

Sphinx extensions

N/A

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions