Skip to content

Marshmallow 4.0.0 breaks safety check #716

@brabster

Description

@brabster

Checklist

Safety version

Latest 3.3.1

Python version

3.11, 3.12, 3.13

Operating System

Linux variants

Describe the problem you'd like to have solved

safety check is currently broken, confirmed on multiple builds and multiple python versions.

+===========================================================================================================================================================================================+

DEPRECATED: this command (check) has been DEPRECATED, and will be unsupported beyond 01 June 2024.

We highly encourage switching to the new scan command which is easier to use, more powerful, and can be set up to mimic the deprecated command if required.

+===========================================================================================================================================================================================+

Unhandled exception happened: post_dump() got an unexpected keyword argument 'pass_many'

Describe the ideal solution

Issue appears related to marshmallow dependency, 4.0.0 release appears to contain breaking changes for safety. Pinning the dependency back fixes the problem for me locally.

Alternatives and current workarounds

marshmallow has a to be removed flag, removing it should solve the issue too but probably a bigger task.

Additional context

Will submit PR

What I Did

See above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions