Replies: 1 comment 1 reply
-
|
检查你是否进入了虚拟环境 poetry shell |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
提示没有nonebot模块,我已经安装了
Traceback (most recent call last):
File "bot.py", line 1, in
import nonebot
ModuleNotFoundError: No module named 'nonebot'
import nonebot
from nonebot.adapters.onebot.v11 import Adapter
from services.db_context import init, disconnect
nonebot.init()
driver = nonebot.get_driver()
driver.register_adapter(Adapter)
config = driver.config
driver.on_startup(init)
driver.on_shutdown(disconnect)
优先加载定时任务
nonebot.load_plugin("nonebot_plugin_apscheduler")
nonebot.load_plugins("basic_plugins")
nonebot.load_plugins("plugins")
nonebot.load_plugins("extensive_plugin")
最后加载权限控制
nonebot.load_plugins("basic_plugins/hooks")
if name == "main":
nonebot.run()
Beta Was this translation helpful? Give feedback.
All reactions