`ImportError: urllib3 v2 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'OpenSSL 1.0.2k-fips'`
AdvancedTroubleshootingboto3, HTTP & API errors
Answer
Likely causes → An old system Python (Amazon Linux 2, CentOS 7) linked against OpenSSL 1.0.2, with a fresh install pulling urllib3 2.x.
Diagnose →
python -c "import ssl; print(ssl.OPENSSL_VERSION)"
pip show urllib3 | grep Version
Fix → Use a modern Python (container, uv python install, newer OS like Amazon Linux 2023). As a short-term workaround, pin urllib3<2.
Prevent → Do not build on end-of-life OS Pythons; Amazon Linux 2 itself reached end of support on 30 June 2026.
More on boto3, HTTP & API errors
`botocore.exceptions.NoCredentialsError: Unable to locate credentials`Beginner`botocore.exceptions.NoRegionError: You must specify a region.` even though `AWS_REGION` is set.Intermediate`botocore.exceptions.ClientError: An error occurred (UnauthorizedOperation) when calling the DescribeInstances operation: You are not authorized to perform this operation.`Beginner`An error occurred (ExpiredToken) when calling the ... operation: The security token included in the request is expired` midway through a long job.Advanced`An error occurred (RequestLimitExceeded) when calling the DescribeInstances operation (reached max retries: 4): Request limit exceeded.`Intermediate`An error occurred (InvalidClientTokenId) when calling the GetCallerIdentity operation: The security token included in the request is invalid.`Beginner