Skip to content

Flask-AppBuilder 5.0.2 incompatible with marshmallow 4.x / marshmallow-sqlalchemy 1.x #2425

@sp-ealjohani

Description

@sp-ealjohani

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:

  1. Pinning compatible marshmallow versions in FAB's dependencies
  2. Updating FAB to support marshmallow 4.x / marshmallow-sqlalchemy 1.x
  3. Documenting this incompatibility in the migration guide

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions