marshmallow-mongoengine
marshmallow-mongoengine copied to clipboard
ModuleNotFoundError: No module named 'marshmallow.compat'
This is the error I got from running the code example on the Readme. I tried running the tests using pytest, and I got the same error. From other repo's (marshmallow-sqlalchemy) it seems that it's a marshmallow 3.x compatibility issue.
I'm not sure how to fix this myself. Also, please, do something to enable issues on the "official" repo and push them to update the Pypi version to 0.10.
We are trying to upgrade from 2.19.2 to 3.1.1 and get the same error . Could you please advice how to get around it.
I'll have to dive into it, haven't got the time for now, but it seems it's only used to import a with_metaclass function that can be found in some other libs.
Either don't bother about python 2 compatibility and remove this or replace with
import six
# ...
class ModelSchema(six.with_metaclass(SchemaMeta, ma.Schema)):
...
Ah with_metaclass is compatibility code for Python2? They should probably drop this and move on..
Same issue, using @qcho fix solves it.
Hi all. Just trying to run through the example in the readme.md on the homepage here results in this error. Any chance of it getting updated to work? So far I haven't been able to adapt it to the fix above. Just poking around with this lib but seems like a bug to have the example code not work.