209 浏览
0

File “C:\python\lib\site-packages\tqsdk\api.py”, line 316, in __init__
if not self.wait_update(deadline=deadline): # 等待连接成功并收取截面数据
File “C:\python\lib\site-packages\tqsdk\api.py”, line 1912, in wait_update
return self._wait_update(deadline=deadline, _task=_task)
File “C:\python\lib\site-packages\tqsdk\api.py”, line 1942, in _wait_update
self._run_until_task_done(task=update_task, deadline=deadline)
File “C:\python\lib\site-packages\tqsdk\baseApi.py”, line 115, in _run_until_task_done
self._run_once()
File “C:\python\lib\site-packages\tqsdk\baseApi.py”, line 84, in _run_once
raise self._exceptions.pop(0)
File “C:\python\lib\site-packages\tqsdk\connect.py”, line 162, in _run
async with websockets.connect(url, **self._keywords) as client:
File “C:\python\lib\site-packages\websockets\legacy\client.py”, line 604, in __aenter__
return await self
File “C:\python\lib\site-packages\websockets\legacy\client.py”, line 622, in __await_impl__
transport, protocol = await self._create_connection()
File “C:\python\lib\asyncio\base_events.py”, line 1080, in create_connection
transport, protocol = await self._create_connection_transport(
File “C:\python\lib\asyncio\base_events.py”, line 1098, in _create_connection_transport
protocol = protocol_factory()
File “C:\python\lib\site-packages\tqsdk\connect.py”, line 75, in __init__
super(TqWebSocketClientProtocol, self).__init__(*args, **kwargs)
File “C:\python\lib\site-packages\websockets\legacy\client.py”, line 160, in __init__
super().__init__(**kwargs)
File “C:\python\lib\site-packages\websockets\legacy\protocol.py”, line 154, in __init__
self._drain_lock = asyncio.Lock(
File “C:\python\lib\asyncio\locks.py”, line 77, in __init__
super().__init__(loop=loop)
File “C:\python\lib\asyncio\mixins.py”, line 17, in __init__
raise TypeError(
TypeError: As of 3.10, the *loop* parameter was removed from Lock() since it is no longer necessary

我用的是3.10版本的python 然后好像冲突了?但是我已经升级了天勤,还是会报错

ringo 已回答的问题 2024年11月20日
0

卸载tqsdk再升级试一试

ringo 已回答的问题 2024年11月20日