bot-ssttkkl / nonebot-plugin-majsoul

Nonebot 雀魂信息查询插件
GNU Affero General Public License v3.0
14 stars 2 forks source link

插件无法正常装载 #6

Closed enKl03B closed 1 month ago

enKl03B commented 2 months ago

nonebot 2.3
Windows11
报错信息如下: [ERROR] nonebot | Failed to import "nonebot_plugin_majsoul" Traceback (most recent call last): File "", line 18, in File "E:\MCL\nonebot\nb04-bot\nb04-bot.venv\lib\site-packages\nonebot\plugin\load.py", line 131, in load_from_toml return load_all_plugins(plugins, plugin_dirs) File "E:\MCL\nonebot\nb04-bot\nb04-bot.venv\lib\site-packages\nonebot\plugin\load.py", line 65, in load_all_plugins return manager.load_all_plugins() File "E:\MCL\nonebot\nb04-bot\nb04-bot.venv\lib\site-packages\nonebot\plugin\manager.py", line 203, in load_all_plugins return set( File "E:\MCL\nonebot\nb04-bot\nb04-bot.venv\lib\site-packages\nonebot\plugin\manager.py", line 204, in filter(None, (self.load_plugin(name) for name in self.available_plugins))

File "E:\MCL\nonebot\nb04-bot\nb04-bot.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:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64qbz5n2kfra8p0\lib\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 "E:\MCL\nonebot\nb04-bot\nb04-bot.venv\lib\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 "E:\MCL\nonebot\nb04-bot\nb04-bot.venv\lib\site-packages\nonebot_plugin_majsoul\init.py", line 15, in from .config import Config File "E:\MCL\nonebot\nb04-bot\nb04-bot.venv\lib\site-packages\nonebot_plugin_majsoul\config.py", line 2, in from pydantic import BaseSettings File "E:\MCL\nonebot\nb04-bot\nb04-bot.venv\lib\site-packages\pydantic\init.py", line 395, in getattr__ return _getattr_migration(attr_name) File "E:\MCL\nonebot\nb04-bot\nb04-bot.venv\lib\site-packages\pydantic_migration.py", line 296, in wrapper raise PydanticImportError( pydantic.errors.PydanticImportError: BaseSettings has been moved to the pydantic-settings package. See https://docs.pydantic.dev/2.8/migration/#basesettings-has-moved-to-pydantic-settings for more details.

For further information visit https://errors.pydantic.dev/2.8/u/import-error

ssttkkl commented 2 months ago

暂时没有精力适配pydantic2

ssttkkl commented 1 month ago

v0.2.4已修复