I have a simple python script that uses the snowflake python connector to connect and call a Snowflake stored procedure. The script has been running fine through datababricks but I am getting the following error now when creating a connection object (ctx). It runs fine from my laptop using Jupyter notebook but not through databricks anymore. Using Python 3.
ssl_wrap_socket_with_ocsp() got an unexpected keyword argument 'cert_reqs'
Here's my code:
import snowflake.connector as sc
Username = dbutils.secrets.get(scope = "SnowFlake", key = "username")
Password = dbutils.secrets.get(scope = "SnowFlake", key = "password")
ctx = sc.connect(
account='myaccount',
user=Username,
password=Password,
warehouse='myWH',
database='myDB',
schema='Public'
)