Skip to content

ImportError: cannot import name 'RAISE' from 'marshmallow.utils' #152

@jedie

Description

@jedie

marshmallow v4 has some Backwards-incompatible changes, see: https://github.com/marshmallow-code/marshmallow/blob/dev/CHANGELOG.rst#400-2025-04-16

So it's results in:

  File "/foobar/pim/api/commercetools/map_utils.py", line 6, in <module>
    from commercetools.platform.models import ProductData
  File "/foobar/.venv/lib/python3.12/site-packages/commercetools/__init__.py", line 1, in <module>
    from .client import Client
  File "/foobar/.venv/lib/python3.12/site-packages/commercetools/client.py", line 8, in <module>
    from commercetools.helpers import _concurrent_retry
  File "/foobar/.venv/lib/python3.12/site-packages/commercetools/helpers.py", line 12, in <module>
    from marshmallow.utils import RAISE, is_collection
ImportError: cannot import name 'RAISE' from 'marshmallow.utils' (/foobar/.venv/lib/python3.12/site-packages/marshmallow/utils.py)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions