every time I try to run my flask app I keep getting “cannot import name ‘SQLAlchemy’ from ‘flask’ “(/Users/glitxh/LETSFIXPHONES/.repair/lib/python3.12/site-packages/flask/init.py)
and its beyond fuccing frustrating because I when I run install flask sql alchemy it says requirement already met good
here are my imports
from flask import Flask,redirect,url_for,render_template,request,sessions,flash,SQLAlchemy
import stripe
import smtplib
import sqlite3
from flask_sqlalchemy import sqlite3
I’m literally running python3 app.py and I keep getting ImportError: cannot import name ‘SQLAlchemy’ from ‘flask’ (/Users/glitxh/LETSFIXPHONES/.repair/lib/python3.12/site-packages/flask/init.py). I modified the final import to import sqlite3.the problem is from the init.py file apparently and I was also advised to check if another file was shadowing the module or something along those lines
chase abag is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.