Closed samialfattani closed 1 year ago
What version of SQLAlchemy do you use?
it was SQLAlchemy==2.0.5
and then i updated it into the last version:
last version SQLAlchemy==2.0.6
but it didn't work in all cases also i updated Flask, Flask-Sqlalchemy into the last version, but still same error is raising!
here is pip freeze
:
click==8.1.3
Flask==2.2.3
Flask-Restless-NG==2.5.0
Flask-SQLAlchemy==3.0.3
greenlet==2.0.2
itsdangerous==2.1.2
Jinja2==3.1.2
MarkupSafe==2.1.2
python-dateutil==2.8.2
six==1.16.0
SQLAlchemy==2.0.6
typing_extensions==4.5.0
Werkzeug==2.2.3
Thank you for the report and for the additional info. It has only been tested with SQLAlchemy 1.x I was able to reproduce your issue with 2.0.6. Will try so post a fix soon-ish
I took a quick look and adding support for SQLAlchemy 2.0 would require some major changes and will break compatibility with 1.3-1.4, and will be added in flask-restless-ng 3.0. But that would take some time For now I have restricted SQLAlchemy version to >=1.3,<2.0
Fixed in version 3.0.0
the following error just raised once the first import of flask_restless!!
ImportError: cannot import name 'HYBRID_PROPERTY' from 'sqlalchemy.ext.hybrid'
if have just used the snippet code that is listed in Quickstart page
any explanation?