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
Repl.it: Updating package configuration --> python3 -m poetry add replit Using version ^3.0.0 for replit Updating dependencies Resolving dependencies... [SolverProblemError] Because no versions of replit match >3.0.0,<4.0.0 and replit (3.0.0) depends on flask (>=1.1.2,<2.0.0), replit (>=3.0.0,<4.0.0) requires flask (>=1.1.2,<2.0.0). So, because repl-python3-beta-ddotbtk depends on both flask (^2.0.0) and replit (^3.0.0), version solving failed. exit status 1 Repl.it: Package operation failed.
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.