不论是nonebot商店测试结果还是我个人尝试加载都出现了如下错误:
05-07 08:56:09 [ERROR] nonebot | Failed to import "nonebot_plugin_bfchat"
Traceback (most recent call last):
File "/home/runner/work/registry/registry/plugin_test/nonebot-plugin-bfchat-nonebot_plugin_bfchat-test/runner.py", line 16, in
plugin = load_plugin("nonebot_plugin_bfchat")
File "/home/runner/work/registry/registry/plugin_test/nonebot-plugin-bfchat-nonebot_plugin_bfchat-test/.venv/lib/python3.10/site-packages/nonebot/plugin/load.py", line 40, in load_plugin
return manager.load_plugin(module_path)
> File "/home/runner/work/registry/registry/plugin_test/nonebot-plugin-bfchat-nonebot_plugin_bfchat-test/.venv/lib/python3.10/site-packages/nonebot/plugin/manager.py", line 167, in load_plugin
module = importlib.import_module(self._third_party_plugin_ids[name])
File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "/home/runner/work/registry/registry/plugin_test/nonebot-plugin-bfchat-nonebot_plugin_bfchat-test/.venv/lib/python3.10/site-packages/nonebot/plugin/manager.py", line 255, in exec_module
super().exec_module(module)
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/runner/work/registry/registry/plugin_test/nonebot-plugin-bfchat-nonebot_plugin_bfchat-test/.venv/lib/python3.10/site-packages/nonebot_plugin_bfchat/init.py", line 15, in
from nonebot_plugin_htmlrender import md_to_pic, html_to_pic
File "/home/runner/work/registry/registry/plugin_test/nonebot-plugin-bfchat-nonebot_plugin_bfchat-test/.venv/lib/python3.10/site-packages/nonebot_plugin_htmlrender/init.py", line 4, in
from .browser import get_browser, get_new_page, shutdown_browser
File "/home/runner/work/registry/registry/plugin_test/nonebot-plugin-bfchat-nonebot_plugin_bfchat-test/.venv/lib/python3.10/site-packages/nonebot_plugin_htmlrender/browser.py", line 27, in
config = Config.parse_obj(get_driver().config.dict())
File "/home/runner/work/registry/registry/plugin_test/nonebot-plugin-bfchat-nonebot_plugin_bfchat-test/.venv/lib/python3.10/site-packages/pydantic/main.py", line 1118, in parse_obj
return cls.model_validate(obj)
File "/home/runner/work/registry/registry/plugin_test/nonebot-plugin-bfchat-nonebot_plugin_bfchat-test/.venv/lib/python3.10/site-packages/pydantic/main.py", line 551, in model_validate
return cls.pydantic_validator.validate_python(
pydantic_core._pydantic_core.ValidationError: 3 validation errors for Config
htmlrender_download_host
Field required [type=missing, input_value={'driver': 'fake', 'host'....timedelta(seconds=120)}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.7/v/missing
htmlrender_proxy_host
Field required [type=missing, input_value={'driver': 'fake', 'host'....timedelta(seconds=120)}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.7/v/missing
htmlrender_browser_channel
Field required [type=missing, input_value={'driver': 'fake', 'host'....timedelta(seconds=120)}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.7/v/missing
不论是nonebot商店测试结果还是我个人尝试加载都出现了如下错误:
05-07 08:56:09 [ERROR] nonebot | Failed to import "nonebot_plugin_bfchat"
Traceback (most recent call last):
File "/home/runner/work/registry/registry/plugin_test/nonebot-plugin-bfchat-nonebot_plugin_bfchat-test/runner.py", line 16, in
plugin = load_plugin("nonebot_plugin_bfchat")
File "/home/runner/work/registry/registry/plugin_test/nonebot-plugin-bfchat-nonebot_plugin_bfchat-test/.venv/lib/python3.10/site-packages/nonebot/plugin/load.py", line 40, in load_plugin
return manager.load_plugin(module_path)
> File "/home/runner/work/registry/registry/plugin_test/nonebot-plugin-bfchat-nonebot_plugin_bfchat-test/.venv/lib/python3.10/site-packages/nonebot/plugin/manager.py", line 167, in load_plugin
module = importlib.import_module(self._third_party_plugin_ids[name])
File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "/home/runner/work/registry/registry/plugin_test/nonebot-plugin-bfchat-nonebot_plugin_bfchat-test/.venv/lib/python3.10/site-packages/nonebot/plugin/manager.py", line 255, in exec_module
super().exec_module(module)
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/runner/work/registry/registry/plugin_test/nonebot-plugin-bfchat-nonebot_plugin_bfchat-test/.venv/lib/python3.10/site-packages/nonebot_plugin_bfchat/init.py", line 15, in
from nonebot_plugin_htmlrender import md_to_pic, html_to_pic
File "/home/runner/work/registry/registry/plugin_test/nonebot-plugin-bfchat-nonebot_plugin_bfchat-test/.venv/lib/python3.10/site-packages/nonebot_plugin_htmlrender/init.py", line 4, in
from .browser import get_browser, get_new_page, shutdown_browser
File "/home/runner/work/registry/registry/plugin_test/nonebot-plugin-bfchat-nonebot_plugin_bfchat-test/.venv/lib/python3.10/site-packages/nonebot_plugin_htmlrender/browser.py", line 27, in
config = Config.parse_obj(get_driver().config.dict())
File "/home/runner/work/registry/registry/plugin_test/nonebot-plugin-bfchat-nonebot_plugin_bfchat-test/.venv/lib/python3.10/site-packages/pydantic/main.py", line 1118, in parse_obj
return cls.model_validate(obj)
File "/home/runner/work/registry/registry/plugin_test/nonebot-plugin-bfchat-nonebot_plugin_bfchat-test/.venv/lib/python3.10/site-packages/pydantic/main.py", line 551, in model_validate
return cls.pydantic_validator.validate_python(
pydantic_core._pydantic_core.ValidationError: 3 validation errors for Config
htmlrender_download_host
Field required [type=missing, input_value={'driver': 'fake', 'host'....timedelta(seconds=120)}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.7/v/missing
htmlrender_proxy_host
Field required [type=missing, input_value={'driver': 'fake', 'host'....timedelta(seconds=120)}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.7/v/missing
htmlrender_browser_channel
Field required [type=missing, input_value={'driver': 'fake', 'host'....timedelta(seconds=120)}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.7/v/missing