Traceback (most recent call last):
File “C:\Users\41119\PycharmProjects\untitled\venv\lib\site-packages\urllib3\connectionpool.py”, line 654, in urlopen
conn = self._get_conn(timeout=pool_timeout)
File “C:\Users\41119\PycharmProjects\untitled\venv\lib\site-packages\urllib3\connectionpool.py”, line 274, in _get_conn
return conn or self._new_conn()
File “C:\Users\41119\PycharmProjects\untitled\venv\lib\site-packages\urllib3\connectionpool.py”, line 964, in _new_conn
“Can’t connect to HTTPS URL because the SSL ” “module is not available.”
urllib3.exceptions.SSLError: Can’t connect to HTTPS URL because the SSL module is not available.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “C:\Users\41119\PycharmProjects\untitled\venv\lib\site-packages\requests\adapters.py”, line 449, in send
timeout=timeout
File “C:\Users\41119\PycharmProjects\untitled\venv\lib\site-packages\urllib3\connectionpool.py”, line 720, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File “C:\Users\41119\PycharmProjects\untitled\venv\lib\site-packages\urllib3\util\retry.py”, line 436, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host=’openmd.shinnytech.com’, port=443): Max retries exceeded with url: /t/md/symbols/latest.json (Caused by SSLError(“Can’t connect to HTTPS URL because the SSL module is not available.”))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “C:/Users/41119/PycharmProjects/untitled/woqu.py”, line 7, in <module>
api = TqApi()
File “C:\Users\41119\PycharmProjects\untitled\venv\lib\site-packages\tqsdk\api.py”, line 175, in __init__
self._setup_connection() # 初始化通讯连接
File “C:\Users\41119\PycharmProjects\untitled\venv\lib\site-packages\tqsdk\api.py”, line 963, in _setup_connection
“quotes”: self._fetch_symbol_info(self._ins_url)
File “C:\Users\41119\PycharmProjects\untitled\venv\lib\site-packages\tqsdk\api.py”, line 997, in _fetch_symbol_info
}, timeout=30)
File “C:\Users\41119\PycharmProjects\untitled\venv\lib\site-packages\requests\api.py”, line 75, in get
return request(‘get’, url, params=params, **kwargs)
File “C:\Users\41119\PycharmProjects\untitled\venv\lib\site-packages\requests\api.py”, line 60, in request
return session.request(method=method, url=url, **kwargs)
File “C:\Users\41119\PycharmProjects\untitled\venv\lib\site-packages\requests\sessions.py”, line 533, in request
resp = self.send(prep, **send_kwargs)
File “C:\Users\41119\PycharmProjects\untitled\venv\lib\site-packages\requests\sessions.py”, line 646, in send
r = adapter.send(request, **kwargs)
File “C:\Users\41119\PycharmProjects\untitled\venv\lib\site-packages\requests\adapters.py”, line 514, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host=’openmd.shinnytech.com’, port=443): Max retries exceeded with url: /t/md/symbols/latest.json (Caused by SSLError(“Can’t connect to HTTPS URL because the SSL module is not available.”))
Task was destroyed but it is pending!
task: <Task pending coro=<TqApi._windows_patch() running at C:\Users\41119\PycharmProjects\untitled\venv\lib\site-packages\tqsdk\api.py:1178> cb=[TqApi._on_task_done()]>
Task was destroyed but it is pending!
task: <Task pending coro=<TqApi._notify_watcher() running at C:\Users\41119\PycharmProjects\untitled\venv\lib\site-packages\tqsdk\api.py:1183> cb=[TqApi._on_task_done()]>
sys:1: RuntimeWarning: coroutine ‘TqApi._windows_patch’ was never awaited
sys:1: RuntimeWarning: coroutine ‘TqApi._notify_watcher’ was never awaited