HibiKier / zhenxun_bot

基于 Nonebot2 开发,非常可爱的绪山真寻bot
GNU Affero General Public License v3.0
3.39k stars 602 forks source link

启用bot.py时签到报错 #64

Closed othinus001 closed 3 years ago

othinus001 commented 3 years ago

从0.34换到0.51版本 10-09 12:30:07 [ERROR] uvicorn | Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-p ackages\starlette\routing.py", line 526, in lifespan async for item in self.lifespan_context(app): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-p ackages\starlette\routing.py", line 467, in default_lifespan await self.startup() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-p ackages\starlette\routing.py", line 502, in startup await handler() File "C:\BaiduNetdiskDownload\HibiKier-zhenxun_bot-7102654\plugins\sign_in\uti ls.py", line 37, in init_image _u = await GroupInfoUser.get_member_info(114514, 114514) File "C:\BaiduNetdiskDownload\HibiKier-zhenxun_bot-7102654\models\group_member _info.py", line 69, in get_member_info return await query.gino.first() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-p ackages\gino\api.py", line 137, in first return await self._query.bind.first(self._query, *multiparams, *params) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-p ackages\gino\engine.py", line 748, in first return await conn.first(clause, multiparams, **params) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-p ackages\gino\engine.py", line 328, in first return await result.execute(one=True) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-p ackages\gino\dialects\base.py", line 214, in execute rows = await cursor.async_execute( File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-p ackages\gino\dialects\asyncpg.py", line 184, in async_execute result, stmt = await getattr(conn, "_do_execute")(query, executor, timeout) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-p ackages\asyncpg\connection.py", line 1677, in _do_execute stmt = await self._get_statement( File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-p ackages\asyncpg\connection.py", line 375, in _get_statement statement = await self._protocol.prepare( File "asyncpg\protocol\protocol.pyx", line 166, in prepare asyncpg.exceptions.UndefinedColumnError: 字段 group_info_users.uid 不存在 HINT: 也许您想要引用列"group_info_users.id"。

HibiKier commented 3 years ago

。。版本太低了,建议保留resources和data文件夹,其他全部替换,另外resource内有一些新增图片要增加