aliyun-sdk-core doesn't work with crpythongraphy
kucharzyk-sebastian opened this issue · 0 comments
kucharzyk-sebastian commented
- Python Version:
python 3.6 - aliyunsdkcore Version:
2.13.36 - API:
Initialization of Function Compute
Yesterday a new 37.0.0 version of cryptography has been released. aliyun-python-sdk-core
doesn't have an upper bound for this version in the setup.py so it started picking cryptography 37.0.0 on pip install aliyun-python-sdk-core
. When a package with aliyun-python-sdk-core
and cryptography 37.0.0 is deployed to Function Compute with Python 3.6, the FC fails with the error below on invoke:
[ERROR] {'errorMessage': "Module initialization error: 'module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK''", 'errorType': 'UserCodeError', 'stackTrace': ["AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'"]}
I believe that aliyun-python-sdk-core
should require cryptography <=37.0.0,