Skip to content

Clarify missing X509 context dependencies - #419

Open
Aschenbath wants to merge 1 commit into
requests:mainfrom
Aschenbath:codex/x509-context-error-371
Open

Aschenbath wants to merge 1 commit into
requests:mainfrom
Aschenbath:codex/x509-context-error-371

Conversation

@Aschenbath

Copy link
Copy Markdown

When urllib3's PyOpenSSLContext cannot be imported, X509Adapter reports that Requests is too old even if it meets the minimum version. Check the Requests version separately and identify the missing context and dependencies in the error message, while preserving VersionMismatchError. Add constructor regressions and troubleshooting guidance.

Closes #371.

Validation on Windows with Python 3.12.12, Requests 2.34.2, urllib3 2.8.0, pyOpenSSL 26.4.0 and cryptography 50.0.2:

  • Three missing-context regression cases fail on the original code. All five new tests, including old-version and available-context controls, pass with -W error::DeprecationWarning.
  • The complete strict suite reports 144 passed, 5 skipped, 27 failed. All 27 failure identities and messages also occur on the baseline; comparing JUnit reports finds no new failures. These include dependency deprecations in Betamax and pyOpenSSL.
  • With default warning handling, all X509 tests pass: 7 passed, 1 skipped, including the existing PEM/DER cassette tests; six dependency warnings remain.
  • Project Flake8 and git diff --check pass. Sphinx generates HTML with the same single get_html_theme_path deprecation on baseline and patch; the warnings-as-errors build therefore exits nonzero on both.

The legacy interpreter matrix was not run. OpenAI Codex assisted with investigation, implementation, tests and this description.

A missing urllib3 PyOpenSSLContext was reported as an old Requests
version even when the installed version met the minimum requirement.

Check the version separately and identify missing dependency support.
Add constructor regressions and dependency troubleshooting guidance.

Closes requests#371
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

Successfully merging this pull request may close these issues.

Requests Version MisMatchError

1 participant