Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name ForcedError #15

Closed
renner opened this issue Apr 27, 2015 · 4 comments
Closed

ImportError: cannot import name ForcedError #15

renner opened this issue Apr 27, 2015 · 4 comments

Comments

@renner
Copy link

renner commented Apr 27, 2015

Hello,

I could be missing something, but I keep on getting the above ImportError when just running a simple example. Actually just import Marshmallow is enough:

>>> from flask_marshmallow import Marshmallow
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/renner/devel/git/ticklist-flask/flask/lib/python2.7/site-packages/flask_marshmallow/__init__.py", line 21, in <module>
    from . import fields
  File "/home/renner/devel/git/ticklist-flask/flask/lib/python2.7/site-packages/flask_marshmallow/fields.py", line 16, in <module>
    from marshmallow.exceptions import ForcedError
ImportError: cannot import name ForcedError
>>>
@sloria
Copy link
Member

sloria commented Apr 27, 2015

Thanks for reporting, @renner . The error you are seeing is due to an incompatibility with marshmallow>=2.0.0a. I've opened an issue here: #16. I will fix this and release the patch within the next day or two.

@sloria
Copy link
Member

sloria commented Apr 28, 2015

@renner Version 0.5.1 is now on the PyPI, and it is compatible with marshmallow 2.0

@renner
Copy link
Author

renner commented Apr 28, 2015

That is very good @sloria, thanks for fixing this so quickly!

@rahusasi
Copy link

getting this error again in 3.17.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants