2.77K 浏览
0

最简单的测试程序,VS Code版本1.45,显示SSLError。

看到教程中有需要访问https://openmd.shinnytech.com/t/md/front/mobile,可是我这边显示Bad request.

详细的error:

C:\Users\itm>python
Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 22:45:29) [MSC v.1916 32 bit (Intel)] on win32
Type “help”, “copyright”, “credits” or “license” for more information.
>>> import tqsdk
在使用天勤量化之前,默认您已经知晓并同意以下免责条款,如果不同意请立即停止使用:https://www.shinnytech.com/blog/disclaimer/
>>> tqsdk.TqApi()
Traceback (most recent call last):
File “<stdin>”, line 1, in <module>
File “C:\Users\itm\AppData\Local\Programs\Python\Python38-32\lib\site-packages\tqsdk\api.py”, line 249, in __init__
if not self.wait_update(deadline=deadline): # 等待连接成功并收取截面数据
File “C:\Users\itm\AppData\Local\Programs\Python\Python38-32\lib\site-packages\tqsdk\api.py”, line 878, in wait_update
self._run_until_idle()
File “C:\Users\itm\AppData\Local\Programs\Python\Python38-32\lib\site-packages\tqsdk\api.py”, line 1532, in _run_until_idle
self._run_once()
File “C:\Users\itm\AppData\Local\Programs\Python\Python38-32\lib\site-packages\tqsdk\api.py”, line 1525, in _run_once
raise self._exceptions.pop(0)
File “C:\Users\itm\AppData\Local\Programs\Python\Python38-32\lib\site-packages\tqsdk\api.py”, line 1589, in _connect
ssl_context = ssl.create_default_context()
File “C:\Users\itm\AppData\Local\Programs\Python\Python38-32\lib\ssl.py”, line 750, in create_default_context
context.load_default_certs(purpose)
File “C:\Users\itm\AppData\Local\Programs\Python\Python38-32\lib\ssl.py”, line 574, in load_default_certs
self._load_windows_store_certs(storename, purpose)
File “C:\Users\itm\AppData\Local\Programs\Python\Python38-32\lib\ssl.py”, line 566, in _load_windows_store_certs
self.load_verify_locations(cadata=certs)
ssl.SSLError: nested asn1 error (_ssl.c:4114)

NULL NULL 问的问题 2020年5月11日