Skip to content

Commit b08875e

Browse files
author
liuhuiqi.7
committed
feat(arkruntime): version check
1 parent b445df3 commit b08875e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

volcenginesdkarkruntime/_utils/_key_agreement.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ def marshal_cryptography_pub_key(key) -> bytes:
6969
class 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
)

0 commit comments

Comments
 (0)