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: 

an issue when trying to connect to my AWS S3 bucket from my local Python environment

grisma56giga
New Contributor

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!

 

1 REPLY 1

Alberto_Umana
Databricks Employee
Databricks Employee

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)

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now