Simple and rapid application development framework, built on top of Flask. includes detailed security, auto CRUD generation for your models, google charts and much more. Demo (login with guest/welcome) - http://flaskappbuilder.pythonanywhere.com/
BSD 3-Clause "New" or "Revised" License
4.63k
stars
1.35k
forks
source link
Add support for marshmallow-sqlalchemy 1.0.0 #2194
I am getting a TypeError during the initialization of an app that loads Flask-AppBuilder (see below).
I have tried both marshmallow-sqlalchemy 1.0.0, 0.30 and 0.26, but all of them returns the same results.
I am not sure the error involves Flask-AppBuilder directly, but I wanted to check why there is no support for the latest version of marshmallow-sqlalchemy.
Describe the actual results
When launching the app, I get
Traceback (most recent call last):
File "/usr/bin/superset", line 5, in <module>
from superset.cli.main import superset
File "/usr/lib/python3.11/site-packages/superset/__init__.py", line 21, in <module>
from superset.app import create_app
File "/usr/lib/python3.11/site-packages/superset/app.py", line 24, in <module>
from superset.initialization import SupersetAppInitializer
File "/usr/lib/python3.11/site-packages/superset/initialization/__init__.py", line 28, in <module>
from flask_appbuilder import expose, IndexView
File "/usr/lib/python3.11/site-packages/flask_appbuilder/__init__.py", line 5, in <module>
from .api import ModelRestApi # noqa: F401
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/flask_appbuilder/api/__init__.py", line 29, in <module>
from marshmallow_sqlalchemy.fields import Related, RelatedList
File "/usr/lib/python3.11/site-packages/marshmallow_sqlalchemy/__init__.py", line 1, in <module>
from .schema import (
File "/usr/lib/python3.11/site-packages/marshmallow_sqlalchemy/schema.py", line 143, in <module>
class SQLAlchemySchema(
File "/usr/lib/python3.11/site-packages/marshmallow/schema.py", line 116, in __new__
klass._declared_fields = mcs.get_declared_fields(
^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: SQLAlchemySchemaMeta.get_declared_fields() missing 1 required positional argument: 'dict_cls'
Steps to reproduce
on Arch Linux/Manjaro: yay -S superset && superset --help
Environment
pip-freeze
:Describe the expected results
I am getting a
TypeError
during the initialization of an app that loads Flask-AppBuilder (see below).I have tried both marshmallow-sqlalchemy 1.0.0, 0.30 and 0.26, but all of them returns the same results.
I am not sure the error involves Flask-AppBuilder directly, but I wanted to check why there is no support for the latest version of marshmallow-sqlalchemy.
Describe the actual results
When launching the app, I get
Steps to reproduce
on Arch Linux/Manjaro:
yay -S superset && superset --help