commercetools-python-sdk icon indicating copy to clipboard operation
commercetools-python-sdk copied to clipboard

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

Open jedie opened this issue 9 months ago • 2 comments

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)

jedie avatar Apr 22 '25 12:04 jedie