无法加载
Closed this issue · 1 comments
Todysheep commented
02-21 16:17:50 [ERROR] nonebot | Failed to import "nonebot_plugin_memes"
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "C:\Python\Lib\site-packages\nonebot\plugin\load.py", line 130, in load_from_toml
return load_all_plugins(plugins, plugin_dirs)
File "C:\Python\Lib\site-packages\nonebot\plugin\load.py", line 64, in load_all_plugins
return manager.load_all_plugins()
File "C:\Python\Lib\site-packages\nonebot\plugin\manager.py", line 176, in load_all_plugins
return set(
File "C:\Python\Lib\site-packages\nonebot\plugin\manager.py", line 177, in <genexpr>
filter(None, (self.load_plugin(name) for name in self.available_plugins))
> File "C:\Python\Lib\site-packages\nonebot\plugin\manager.py", line 142, in load_plugin
module = importlib.import_module(name)
File "C:\Python\Lib\importlib\__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "C:\Python\Lib\site-packages\nonebot\plugin\manager.py", line 242, in exec_module
super().exec_module(module)
File "<frozen importlib._bootstrap_external>", line 995, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "C:\Python\Lib\site-packages\nonebot_plugin_memes\__init__.py", line 42, in <module>
from .depends import IMAGE_SOURCES_KEY, TEXTS_KEY, USER_INFOS_KEY, split_msg
File "C:\Python\Lib\site-packages\nonebot_plugin_memes\depends.py", line 8, in <module>
from nonebot_plugin_alconna.uniseg.segment import reply_handle
ImportError: cannot import name 'reply_handle' from 'nonebot_plugin_alconna.uniseg.segment'
版本 nonebot_plugin_memes-0.5.1
nonebot.adapters.onebot.v11
Todysheep commented
已解决,plugin-alconna版本过低所导致的(