Skip to content

Conversation

@TyMarc
Copy link
Contributor

@TyMarc TyMarc commented Oct 21, 2024

requests > 2.30 uses the urllib3 version 2.X which removed the compatibility for OpenSSL < 1.1.1, but Python 3.9 uses OpenSSL 1.0.2z.

Adding specific versions that will make the SDK compatible with Python 3.9

@isra17
Copy link
Member

isra17 commented Oct 21, 2024

If this really is the fix, it sounds like an issue with requests not properly managing its dependency?

@TyMarc TyMarc force-pushed the mahinse/support_python3_9 branch from bb9a5a2 to 8170de1 Compare October 21, 2024 19:13
@TyMarc
Copy link
Contributor Author

TyMarc commented Oct 21, 2024

@isra17 to me it feels more like Splunk Enterprise not updating their underlying Python version fast enough; 3.9 is old and that OpenSSL version has been outdated for a long time. Requests is doing the right thing as far as I'm concerned

@TyMarc TyMarc force-pushed the mahinse/support_python3_9 branch from 8170de1 to 9fdb856 Compare October 21, 2024 19:19
@aviau
Copy link
Member

aviau commented Oct 21, 2024

Python 3.9 uses OpenSSL 1.0.2z.

Isn't python 3.9 already tested in the CI tho? Can we update the CI matrix to test for your issue?

@TyMarc TyMarc force-pushed the mahinse/support_python3_9 branch from 9fdb856 to cef30e2 Compare October 21, 2024 19:31
@TyMarc TyMarc force-pushed the mahinse/support_python3_9 branch 4 times, most recently from 98b2d50 to 3b2469e Compare October 21, 2024 20:15
@TyMarc TyMarc force-pushed the mahinse/support_python3_9 branch 14 times, most recently from 1e5afe0 to 3645200 Compare October 22, 2024 15:31
Added matrix to test if it also works with urllib3 <2.x
@TyMarc TyMarc force-pushed the mahinse/support_python3_9 branch from 3645200 to a17de78 Compare October 22, 2024 15:45
@TyMarc TyMarc changed the title Added support for Python <= 3.9 Added urllib3 < 2.X compatibility for the Retry object Oct 22, 2024
@TyMarc TyMarc merged commit 3e75427 into main Oct 22, 2024
@TyMarc TyMarc deleted the mahinse/support_python3_9 branch October 22, 2024 15:48
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.

4 participants