-
Notifications
You must be signed in to change notification settings - Fork 606
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
帮助命令报错:无法打开文件 #1532
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
系统版本:Ubuntu 22.04
真寻版本:1.6.7 (实际上是clone的最新代码)
错误
帮助指令没有回复
日志
Traceback (most recent call last):
File "/home/zhenxun_bot/bot.py", line 22, in
nonebot.run()
File "/usr/local/lib/python3.9/site-packages/nonebot/init.py", line 261, in run
get_driver().run(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/nonebot/drivers/fastapi.py", line 170, in run
uvicorn.run(
File "/usr/local/lib/python3.9/site-packages/uvicorn/main.py", line 576, in run
server.run()
File "/usr/local/lib/python3.9/site-packages/uvicorn/server.py", line 60, in run
return asyncio.run(self.serve(sockets=sockets))
File "/usr/local/lib/python3.9/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/local/lib/python3.9/site-packages/nonebot/message.py", line 146, in _check_matcher
await _run_matcher(Matcher, bot, event, state, stack, dependency_cache)
错误说明
如果单独对一个功能使用帮助
例如:真寻帮助昵称系统
是可以发送帮助图片的。
我测试过的几个功能插件,不论是plugins里的插件还是my_plugins的手动添加的插件,使用帮助{功能} 指令是能够发送图片的。
报以上错误的指令包括:
群帮助指令
私聊帮助指令
超级用户帮助指令
管理员帮助指令
我已经确认这几个图片存在于正确的位置,但还是报错无法打开
我怀疑的一个方向是,指令执行开始时会删除旧的图片,生成新的图片。这是新图片还未生成写入目录,此时开始读取,就会发生错误。
验证这个猜测只需要在读取之前加上几秒的sleep,如果没问题就应该是这个原因。
The text was updated successfully, but these errors were encountered: