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

“A Minimal Application” of flask-sqlalchemy Official website can not run successfully when using the latest version(2.4.4) #932

Closed
cuuxiao opened this issue Mar 18, 2021 · 2 comments

Comments

@cuuxiao
Copy link

cuuxiao commented Mar 18, 2021

Description

  1. Install the latest flask-sqlalchemy(2.4.4) from Official website;
  2. It will install related packages, such as SQLAlchemy(1.4.0)
  3. Refer to A Minimal Application to complete my first demo program.
  4. But unable to create database when running 'from app import db' and 'db.create_all()' in flask shell,The error is as follows:
    image
  5. The 'db.create_all()' can be run successfully and the database can be created successfully when I downgrade SQLAlchemy's version to 1.3.6

Actual results
The 'db.create_all()' can not be run successfully when the SQLAlchemy's version is 1.4.0 and 1.4.1

Expected results
The 'db.create_all()' should be run successfully when the SQLAlchemy's version is 1.4.0 and 1.4.1, like 1.3.6. The flask-sqlalchemy
should be compatible with the latest SQLAlchemy

Environment: win

  • Python version:3.7.9
  • Flask-SQLAlchemy version:2.4.4
  • SQLAlchemy version:1.4.0
@cuuxiao
Copy link
Author

cuuxiao commented Mar 18, 2021

pls check and confirm, thanks a lot

@davidism
Copy link
Member

Duplicate of #927

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants