pyca/pyopenssl

TypeError: deprecated() got an unexpected keyword argument 'name'

Meghana-Naik-Nice opened this issue · 3 comments

Using the following library versions:
snowflake-connector-python==3.0.1
cryptography==39.0.2
pyopenssl==23.0.0
chalice==1.26.4

Getting the below error:
TypeError: deprecated() got an unexpected keyword argument 'name'

Please provide a reproducer in a fresh virtual environment and a full stack trace to help us debug.

import snowflake.connector",
from .connection import SnowflakeConnection",
" File "<>/snowflake/connector/connection.py", line 27, in ", " from . import errors, proxy",
" File "<>/snowflake/connector/errors.py", line 18, in ", " from .telemetry_oob import TelemetryService", "
File "<>/snowflake/connector/telemetry_oob.py", line 21, in ", " from .vendored import requests", "
File "<>/snowflake/connector/vendored/requests/init.py", line 119, in ", " from ..urllib3.contrib import pyopenssl", "
File "<>/snowflake/connector/vendored/urllib3/contrib/pyopenssl.py", line 50, in ", " import OpenSSL.SSL", "
File "<>/OpenSSL/init.py", line 8, in ", " from OpenSSL import SSL, crypto", "
File "<>/OpenSSL/SSL.py", line 19, in ", " from OpenSSL.crypto import (", "
File "<>/OpenSSL/crypto.py", line 3261, in ", " name="load_pkcs7_data",", "TypeError: deprecated() got an unexpected keyword argument 'name'"

I'm using Python 3.7.9

Thank you for the stack trace, but you still haven't provided a mechanism to reproduce this error. The stack you've provided strongly suggests that your code is not importing the version of cryptography you think you're importing as deprecated has the name kwarg in 37+, but not earlier versions.