`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
nonebot.run()
File "/root/.cache/pypoetry/virtualenvs/zhenxun-bot-guhZIsCX-py3.10/lib/python3.10/site-packages/nonebot/init.py", line 273, in run
get_driver().run(*args, **kwargs)
File "/root/.cache/pypoetry/virtualenvs/zhenxun-bot-guhZIsCX-py3.10/lib/python3.10/site-packages/nonebot/drivers/fastapi.py", line 187, in run
uvicorn.run(
File "/root/.cache/pypoetry/virtualenvs/zhenxun-bot-guhZIsCX-py3.10/lib/python3.10/site-packages/uvicorn/main.py", line 569, in run
server.run()
File "/root/.cache/pypoetry/virtualenvs/zhenxun-bot-guhZIsCX-py3.10/lib/python3.10/site-packages/uvicorn/server.py", line 60, in run
return asyncio.run(self.serve(sockets=sockets))
File "/usr/local/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
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`
报告清单
影响版本
0.7.4
问题描述
复现步骤
系统环境为Debian 11,Python3.10.8,nonebot2.0.0rc3
预期行为
返回相应答复
实际行为
无返回语句
日志信息
`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
nonebot.run()
File "/root/.cache/pypoetry/virtualenvs/zhenxun-bot-guhZIsCX-py3.10/lib/python3.10/site-packages/nonebot/init.py", line 273, in run
get_driver().run(*args, **kwargs)
File "/root/.cache/pypoetry/virtualenvs/zhenxun-bot-guhZIsCX-py3.10/lib/python3.10/site-packages/nonebot/drivers/fastapi.py", line 187, in run
uvicorn.run(
File "/root/.cache/pypoetry/virtualenvs/zhenxun-bot-guhZIsCX-py3.10/lib/python3.10/site-packages/uvicorn/main.py", line 569, in run
server.run()
File "/root/.cache/pypoetry/virtualenvs/zhenxun-bot-guhZIsCX-py3.10/lib/python3.10/site-packages/uvicorn/server.py", line 60, in run
return asyncio.run(self.serve(sockets=sockets))
File "/usr/local/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
额外补充
No response