You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
02-11 00:56:35 [WARNING] nonebot_plugin_htmlrender | Install error: Error: Download failed: server returned code 404 body '{"error":"[NOT_FOUND] Binary "playwright/builds/chromium/1148/chromium-headless-shell-linux.zip" not found"}'. URL: https://registry.npmmirror.com/-/binary/playwright/builds/chromium/1148/chromium-headless-shell-linux.zip
02-11 00:56:35 [WARNING] nonebot_plugin_htmlrender | Install error: at IncomingMessage.handleError (/home/ubuntu/myenv/lib/python3.12/site-packages/playwright/driver/package/lib/server/registry/oopDownloadBrowserMain.js:62:23)
02-11 00:56:35 [WARNING] nonebot_plugin_htmlrender | Install error: at IncomingMessage.emit (node:events:530:35)
02-11 00:56:35 [WARNING] nonebot_plugin_htmlrender | Install error: at endReadableNT (node:internal/streams/readable:1698:12)
02-11 00:56:35 [WARNING] nonebot_plugin_htmlrender | Install error: at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
02-11 00:56:35 [INFO] nonebot_plugin_htmlrender | Downloading Chromium Headless Shell 131.0.6778.33 (playwright build v1148) from https://registry.npmmirror.com/-/binary/playwright/builds/chromium/1148/chromium-headless-shell-linux.zip
02-11 00:56:35 [WARNING] nonebot_plugin_htmlrender | Install error: Error: Download failed: server returned code 404 body '{"error":"[NOT_FOUND] Binary "playwright/builds/chromium/1148/chromium-headless-shell-linux.zip" not found"}'. URL: https://registry.npmmirror.com/-/binary/playwright/builds/chromium/1148/chromium-headless-shell-linux.zip
02-11 00:56:35 [WARNING] nonebot_plugin_htmlrender | Install error: at IncomingMessage.handleError (/home/ubuntu/myenv/lib/python3.12/site-packages/playwright/driver/package/lib/server/registry/oopDownloadBrowserMain.js:62:23)
02-11 00:56:35 [WARNING] nonebot_plugin_htmlrender | Install error: at IncomingMessage.emit (node:events:530:35)
02-11 00:56:35 [WARNING] nonebot_plugin_htmlrender | Install error: at endReadableNT (node:internal/streams/readable:1698:12)
02-11 00:56:35 [WARNING] nonebot_plugin_htmlrender | Install error: at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
02-11 00:56:35 [INFO] nonebot_plugin_htmlrender | Downloading Chromium Headless Shell 131.0.6778.33 (playwright build v1148) from https://registry.npmmirror.com/-/binary/playwright/builds/chromium/1148/chromium-headless-shell-linux.zip
02-11 00:56:35 [WARNING] nonebot_plugin_htmlrender | Install error: Error: Download failed: server returned code 404 body '{"error":"[NOT_FOUND] Binary "playwright/builds/chromium/1148/chromium-headless-shell-linux.zip" not found"}'. URL: https://registry.npmmirror.com/-/binary/playwright/builds/chromium/1148/chromium-headless-shell-linux.zip
02-11 00:56:35 [WARNING] nonebot_plugin_htmlrender | Install error: at IncomingMessage.handleError (/home/ubuntu/myenv/lib/python3.12/site-packages/playwright/driver/package/lib/server/registry/oopDownloadBrowserMain.js:62:23)
02-11 00:56:35 [WARNING] nonebot_plugin_htmlrender | Install error: at IncomingMessage.emit (node:events:530:35)
02-11 00:56:35 [WARNING] nonebot_plugin_htmlrender | Install error: at endReadableNT (node:internal/streams/readable:1698:12)
02-11 00:56:35 [WARNING] nonebot_plugin_htmlrender | Install error: at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
02-11 00:56:35 [INFO] nonebot_plugin_htmlrender | Failed to install browsers
02-11 00:56:35 [INFO] nonebot_plugin_htmlrender | Error: Failed to download Chromium Headless Shell 131.0.6778.33 (playwright build v1148), caused by
02-11 00:56:35 [INFO] nonebot_plugin_htmlrender | Error: Download failure, code=1
02-11 00:56:35 [INFO] nonebot_plugin_htmlrender | at ChildProcess. (/home/ubuntu/myenv/lib/python3.12/site-packages/playwright/driver/package/lib/server/registry/browserFetcher.js:91:16)
02-11 00:56:35 [INFO] nonebot_plugin_htmlrender | at ChildProcess.emit (node:events:518:28)
02-11 00:56:35 [INFO] nonebot_plugin_htmlrender | at ChildProcess._handle.onexit (node:internal/child_process:293:12)
02-11 00:56:35 [ERROR] nonebot_plugin_htmlrender | 安装失败: 安装失败 (exit code: 1)
02-11 00:56:35 [ERROR] uvicorn | Traceback (most recent call last):
File "/home/ubuntu/myenv/lib/python3.12/site-packages/nonebot_plugin_htmlrender/browser.py", line 58, in init_browser
return await start_browser(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/myenv/lib/python3.12/site-packages/nonebot_plugin_htmlrender/browser.py", line 158, in start_browser
_browser = await _launch(plugin_config.htmlrender_browser, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/myenv/lib/python3.12/site-packages/nonebot_plugin_htmlrender/browser.py", line 41, in _launch
return await _browser_cls.launch(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/myenv/lib/python3.12/site-packages/playwright/async_api/_generated.py", line 14404, in launch
await self._impl_obj.launch(
File "/home/ubuntu/myenv/lib/python3.12/site-packages/playwright/_impl/_browser_type.py", line 95, in launch
Browser, from_channel(await self._channel.send("launch", params))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/myenv/lib/python3.12/site-packages/playwright/_impl/_connection.py", line 61, in send
return await self._connection.wrap_api_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/myenv/lib/python3.12/site-packages/playwright/_impl/_connection.py", line 528, in wrap_api_call
raise rewrite_error(error, f"{parsed_st['apiName']}: {error}") from None
playwright._impl._errors.Error: BrowserType.launch: Executable doesn't exist at /home/ubuntu/.cache/ms-playwright/chromium_headless_shell-1148/chrome-linux/headless_shell
╔════════════════════════════════════════════════════════════╗
║ Looks like Playwright was just installed or updated. ║
║ Please run the following command to download new browsers: ║
║ ║
║ playwright install ║
║ ║
║ <3 Playwright Team ║
╚════════════════════════════════════════════════════════════╝
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/ubuntu/myenv/lib/python3.12/site-packages/nonebot_plugin_htmlrender/browser.py", line 66, in init_browser
raise RuntimeError("无法启动浏览器实例且尝试安装失败") from e
RuntimeError: 无法启动浏览器实例且尝试安装失败
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/ubuntu/myenv/lib/python3.12/site-packages/starlette/routing.py", line 693, in lifespan
async with self.lifespan_context(app) as maybe_state:
File "/usr/lib/python3.12/contextlib.py", line 210, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/myenv/lib/python3.12/site-packages/nonebot/drivers/fastapi.py", line 154, in _lifespan_manager
await self._lifespan.startup()
File "/home/ubuntu/myenv/lib/python3.12/site-packages/nonebot/internal/driver/_lifespan.py", line 66, in startup
await self._run_lifespan_func(self._startup_funcs)
File "/home/ubuntu/myenv/lib/python3.12/site-packages/nonebot/internal/driver/_lifespan.py", line 55, in _run_lifespan_func
await cast(ASYNC_LIFESPAN_FUNC, func)()
File "/home/ubuntu/myenv/lib/python3.12/site-packages/nonebot_plugin_htmlrender/init.py", line 34, in init
await init_browser(**kwargs)
File "/home/ubuntu/myenv/lib/python3.12/site-packages/nonebot_plugin_htmlrender/browser.py", line 68, in init_browser
raise RuntimeError("无法启动浏览器实例") from e
RuntimeError: 无法启动浏览器实例
操作系统
Linux
Python 版本
3.12.3
zhenxun_bot 版本
up-to-date
适配器
OneBot
协议端
NapCat
描述问题
请问真寻启动之后一直显示启动浏览器实例失败 是什么情况啊, 安装了浏览器之后启动也还是这样
复现步骤
1.cd zhenxun_bot
2.nb zx start
期望的结果
No response
截图或日志(请勿包含敏感信息如密码、令牌等)
02-11 00:56:35 [WARNING] nonebot_plugin_htmlrender | Install error: Error: Download failed: server returned code 404 body '{"error":"[NOT_FOUND] Binary "playwright/builds/chromium/1148/chromium-headless-shell-linux.zip" not found"}'. URL: https://registry.npmmirror.com/-/binary/playwright/builds/chromium/1148/chromium-headless-shell-linux.zip
02-11 00:56:35 [WARNING] nonebot_plugin_htmlrender | Install error: at IncomingMessage.handleError (/home/ubuntu/myenv/lib/python3.12/site-packages/playwright/driver/package/lib/server/registry/oopDownloadBrowserMain.js:62:23)
02-11 00:56:35 [WARNING] nonebot_plugin_htmlrender | Install error: at IncomingMessage.emit (node:events:530:35)
02-11 00:56:35 [WARNING] nonebot_plugin_htmlrender | Install error: at endReadableNT (node:internal/streams/readable:1698:12)
02-11 00:56:35 [WARNING] nonebot_plugin_htmlrender | Install error: at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
02-11 00:56:35 [INFO] nonebot_plugin_htmlrender | Downloading Chromium Headless Shell 131.0.6778.33 (playwright build v1148) from https://registry.npmmirror.com/-/binary/playwright/builds/chromium/1148/chromium-headless-shell-linux.zip
02-11 00:56:35 [WARNING] nonebot_plugin_htmlrender | Install error: Error: Download failed: server returned code 404 body '{"error":"[NOT_FOUND] Binary "playwright/builds/chromium/1148/chromium-headless-shell-linux.zip" not found"}'. URL: https://registry.npmmirror.com/-/binary/playwright/builds/chromium/1148/chromium-headless-shell-linux.zip
02-11 00:56:35 [WARNING] nonebot_plugin_htmlrender | Install error: at IncomingMessage.handleError (/home/ubuntu/myenv/lib/python3.12/site-packages/playwright/driver/package/lib/server/registry/oopDownloadBrowserMain.js:62:23)
02-11 00:56:35 [WARNING] nonebot_plugin_htmlrender | Install error: at IncomingMessage.emit (node:events:530:35)
02-11 00:56:35 [WARNING] nonebot_plugin_htmlrender | Install error: at endReadableNT (node:internal/streams/readable:1698:12)
02-11 00:56:35 [WARNING] nonebot_plugin_htmlrender | Install error: at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
02-11 00:56:35 [INFO] nonebot_plugin_htmlrender | Downloading Chromium Headless Shell 131.0.6778.33 (playwright build v1148) from https://registry.npmmirror.com/-/binary/playwright/builds/chromium/1148/chromium-headless-shell-linux.zip
02-11 00:56:35 [WARNING] nonebot_plugin_htmlrender | Install error: Error: Download failed: server returned code 404 body '{"error":"[NOT_FOUND] Binary "playwright/builds/chromium/1148/chromium-headless-shell-linux.zip" not found"}'. URL: https://registry.npmmirror.com/-/binary/playwright/builds/chromium/1148/chromium-headless-shell-linux.zip
02-11 00:56:35 [WARNING] nonebot_plugin_htmlrender | Install error: at IncomingMessage.handleError (/home/ubuntu/myenv/lib/python3.12/site-packages/playwright/driver/package/lib/server/registry/oopDownloadBrowserMain.js:62:23)
02-11 00:56:35 [WARNING] nonebot_plugin_htmlrender | Install error: at IncomingMessage.emit (node:events:530:35)
02-11 00:56:35 [WARNING] nonebot_plugin_htmlrender | Install error: at endReadableNT (node:internal/streams/readable:1698:12)
02-11 00:56:35 [WARNING] nonebot_plugin_htmlrender | Install error: at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
02-11 00:56:35 [INFO] nonebot_plugin_htmlrender | Failed to install browsers
02-11 00:56:35 [INFO] nonebot_plugin_htmlrender | Error: Failed to download Chromium Headless Shell 131.0.6778.33 (playwright build v1148), caused by
02-11 00:56:35 [INFO] nonebot_plugin_htmlrender | Error: Download failure, code=1
02-11 00:56:35 [INFO] nonebot_plugin_htmlrender | at ChildProcess. (/home/ubuntu/myenv/lib/python3.12/site-packages/playwright/driver/package/lib/server/registry/browserFetcher.js:91:16)
02-11 00:56:35 [INFO] nonebot_plugin_htmlrender | at ChildProcess.emit (node:events:518:28)
02-11 00:56:35 [INFO] nonebot_plugin_htmlrender | at ChildProcess._handle.onexit (node:internal/child_process:293:12)
02-11 00:56:35 [ERROR] nonebot_plugin_htmlrender | 安装失败: 安装失败 (exit code: 1)
02-11 00:56:35 [ERROR] uvicorn | Traceback (most recent call last):
File "/home/ubuntu/myenv/lib/python3.12/site-packages/nonebot_plugin_htmlrender/browser.py", line 58, in init_browser
return await start_browser(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/myenv/lib/python3.12/site-packages/nonebot_plugin_htmlrender/browser.py", line 158, in start_browser
_browser = await _launch(plugin_config.htmlrender_browser, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/myenv/lib/python3.12/site-packages/nonebot_plugin_htmlrender/browser.py", line 41, in _launch
return await _browser_cls.launch(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/myenv/lib/python3.12/site-packages/playwright/async_api/_generated.py", line 14404, in launch
await self._impl_obj.launch(
File "/home/ubuntu/myenv/lib/python3.12/site-packages/playwright/_impl/_browser_type.py", line 95, in launch
Browser, from_channel(await self._channel.send("launch", params))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/myenv/lib/python3.12/site-packages/playwright/_impl/_connection.py", line 61, in send
return await self._connection.wrap_api_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/myenv/lib/python3.12/site-packages/playwright/_impl/_connection.py", line 528, in wrap_api_call
raise rewrite_error(error, f"{parsed_st['apiName']}: {error}") from None
playwright._impl._errors.Error: BrowserType.launch: Executable doesn't exist at /home/ubuntu/.cache/ms-playwright/chromium_headless_shell-1148/chrome-linux/headless_shell
╔════════════════════════════════════════════════════════════╗
║ Looks like Playwright was just installed or updated. ║
║ Please run the following command to download new browsers: ║
║ ║
║ playwright install ║
║ ║
║ <3 Playwright Team ║
╚════════════════════════════════════════════════════════════╝
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/ubuntu/myenv/lib/python3.12/site-packages/nonebot_plugin_htmlrender/browser.py", line 66, in init_browser
raise RuntimeError("无法启动浏览器实例且尝试安装失败") from e
RuntimeError: 无法启动浏览器实例且尝试安装失败
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/ubuntu/myenv/lib/python3.12/site-packages/starlette/routing.py", line 693, in lifespan
async with self.lifespan_context(app) as maybe_state:
File "/usr/lib/python3.12/contextlib.py", line 210, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/myenv/lib/python3.12/site-packages/nonebot/drivers/fastapi.py", line 154, in _lifespan_manager
await self._lifespan.startup()
File "/home/ubuntu/myenv/lib/python3.12/site-packages/nonebot/internal/driver/_lifespan.py", line 66, in startup
await self._run_lifespan_func(self._startup_funcs)
File "/home/ubuntu/myenv/lib/python3.12/site-packages/nonebot/internal/driver/_lifespan.py", line 55, in _run_lifespan_func
await cast(ASYNC_LIFESPAN_FUNC, func)()
File "/home/ubuntu/myenv/lib/python3.12/site-packages/nonebot_plugin_htmlrender/init.py", line 34, in init
await init_browser(**kwargs)
File "/home/ubuntu/myenv/lib/python3.12/site-packages/nonebot_plugin_htmlrender/browser.py", line 68, in init_browser
raise RuntimeError("无法启动浏览器实例") from e
RuntimeError: 无法启动浏览器实例
02-11 00:56:35 [ERROR] uvicorn | Application startup failed. Exiting.
The text was updated successfully, but these errors were encountered: