Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'URL' from 'sqlalchemy' #44

Open
bdrhoa opened this issue Sep 30, 2023 · 3 comments
Open

ImportError: cannot import name 'URL' from 'sqlalchemy' #44

bdrhoa opened this issue Sep 30, 2023 · 3 comments

Comments

@bdrhoa
Copy link

bdrhoa commented Sep 30, 2023

Trying to run:

python chatgpt.py "what is my dog's name"

I get:

ImportError: cannot import name 'URL' from 'sqlalchemy' (/Users/brad/anaconda3/lib/python3.11/site-packages/sqlalchemy/__init__.py)

@jrafaels
Copy link

jrafaels commented Oct 9, 2023

Similar error. I'm getting:
ImportError: cannot import name 'Engine' from 'sqlalchemy' (C:\Users\rafae\AppData\Roaming\Python\Python311\site -packages\sqlalchemy\__init__.py)

@jramasani
Copy link

try installing sqlalchemy
pip install flask-sqlalchemy

@nucleare
Copy link

nucleare commented Nov 5, 2023

I had a similar issue and when running pip install sqlalchemy it might simply respond with saying Requirement already satisfied: sqlalchemy so nothing would change.

For me, this was fixed when, instead, I ran pip install sqlalchemy --upgrade as it proceeded to initiate downloading the latest version despite the "requirement already satisfied".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants