4.82K 浏览
0

api = TqApi() 执行后,发生以下异常信息,请问是什么情况:
环境: mac os +  pycharm + python3.7

SSL handshake failed on verifying the certificate
protocol: <asyncio.sslproto.SSLProtocol object at 0x117db2da0>
transport: <_SelectorSocketTransport fd=10 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/sslproto.py”, line 625, in _on_handshake_complete
raise handshake_exc
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/sslproto.py”, line 189, in feed_ssldata
self._sslobj.do_handshake()
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ssl.py”, line 763, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)
SSL error in data received

0

我再解释一下,因为我是在mac os 环境下运行的,所以无法使用天勤客户端。
上面的代码执行,我是直接通过 pip install 安装的 tqsdk。然后独立于天勤客户端执行的代码,然后就报错了。

您正在查看2个答案中的1个,单击此处查看所有答案。