Travel Sites Problem-Flask Skill Path exercise

hi I was doing the last Build Python Web Apps with Flask Skill Path exercise, specifically the Travel Sites exercise when I encountered this error

“sqlalchemy.exc.DatabaseError: (sqlite3.DatabaseError) database disk image is malformed
[SQL: SELECT AS post_id, AS post_city, AS post_country, post.description AS post_description, post.timestamp AS post_timestamp, post.user_id AS post_user_id
FROM post]
(Background on this error at: Error Messages — SQLAlchemy 2.0 Documentation)”

Honestly, I think the exercise is done correctly and this error with the database makes me think it’s not my fault.
I leave the written code:

If you db image is malformed, that means it potentially got corrupted somewhere. One possible reason could be that it got some sort of operation in a format it wasn’t expecting (thanks sqlAlchemy!).

Try this link for information:

1 Like