12-19 10:19:30 [SUCCESS] nonebot | Succeeded to import "YetAnotherPicSearch"
12-19 10:19:31 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_apscheduler"
12-19 10:19:31 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_htmlrender"
12-19 10:19:31 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_chatgpt"
12-19 10:19:32 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_kawaii_robot"
12-19 10:19:33 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_gocqhttp"
12-19 10:19:33 [SUCCESS] nonebot | Succeeded to import "ELF_RSS2"
12-19 10:19:33 [INFO] uvicorn | Started server process [520]
12-19 10:19:33 [INFO] uvicorn | Waiting for application startup.
12-19 10:19:33 [INFO] nonebot_plugin_apscheduler | Scheduler Started
Task exception was never retrieved
future: <Task finished name='Task-3' coro=<Connection.run() done, defined at C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright_impl_connection.py:240> exception=NotImplementedError()>
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright_impl_connection.py", line 247, in run
await self._transport.connect()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright_impl_transport.py", line 132, in connect
raise exc
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright_impl_transport.py", line 120, in connect
self._proc = await asyncio.create_subprocess_exec(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\subprocess.py", line 218, in create_subprocess_exec
transport, protocol = await loop.subprocess_exec(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 1667, in subprocess_exec
transport = await self._make_subprocess_transport(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 498, in _make_subprocess_transport
raise NotImplementedError
NotImplementedError
12-19 10:19:33 [ERROR] uvicorn | Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette\routing.py", line 671, in lifespan
async with self.lifespan_context(app):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette\routing.py", line 566, in aenter
await self._router.startup()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette\routing.py", line 648, in startup
await handler()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot_plugin_htmlrender__init.py", line 25, in init
browser = await get_browser(kwargs)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot_plugin_htmlrender\browser.py", line 60, in get_browser
return _browser or await init(kwargs)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot_plugin_htmlrender\browser.py", line 36, in init
_playwright = await async_playwright().start()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright\async_api_context_manager.py", line 51, in start
return await self.aenter()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright\async_api_context_manager.py", line 46, in aenter__
playwright = AsyncPlaywright(next(iter(done)).result())
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright_impl_connection.py", line 247, in run
await self._transport.connect()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright_impl_transport.py", line 132, in connect
raise exc
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright_impl_transport.py", line 120, in connect
self._proc = await asyncio.create_subprocess_exec(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\subprocess.py", line 218, in create_subprocess_exec
transport, protocol = await loop.subprocess_exec(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 1667, in subprocess_exec
transport = await self._make_subprocess_transport(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 498, in _make_subprocess_transport
raise NotImplementedError
NotImplementedError
报告清单
影响版本
0.7.3
问题描述
如标题所示, 如不加载本插件则可成功启动机器人
复现步骤
启动时出错
预期行为
正常启动
实际行为
启动失败
日志信息
12-19 10:19:30 [SUCCESS] nonebot | Succeeded to import "YetAnotherPicSearch" 12-19 10:19:31 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_apscheduler" 12-19 10:19:31 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_htmlrender" 12-19 10:19:31 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_chatgpt" 12-19 10:19:32 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_kawaii_robot" 12-19 10:19:33 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_gocqhttp" 12-19 10:19:33 [SUCCESS] nonebot | Succeeded to import "ELF_RSS2" 12-19 10:19:33 [INFO] uvicorn | Started server process [520] 12-19 10:19:33 [INFO] uvicorn | Waiting for application startup. 12-19 10:19:33 [INFO] nonebot_plugin_apscheduler | Scheduler Started Task exception was never retrieved future: <Task finished name='Task-3' coro=<Connection.run() done, defined at C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright_impl_connection.py:240> exception=NotImplementedError()> Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright_impl_connection.py", line 247, in run await self._transport.connect() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright_impl_transport.py", line 132, in connect raise exc File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright_impl_transport.py", line 120, in connect self._proc = await asyncio.create_subprocess_exec( File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\subprocess.py", line 218, in create_subprocess_exec transport, protocol = await loop.subprocess_exec( File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 1667, in subprocess_exec transport = await self._make_subprocess_transport( File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 498, in _make_subprocess_transport raise NotImplementedError NotImplementedError 12-19 10:19:33 [ERROR] uvicorn | Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette\routing.py", line 671, in lifespan async with self.lifespan_context(app): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette\routing.py", line 566, in aenter await self._router.startup() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette\routing.py", line 648, in startup await handler() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot_plugin_htmlrender__init.py", line 25, in init browser = await get_browser(kwargs) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot_plugin_htmlrender\browser.py", line 60, in get_browser return _browser or await init(kwargs) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot_plugin_htmlrender\browser.py", line 36, in init _playwright = await async_playwright().start() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright\async_api_context_manager.py", line 51, in start return await self.aenter() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright\async_api_context_manager.py", line 46, in aenter__ playwright = AsyncPlaywright(next(iter(done)).result()) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright_impl_connection.py", line 247, in run await self._transport.connect() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright_impl_transport.py", line 132, in connect raise exc File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright_impl_transport.py", line 120, in connect self._proc = await asyncio.create_subprocess_exec( File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\subprocess.py", line 218, in create_subprocess_exec transport, protocol = await loop.subprocess_exec( File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 1667, in subprocess_exec transport = await self._make_subprocess_transport( File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 498, in _make_subprocess_transport raise NotImplementedError NotImplementedError
12-19 10:19:33 [ERROR] uvicorn | Application startup failed. Exiting. 12-19 10:19:49 [INFO] uvicorn | Stopping reloader process [8640]
额外补充
也许和ELF_RSS2插件有关 它要求的nonebot_plugin_apscheduler版本是0.1.4 本插件要求的是0.2.0(虽然一般会向上兼容