aws / aws-lambda-base-images

Apache License 2.0
647 stars 107 forks source link

Python 3.8 runtime throws ImportModuleError when using urllib3 #98

Open reshab48 opened 1 year ago

reshab48 commented 1 year ago

urllib3 has been updated to v2 and support for OpenSSL <1.1.1 has been has been removed, check here

Python 3.8 runtime is using OpenSSL 1.0.2k-fips 26 Jan 2017 which is not supported in urllib3 v2

Error log:

urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with OpenSSL 1.0.2k-fips  26 Jan 2017. See: https://github.com/urllib3/urllib3/issues/2168
emrehayirci commented 8 months ago

This issue also mentioned here https://urllib3.readthedocs.io/en/latest/v2-migration-guide.html#ssl-module-is-compiled-with-openssl-1-0-2-k-fips