007gzs / dingtalk-sdk

钉钉 dingding Python SDK。 DingTalk SDK for Python http://dingtalk-sdk.readthedocs.io/zh_CN/latest/
GNU General Public License v3.0
183 stars 56 forks source link

AttributeError: 'module' object has no attribute '_create_unverified_context' #6

Closed donhui closed 5 years ago

donhui commented 5 years ago

python 2.7.8(pip 9.0.1)安装时报错, AttributeError: 'module' object has no attribute '_create_unverified_context'

修改了setup.py安装成功

try: _create_unverified_https_context = ssl._create_unverified_context except AttributeError:

Legacy Python that doesn't verify HTTPS certificates by default

pass

else:

Handle target environment that doesn't support HTTPS verification

ssl._create_default_https_context = _create_unverified_https_context
007gzs commented 5 years ago

1.1.8版本中修复