1.66K 浏览
0

原来程序运行正常的.

但升级为2.8.5后,出现错误:

ready connect tr/md server…
Traceback (most recent call last):
File “MSAaitl.py”, line 3746, in <module>
File “MSAaitl.py”, line 1451, in main
File “site-packages\tqsdk\api.py”, line 283, in __init__
File “site-packages\tqsdk\api.py”, line 2912, in _setup_connection
File “lzma.py”, line 301, in open
File “lzma.py”, line 120, in __init__
FileNotFoundError: [Errno 2] No such file or directory: ‘C:\\Users\\Administrato
r\\AppData\\Local\\Temp\\_MEI100042\\tqsdk\\expired_quotes.json.lzma’
[9688] Failed to execute script MSAaitl
Task was destroyed but it is pending!
task: <Task pending name=’Task-1′ coro=<TqBaseApi._windows_patch() running at si
te-packages\tqsdk\baseApi.py:98> cb=[TqBaseApi._on_task_done()]>
Task was destroyed but it is pending!
task: <Task pending name=’Task-2′ coro=<TqApi._notify_watcher() running at site-
packages\tqsdk\api.py:3348> cb=[TqBaseApi._on_task_done()]>
sys:1: RuntimeWarning: coroutine ‘TqBaseApi._windows_patch’ was never awaited
sys:1: RuntimeWarning: coroutine ‘TqApi._notify_watcher’ was never awaited

啥原因?如何解决?

ringo 已回答的问题 2021年9月13日