cancel
Showing results for 
Search instead for 
Did you mean: 
Databricks Free Trial Help
Engage in discussions about the Databricks Free Trial within the Databricks Community. Share insights, tips, and best practices for getting started, troubleshooting issues, and maximizing the value of your trial experience to explore Databricks' capabilities effectively.
cancel
Showing results for 
Search instead for 
Did you mean: 

I’m having trouble connecting to my AWS S3 bucket

lusy26demco
New Contributor

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

 

 

2 REPLIES 2

dineshk
New Contributor II

Can you check your firewall rules in AWS if that is not blocking outgoing requests. 

saisaran_g
Contributor

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 : 

`pip install --upgrade pip`
 
try post this.
 
Happy learning,
Saran
Happy Learning and solve new errors :
Saran