680 浏览
0

File "C:\Users\friendmiao\AppData\Local\Programs\Python\Python39\lib\site-packages\tqsdk\api.py", line 294, in __init__      
if not self.wait_update(deadline=deadline):  # 等待连接成功并收取截面数据
  File "C:\Users\friendmiao\AppData\Local\Programs\Python\Python39\lib\site-packages\tqsdk\api.py", line 1874, in wait_update      
    if not self.wait_update(deadline=deadline):  # 等待连接成功并收取截面数据
  File "C:\Users\friendmiao\AppData\Local\Programs\Python\Python39\lib\site-packages\tqsdk\api.py", line 1874, in wait_update      
    self._run_until_idle(async_run=False)
  File "C:\Users\friendmiao\AppData\Local\Programs\Python\Python39\lib\site-packages\tqsdk\baseApi.py", line 67, in _run_until_idle
    self._run_until_idle(async_run=False)
  File "C:\Users\friendmiao\AppData\Local\Programs\Python\Python39\lib\site-packages\tqsdk\baseApi.py", line 67, in _run_until_idle
    self._run_once()
  File "C:\Users\friendmiao\AppData\Local\Programs\Python\Python39\lib\site-packages\tqsdk\baseApi.py", line 57, in _run_once      
        raise self._exceptions.pop(0)self._run_once()
   File "C:\Users\friendmiao\AppData\Local\Programs\Python\Python39\lib\site-packages\tqsdk\connect.py", line 143, in _run
  File "C:\Users\friendmiao\AppData\Local\Programs\Python\Python39\lib\site-packages\tqsdk\baseApi.py", line 57, in _run_once
    async with websockets.connect(url, **self._keywords) as client:
      File "C:\Users\friendmiao\AppData\Local\Programs\Python\Python39\lib\site-packages\websockets\legacy\client.py", line 604, in __aenter__
raise self._exceptions.pop(0)
  File "C:\Users\friendmiao\AppData\Local\Programs\Python\Python39\lib\site-packages\tqsdk\connect.py", line 143, in _run
    return await self
  File "C:\Users\friendmiao\AppData\Local\Programs\Python\Python39\lib\site-packages\websockets\legacy\client.py", line 622, in __await_impl__
        transport, protocol = await self._create_connection()
  File "C:\Users\friendmiao\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 1017, in create_connection
async with websockets.connect(url, **self._keywords) as client:
  File "C:\Users\friendmiao\AppData\Local\Programs\Python\Python39\lib\site-packages\websockets\legacy\client.py", line 604, in __aenter__
    infos = await self._ensure_resolved(    return await self
  File "C:\Users\friendmiao\AppData\Local\Programs\Python\Python39\lib\site-packages\websockets\legacy\client.py", line 622, in __await_impl__
   File "C:\Users\friendmiao\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 1396, in _ensure_resolved
    return await loop.getaddrinfo(host, port, family=family, type=type,
  File "C:\Users\friendmiao\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 856, in getaddrinfo
    return await self.run_in_executor(
    transport, protocol = await self._create_connection()
  File "C:\Users\friendmiao\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 1017, in create_connection
  File "C:\Users\friendmiao\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 809, in run_in_executor
    infos = await self._ensure_resolved(
    executor = concurrent.futures.ThreadPoolExecutor(
  File "C:\Users\friendmiao\AppData\Local\Programs\Python\Python39\lib\concurrent\futures\__init__.py", line 49, in __getattr__
  File "C:\Users\friendmiao\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 1396, in _ensure_resolved
    from .thread import ThreadPoolExecutor as te
ImportError: cannot import name 'ThreadPoolExecutor' from partially initialized module 'concurrent.futures.thread' (most likely due to a circular import) (C:\Users\friendmiao\AppData\Local\Programs\Python\Python39\lib\concurrent\futures\thread.py)
return await loop.getaddrinfo(host, port, family=family, type=type,
  File "C:\Users\friendmiao\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 856, in getaddrinfo
    return await self.run_in_executor(
  File "C:\Users\friendmiao\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 809, in run_in_executor
    executor = concurrent.futures.ThreadPoolExecutor(
  File "C:\Users\friendmiao\AppData\Local\Programs\Python\Python39\lib\concurrent\futures\__init__.py", line 49, in __getattr__
    from .thread import ThreadPoolExecutor as te
ImportError: cannot import name 'ThreadPoolExecutor' from partially initialized module 'concurrent.futures.thread' (most likely due to a circular import) (C:\Users\friendmiao\AppData\Local\Programs\Python\Python39\lib\concurrent\futures\thread.py)

friendmiao 发表新评论 2023年6月13日

发完帖子,重新尝试,可以登入了,不知道是什么原因