Open AratoEndo opened 5 months ago
ImportError: cannot import name 'rich_unescape' from 'nonebot.adapters.onebot.utils' (C:\Users\Server\Desktop\bot\little paimeng\LittlePaimony.venv\Lib\site-packages\nonebot\adapters\onebot\utils.py)
看看 nonebot-adapter-onebot 的版本号,升级到最新
确认
nb paimon install
更新依赖库环境信息
问题描述
插件“星铁面板”未加载,不可用
问题截图
复现步骤[可选]
03-14 04:45:50 [SUCCESS] nonebot | Succeeded to load plugin "Paimon_CloudGenshin" from "LittlePaimon.plugins.Paimon_CloudGenshin" 03-14 04:45:51 [SUCCESS] nonebot | Succeeded to load plugin "Paimon_Gacha_Log" from "LittlePaimon.plugins.Paimon_Gacha_Log" 03-14 04:45:52 [ERROR] nonebot | Failed to import "Learning_Chat" Traceback (most recent call last): File "C:\Users\Server\Desktop\bot\little paimeng\LittlePaimony\bot.py", line 28, in
nonebot.load_plugin("LittlePaimon")
File "C:\Users\Server\Desktop\bot\little paimeng\LittlePaimony.venv\Lib\site-packages\nonebot\plugin\load.py", line 37, in load_plugin
return manager.load_plugin(module_path)
File "C:\Users\Server\Desktop\bot\little paimeng\LittlePaimony.venv\Lib\site-packages\nonebot\plugin\manager.py", line 141, in load_plugin
module = importlib.import_module(name)
File "C:\Users\Server\AppData\Local\Programs\Python\Python311\Lib\importlib__init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1206, in _gcd_import
File "", line 1178, in _find_and_load
File "", line 1149, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "C:\Users\Server\Desktop\bot\little paimeng\LittlePaimony.venv\Lib\site-packages\nonebot\plugin\manager.py", line 240, in exec_module
super().exec_module(module)
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "C:\Users\Server\Desktop\bot\little paimeng\LittlePaimony\LittlePaimon__init__.py", line 46, in
load_plugins(str(Path( file__).parent / 'plugins'))
File "C:\Users\Server\Desktop\bot\little paimeng\LittlePaimony.venv\Lib\site-packages\nonebot\plugin\load.py", line 48, in load_plugins
return manager.load_all_plugins()
File "C:\Users\Server\Desktop\bot\little paimeng\LittlePaimony.venv\Lib\site-packages\nonebot\plugin\manager.py", line 175, in load_all_plugins
return set(
File "C:\Users\Server\Desktop\bot\little paimeng\LittlePaimony.venv\Lib\site-packages\nonebot\plugin\manager.py", line 176, in
filter(None, (self.load_plugin(name) for name in self.available_plugins))