PS D:\robot\ai> d:; cd 'd:\robot\ai'; & 'C:\Users\smallka\AppData\Local\Programs\Python\Python39\python.exe' 'c:\Users\smallka.vscode\extensions\ms-python.python-2022.16.1\pythonFiles\lib\python\debugpy\adapter/../..\debugpy\launcher' '8458' '--' 'd:\robot\ai\bot.py'
10-19 21:48:11 [SUCCESS] nonebot | NoneBot is initializing...
10-19 21:48:11 [INFO] nonebot | Current Env: prod
10-19 21:48:11 [SUCCESS] nonebot | Succeeded to import "nonebot.plugins.echo"
10-19 21:48:11 [ERROR] nonebot | Failed to import "nonebot_plugin_aidraw"
Traceback (most recent call last):
File "d:\robot\ai\bot.py", line 27, in
nonebot.load_from_toml("pyproject.toml")
File "C:\Users\smallka\AppData\Local\Programs\Python\Python39\lib\site-packages\nonebot\plugin\load.py", line 119, in load_from_toml
return load_all_plugins(plugins, plugin_dirs)
File "C:\Users\smallka\AppData\Local\Programs\Python\Python39\lib\site-packages\nonebot\plugin\load.py", line 53, in load_all_plugins
return manager.load_all_plugins()
File "C:\Users\smallka\AppData\Local\Programs\Python\Python39\lib\site-packages\nonebot\plugin\manager.py", line 128, in load_all_plugins
return set(
File "C:\Users\smallka\AppData\Local\Programs\Python\Python39\lib\site-packages\nonebot\plugin\manager.py", line 129, in
filter(None, (self.load_plugin(name) for name in self.list_plugins()))
File "C:\Users\smallka\AppData\Local\Programs\Python\Python39\lib\site-packages\nonebot\plugin\manager.py", line 104, in load_plugin
module = importlib.import_module(name)
File "C:\Users\smallka\AppData\Local\Programs\Python\Python39\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 "C:\Users\smallka\AppData\Local\Programs\Python\Python39\lib\site-packages\nonebot\plugin\manager.py", line 194, in exec_module
super().exec_module(module)
File "", line 850, in exec_module
File "", line 228, in _call_with_frames_removed
File "C:\Users\smallka\AppData\Local\Programs\Python\Python39\lib\site-packages\nonebot_plugin_aidraw__init__.py", line 1, in
from . import draw, count
File "C:\Users\smallka\AppData\Local\Programs\Python\Python39\lib\site-packages\nonebot_plugin_aidraw\draw.py", line 17, in
from nonebot.adapters.onebot.v11.helpers import (
ImportError: cannot import name 'autorevoke_send' from 'nonebot.adapters.onebot.v11.helpers' (C:\Users\smallka\AppData\Local\Programs\Python\Python39\lib\site-packages\nonebot\adapters\onebot\v11\helpers.py)
10-19 21:48:11 [WARNING] main__ | Always use nb run to start the bot instead of manually running!
10-19 21:48:11 [SUCCESS] nonebot | Running NoneBot...
10-19 21:48:11 [INFO] uvicorn | Started server process [25588]
10-19 21:48:11 [INFO] uvicorn | Waiting for application startup.
10-19 21:48:11 [INFO] uvicorn | Application startup complete.
10-19 21:48:11 [INFO] uvicorn | Uvicorn running on http://127.0.0.1:8080 (Press CTRL+C to quit)
报告清单
影响版本
0.6.3
问题描述
PS D:\robot\ai> d:; cd 'd:\robot\ai'; & 'C:\Users\smallka\AppData\Local\Programs\Python\Python39\python.exe' 'c:\Users\smallka.vscode\extensions\ms-python.python-2022.16.1\pythonFiles\lib\python\debugpy\adapter/../..\debugpy\launcher' '8458' '--' 'd:\robot\ai\bot.py' 10-19 21:48:11 [SUCCESS] nonebot | NoneBot is initializing... 10-19 21:48:11 [INFO] nonebot | Current Env: prod 10-19 21:48:11 [SUCCESS] nonebot | Succeeded to import "nonebot.plugins.echo" 10-19 21:48:11 [ERROR] nonebot | Failed to import "nonebot_plugin_aidraw" Traceback (most recent call last): File "d:\robot\ai\bot.py", line 27, in
nonebot.load_from_toml("pyproject.toml")
File "C:\Users\smallka\AppData\Local\Programs\Python\Python39\lib\site-packages\nonebot\plugin\load.py", line 119, in load_from_toml
return load_all_plugins(plugins, plugin_dirs)
File "C:\Users\smallka\AppData\Local\Programs\Python\Python39\lib\site-packages\nonebot\plugin\load.py", line 53, in load_all_plugins
return manager.load_all_plugins()
File "C:\Users\smallka\AppData\Local\Programs\Python\Python39\lib\site-packages\nonebot\plugin\manager.py", line 128, in load_all_plugins
return set(
File "C:\Users\smallka\AppData\Local\Programs\Python\Python39\lib\site-packages\nonebot\plugin\manager.py", line 129, in
filter(None, (self.load_plugin(name) for name in self.list_plugins()))
重现步骤
使用nb指令安装插件后运行报错
预期行为
No response
实际行为
No response
日志信息
No response
额外补充
No response