nek0us / nonebot-plugin-twitter

订阅推文推送
MIT License
31 stars 2 forks source link

启动报错 #24

Open Xian0Grem opened 1 month ago

Xian0Grem commented 1 month ago

10-24 16:31:52 [ERROR] nonebot | Failed to import "nonebot_plugin_twitter" Traceback (most recent call last): File "F:\NoneBot\nonebot_liyu\on_yinyou\bot.py", line 39, in nonebot.load_plugin(pl) File "F:\NoneBot\nonebot_liyu\on_yinyou.venv\Lib\site-packages\nonebot\plugin\load.py", line 40, in load_plugin return manager.load_plugin(module_path)

File "F:\NoneBot\nonebot_liyu\on_yinyou.venv\Lib\site-packages\nonebot\plugin\manager.py", line 167, in load_plugin module = importlib.import_module(self._third_party_plugin_ids[name]) File "C:\Users\Xian_Grem\AppData\Local\Programs\Python\Python311\Lib\importlib__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1204, in _gcd_import File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "F:\NoneBot\nonebot_liyu\on_yinyou.venv\Lib\site-packages\nonebot\plugin\manager.py", line 255, in exec_module super().exec_module(module) File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "F:\NoneBot\nonebot_liyu\on_yinyou.venv\Lib\site-packages\nonebot_plugin_twitter__init.py", line 19, in from .config import Config,version__,website_list,config_dev File "F:\NoneBot\nonebot_liyu\on_yinyou.venv\Lib\site-packages\nonebot_plugin_twitter\config.py", line 18, in class Config(BaseModel): File "F:\NoneBot\nonebot_liyu\on_yinyou.venv\Lib\site-packages\nonebot_plugin_twitter\config.py", line 89, in Config @root_validator(pre=False) File "F:\NoneBot\nonebot_liyu\on_yinyou.venv\Lib\site-packages\pydantic\deprecated\class_validators.py", line 240, in root_validator raise PydanticUserError( pydantic.errors.PydanticUserError: If you use @root_validator with pre=False (the default) you MUST specify skip_on_failure=True. Note that @root_validator is deprecated and should be replaced with @model_validator.

For further information visit https://errors.pydantic.dev/2.9/u/root-validator-pre-skip

nek0us commented 1 month ago

还没修,暂不可用,等修了我通知你