-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or requestpythonPull requests that update python codePull requests that update python code
Description
10-02 23:27:57 [INFO] nonebot_plugin_htmlrender | Using Mirror source: Taobao https://registry.npmmirror.com/-/binary/playwright
10-02 23:27:57 [INFO] nonebot_plugin_htmlrender | Checking chromium installation...
10-02 23:27:57 [ERROR] nonebot_plugin_htmlrender | An error occurred during installation: [WinError 2] 系统找不到指定的 文件。
10-02 23:27:57 [WARNING] nonebot_plugin_htmlrender | Installation failed, retrying with official mirror...
10-02 23:27:57 [ERROR] nonebot_plugin_htmlrender | An error occurred during installation: [WinError 2] 系统找不到指定的 文件。
10-02 23:27:57 [ERROR] nonebot_plugin_htmlrender | Installation failed with: An error occurred during installation: [WinError 2] 系统找不到指定的文件。
10-02 23:27:57 [INFO] nonebot_plugin_htmlrender | Checking Playwright environment...
10-02 23:27:57 [INFO] nonebot_plugin_htmlrender | Playwright stopped.
10-02 23:27:57 [ERROR] uvicorn | Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\nonebot-tyriskic\.venv\Lib\site-packages\nonebot_plugin_htmlrender\browser.py", line 221, in check_playwright_env
_browser = await _launch(plugin_config.htmlrender_browser, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\Desktop\nonebot-tyriskic\.venv\Lib\site-packages\nonebot_plugin_htmlrender\browser.py", line 46, in _launch
return await _browser_cls.launch(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\Desktop\nonebot-tyriskic\.venv\Lib\site-packages\playwright\async_api\_generated.py", line 14465, in launch
await self._impl_obj.launch(
File "C:\Users\Administrator\Desktop\nonebot-tyriskic\.venv\Lib\site-packages\playwright\_impl\_browser_type.py", line 98, in launch
await self._channel.send(
File "C:\Users\Administrator\Desktop\nonebot-tyriskic\.venv\Lib\site-packages\playwright\_impl\_connection.py", line 69, in send
return await self._connection.wrap_api_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\Desktop\nonebot-tyriskic\.venv\Lib\site-packages\playwright\_impl\_connection.py", line 558, 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 C:\Users\Administrator\AppData\Local\nonebot2\nonebot_plugin_htmlrender\chromium_headless_shell-1187\chrome-win\headless_shell.exe
╔════════════════════════════════════════════════════════════╗
║ 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 "C:\Users\Administrator\Desktop\nonebot-tyriskic\.venv\Lib\site-packages\starlette\routing.py", line 694, in lifespan
async with self.lifespan_context(app) as maybe_state:
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\contextlib.py", line 210, in __aenter__
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\Desktop\nonebot-tyriskic\.venv\Lib\site-packages\nonebot\drivers\fastapi.py", line 154, in _lifespan_manager
await self._lifespan.startup()
File "C:\Users\Administrator\Desktop\nonebot-tyriskic\.venv\Lib\site-packages\nonebot\internal\driver\_lifespan.py", line 66, in startup
await self._run_lifespan_func(self._startup_funcs)
File "C:\Users\Administrator\Desktop\nonebot-tyriskic\.venv\Lib\site-packages\nonebot\internal\driver\_lifespan.py", line 55, in _run_lifespan_func
await cast(ASYNC_LIFESPAN_FUNC, func)()
File "C:\Users\Administrator\Desktop\nonebot-tyriskic\.venv\Lib\site-packages\nonebot_plugin_htmlrender\__init__.py", line 40, in init
await startup_htmlrender(**kwargs)
File "C:\Users\Administrator\Desktop\nonebot-tyriskic\.venv\Lib\site-packages\nonebot_plugin_htmlrender\utils.py", line 163, in wrapper
return await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\Desktop\nonebot-tyriskic\.venv\Lib\site-packages\nonebot_plugin_htmlrender\browser.py", line 184, in startup_htmlrender
_browser = await check_playwright_env(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\Desktop\nonebot-tyriskic\.venv\Lib\site-packages\nonebot_plugin_htmlrender\browser.py", line 228, in check_playwright_env
raise RuntimeError(
RuntimeError: Playwright environment is not set up correctly. Refer to https://playwright.dev/python/docs/intro#system-requirements
我寻思是不是该找 https://github.com/kexue-z/nonebot-plugin-htmlrender 提 issue 呢
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestpythonPull requests that update python codePull requests that update python code