an issue when trying to connect to my AWS S3 bucket from my local Python environment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2025 04:26 AM
Hi everyone,
I’m having an issue when trying to connect to my AWS S3 bucket from my local Python environment using the boto3 library.
import boto3
s3 = boto3.client('s3')
response = s3.list_objects_v2(Bucket='my-bucket-name')
print(response)
I keep getting the following error:
botocore.exceptions.SSLError: Can't connect to HTTPS URL because the SSL module is not available.
I’ve already set up my AWS credentials using aws configure, but this error persists. I’m not sure if it’s an issue with my Python setup or something else.
Has anyone encountered this error before? Any ideas on how I can resolve it?
Thanks so much for your help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2025 04:32 AM
Hi @grisma56giga,
The error typically indicates that your Python environment does not have SSL support enabled
Can you run to validate:
import ssl
print(ssl.OPENSSL_VERSION)