-
-
Notifications
You must be signed in to change notification settings - Fork 898
Closed
Description
I don't know where this comes from. I have a small project where all versions are pinned and the Flask app runs in a Docker container. I just made an unrelated changes with the same versions and get this error. Does this look familiar?
Expected Behavior
Just running without crashes
from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
Actual Behavior
Crashes
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.8/site-packages/flask_sqlalchemy/__init__.py", line 716, in __init__
self.Model = self.make_declarative_base(model_class, metadata)
File "/usr/local/lib/python3.8/site-packages/flask_sqlalchemy/__init__.py", line 798, in make_declarative_base
model.query_class = self.Query
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/ext/declarative/api.py", line 79, in __setattr__
_add_attribute(cls, key, value)
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/ext/declarative/base.py", line 802, in _add_attribute
type.__setattr__(cls, key, value)
TypeError: can't apply this __setattr__ to DefaultMeta object
Environment
- Python version: Python 3.8.4 (Docker
python:3.8-slim-buster
) - Flask-SQLAlchemy version: flask-sqlalchemy==2.4.1
- SQLAlchemy version: sqlalchemy==1.3.13
piotrgredowski, dlorych, LukasPhilipp, kam193, ev-agelos and 12 more
Metadata
Metadata
Assignees
Labels
No labels