I’m having trouble connecting to my AWS S3 bucket
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2025 10:01 PM
Hello,
I’m having trouble connecting to my AWS S3 bucket from my local Python environment using boto3. When I try to run the following code:
import boto3
s3 = boto3.client('s3')
response = s3.list_objects_v2(Bucket='my-bucket-name')
print(response)
error message:
botocore.exceptions.SSLError: Can't connect to HTTPS URL because the SSL module is not available.
I’ve already run aws configure to set up my credentials, but I’m still seeing this error. I’m not sure if this is an issue with my Python installation, SSL configuration, or something else.
Thanks for any insights or suggestions!
Best Regard,
Lusy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2025 10:20 PM
Can you check your firewall rules in AWS if that is not blocking outgoing requests.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2025 10:56 AM
Hello Mate,
Are you trying from databricks notebook? if so can you share the dbr version ?
If not, you can install the below code :
import ssl
print(ssl.OPENSSL_VERSION)
and update the pip package :
Saran