File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
volcenginesdkarkruntime/_utils Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -69,13 +69,13 @@ def marshal_cryptography_pub_key(key) -> bytes:
6969class key_agreement_client :
7070 def __init__ (self , certificate_pem_string : str ) -> None :
7171 """Load cert and extract public key"""
72- __fixed_version__ = "43 .0.3 " # version check
72+ __fixed_version__ = "42 .0.0 " # version check
7373 from cryptography import __version__
7474
75- if __version__ != __fixed_version__ :
75+ if __version__ < __fixed_version__ :
7676 raise Exception (
77- "The cryptography package of Ark SDK only supports version {}, "
78- " please install the cryptography package by using pip install cryptography== {}" .format (
77+ "The cryptography package of Ark SDK only supports versions after {}, "
78+ ' please install the cryptography package by using pip install " cryptography>= {}"' .format (
7979 __fixed_version__ , __fixed_version__
8080 )
8181 )
You can’t perform that action at this time.
0 commit comments