pyca / pyopenssl

A Python wrapper around the OpenSSL library
https://pyopenssl.org/
Apache License 2.0
887 stars 421 forks source link

deprecated() got an unexpected keyword argument 'name' #1151

Closed yagodorea closed 2 years ago

yagodorea commented 2 years ago

Started getting this error today after release 22.1.0:

[...]
  File "/usr/local/lib/python3.8/site-packages/OpenSSL/SSL.py", line 19, in <module>
    from OpenSSL.crypto import (
  File "/usr/local/lib/python3.8/site-packages/OpenSSL/crypto.py", line 3224, in <module>
    utils.deprecated(
TypeError: deprecated() got an unexpected keyword argument 'name'
alex commented 2 years ago

What version of cryptography do you have installed?

yagodorea commented 2 years ago

What version of cryptography do you have installed?

36.0.2

alex commented 2 years ago

I'm not sure how you installed pyOpenSSL, but 22.1.0 has a minimum requirement of cryptography 38.

yagodorea commented 2 years ago

My dependency chain is snowflake-sqlalchemy->snowflake-connector-python->pyopenssl. It updated to 22.1.0 automatically, without changing criptography version... Will try to understand why, thanks!

aisk commented 2 years ago

@yagodorea You can try to run pip check to see if there were some dependencies versions conflicts.