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)

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonā€™t want to miss the chance to attend and share knowledge.

If there isnā€™t a group near you, start one and help create a community that brings people together.

Request a New Group