incompatibility with flask + replit?
I've been trying to search for an answer but it doesn't seem like anyone else is having this issue.
I'm trying to test out a flask page that needs to connect to the replit database. However, I am greeted with a peculiar error I've never seen in my previous python apps
To Take Note
- I have made sure that flask and replit modules are installed via
python3 -m pipAND
python -m pip(for my own sanity check)
- Replit version is 3.0.0
- Flask version is indeed 1.1.2
I need help in solving this
If you need a database (like a BIG one), then you should use SQL with
flask_sqlalchemy (i'm pretty sure. Not a flask dev lol.) However, if you need a database, you should probably switch over to
django because it is way better at using databases then flask.
This looks like a bug that is being caused by the version of flask you are installing. Replit needs a flask version new than 1.1.2, but the flask you are installing is 2.0.0, which I'm guessing is causing a problem so replit cannot be imported.