-
Notifications
You must be signed in to change notification settings - Fork 4
Description
[PyBot][18:17:10.481][ERROR] [plugin.manager]插件导入失败: "nonebot_plugin_minesweeper"
Traceback (most recent call last):
File "D:\A-Bot\Yunzai-Bot\plugins\py-plugin\main.py", line 13, in
nonebot.run(root)
File "D:\A-Bot\Yunzai-Bot\plugins\py-plugin\nonebot_init_.py", line 56, in run
_driver.run([str(x) for x in _driver.config.plugins])
File "D:\A-Bot\Yunzai-Bot\plugins\py-plugin\nonebot\drivers.py", line 48, in run
loop.run_until_complete(self.serve(plugins))
File "C:\Users\35840\scoop\apps\python\current\lib\asyncio\base_events.py", line 634, in run_until_complete
self.run_forever()
File "C:\Users\35840\scoop\apps\python\current\lib\asyncio\windows_events.py", line 321, in run_forever
super().run_forever()
File "C:\Users\35840\scoop\apps\python\current\lib\asyncio\base_events.py", line 601, in run_forever
self._run_once()
File "C:\Users\35840\scoop\apps\python\current\lib\asyncio\base_events.py", line 1905, in _run_once
handle._run()
File "C:\Users\35840\scoop\apps\python\current\lib\asyncio\events.py", line 80, in _run
self._context.run(self._callback, *self.args)
File "D:\A-Bot\Yunzai-Bot\plugins\py-plugin\nonebot\drivers.py", line 62, in serve
load_plugin(plugin.replace("-", ""))
File "D:\A-Bot\Yunzai-Bot\plugins\py-plugin\nonebot\plugin\load.py", line 34, in load_plugin
return manager.load_plugin(module_path)
File "D:\A-Bot\Yunzai-Bot\plugins\py-plugin\nonebot\plugin\manager.py", line 141, in load_plugin
module = importlib.import_module(name)
File "C:\Users\35840\scoop\apps\python\current\lib\importlib_init_.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "D:\A-Bot\Yunzai-Bot\plugins\py-plugin\nonebot\plugin\manager.py", line 233, in exec_module
super().exec_module(module)
File "", line 850, in exec_module
File "", line 228, in call_with_frames_removed
File "C:\Users\35840\AppData\Local\pypoetry\Cache\virtualenvs\py-plugin-07sXw6t8-py3.9\lib\site-packages\nonebot_plugin_minesweeper_init.py", line 22, in
from nonebot.adapters.onebot.v12 import Bot as V12Bot
ModuleNotFoundError: No module named 'nonebot.adapters.onebot.v12'
我加载nonebot_plugin_minesweeper的时候出现了这个