Description
FAB 5.0.2 schema auto-generation fails with marshmallow 4.x and marshmallow-sqlalchemy 1.x.
Environment
- Flask-AppBuilder: 5.0.2
- marshmallow: 4.2.1
- marshmallow-sqlalchemy: 1.4.2
- Python: 3.11
Error
KeyError exceptions during API initialization when FAB attempts to auto-generate schemas
Workaround
Pin older versions in requirements.txt:
marshmallow>=3.0.0,<4.0.0
marshmallow-sqlalchemy>=0.29.0,<1.0.0
Suggestion
Consider either:
- Pinning compatible marshmallow versions in FAB's dependencies
- Updating FAB to support marshmallow 4.x / marshmallow-sqlalchemy 1.x
- Documenting this incompatibility in the migration guide