I am connecting to databricks SQL warehouse for the first time on my local machine (MacOS Venture 13.2.1) via Python 3.11
from databricks import sql
import os
connection = sql.connect(
server_hostname = "hostname",
http_path = "http path",
access_token = "token")
cursor = connection.cursor()
cursor.execute("SELECT * from range(10)")
print(cursor.fetchall())
cursor.close()
connection.close()
and I get the following error in the first connection line:
RequestError: Error during request to server: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:992)
I tried many of the solutions found here with no luck:certificate verify failed: unable to get local issuer certificate
This is a pretty fresh comptuer and Python install, so perhaps I'm missing something?