nonebot-plugin-chatgpt
nonebot-plugin-chatgpt copied to clipboard
[BUG]: OpenAIAuth' is not a package
报告清单
- [X] 我已仔细阅读并了解上述注意事项。
- [X] 我已使用最新版本测试过,确认问题依旧存在。
- [X] 我确定在 GitHub Issues 中没有相同或相似的问题。
- [ ] 我有足够的时间和能力,愿意为此提交 PR 来修复问题。
影响版本
0.7.4
问题描述
触发指令报错 ModuleNotFoundError: No modulot a packagenAIAuth.OpenAIAuth'; 'OpenAIAuth' is not a package
复现步骤
系统环境为Debian 11,Python3.10.8,nonebot2.0.0rc3
- poetry add nonebot-plugin-chatgpt
- 在bot.py中添加nonebot.load_plugin('nonebot_plugin_chatgpt')
- poetry run python3 bot.py
- 在QQ群内触发bot
预期行为
返回相应答复
实际行为
无返回语句
日志信息
`03-05 13:47:39 [ERROR] apscheduler | Job "refresh_session (trigger: interval[0:30:00], next run at: 2023-03-05 14:17:39 CST)" raised an exception
Traceback (most recent call last):
File "/root/zhenxun_bot/bot.py", line 23, in
File "/root/.cache/pypoetry/virtualenvs/zhenxun-bot-guhZIsCX-py3.10/lib/python3.10/site-packages/apscheduler/executors/base_py3.py", line 30, in run_coroutine_job retval = await job.func(*job.args, **job.kwargs) File "/root/zhenxun_bot/extensive_plugin/chatgpt/init.py", line 208, in refresh_session await chat_bot.refresh_session() File "/root/zhenxun_bot/extensive_plugin/chatgpt/chatgpt.py", line 187, in refresh_session await self.login() File "/root/zhenxun_bot/extensive_plugin/chatgpt/chatgpt.py", line 204, in login from OpenAIAuth.OpenAIAuth import OpenAIAuth ModuleNotFoundError: No module named 'OpenAIAuth.OpenAIAuth'; 'OpenAIAuth' is not a package`
额外补充
No response