加载插件时报错
Closed this issue · 3 comments
02-03 23:30:27 [ERROR] nonebot | Failed to import "nonebot_plugin_memes"
Traceback (most recent call last):
File "", line 18, in
File "/usr/kabobot/.venv/lib/python3.8/site-packages/nonebot/plugin/load.py", line 130, in load_from_toml
return load_all_plugins(plugins, plugin_dirs)
File "/usr/kabobot/.venv/lib/python3.8/site-packages/nonebot/plugin/load.py", line 64, in load_all_plugins
return manager.load_all_plugins()
File "/usr/kabobot/.venv/lib/python3.8/site-packages/nonebot/plugin/manager.py", line 176, in load_all_plugins
return set(
File "/usr/kabobot/.venv/lib/python3.8/site-packages/nonebot/plugin/manager.py", line 177, in
filter(None, (self.load_plugin(name) for name in self.available_plugins))
File "/usr/kabobot/.venv/lib/python3.8/site-packages/nonebot/plugin/manager.py", line 142, in load_plugin
module = importlib.import_module(name)
File "/usr/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "/usr/kabobot/.venv/lib/python3.8/site-packages/nonebot/plugin/manager.py", line 242, in exec_module
super().exec_module(module)
File "", line 848, in exec_module
File "", line 219, in _call_with_frames_removed
File "/usr/kabobot/.venv/lib/python3.8/site-packages/nonebot_plugin_memes/init.py", line 42, in
from .depends import IMAGE_SOURCES_KEY, TEXTS_KEY, USER_INFOS_KEY, split_msg
File "/usr/kabobot/.venv/lib/python3.8/site-packages/nonebot_plugin_memes/depends.py", line 8, in
from nonebot_plugin_alconna.uniseg.segment import reply_handle
ImportError: cannot import name 'reply_handle' from 'nonebot_plugin_alconna.uniseg.segment' (/usr/kabobot/.venv/lib/python3.8/site-packages/nonebot_plugin_alconna/uniseg/segment.py)
你的 nonebot-plugin-alconna
是什么版本的
你的
nonebot-plugin-alconna
是什么版本的
0.24
你的
nonebot-plugin-alconna
是什么版本的
感谢,解决了。原因是nonebot没能成功导入alconna