我正在使用 SQLAlchemy python 模块将 Flask 应用程序与 sqlite 数据库(sqlite 的数据库浏览器)连接,但我不知道如何连接它。 我克隆了一个repo。 请告诉我是否需要执行任何额外步骤或其他操作。我已将存储库中存在的 .db 文件导入到数据库浏览器,但卡在这里并收到此错误
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) no such table: user
[SQL: SELECT user.id AS user_id, user.username AS user_username, user.email AS user_email, user.image_file AS user_image_file, user.password AS user_password
FROM user
WHERE user.username = ?
LIMIT ? OFFSET ?]
[parameters: ('21509016', 1, 0)]
(Background on this error at: https://sqlalche.me/e/20/e3q8)
请帮我解决这个错误。你可以在 github 中查看 main.py 代码并帮助我,我迫切希望运行这个项目!!!
我尝试使用 Gemini 和 chatgpt 寻找解决方案,但它并没有放弃标记答案!