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

'compat' import error #2

Open
kornsn opened this issue Oct 20, 2017 · 1 comment
Open

'compat' import error #2

kornsn opened this issue Oct 20, 2017 · 1 comment

Comments

@kornsn
Copy link

kornsn commented Oct 20, 2017

...
    from marshmallow_models import Model
../../env/lib/python3.6/site-packages/marshmallow_models/__init__.py:1: in <module>
    from .models import Model, NestedModel
../../env/lib/python3.6/site-packages/marshmallow_models/models.py:7: in <module>
    from compat import with_metaclass
E   ModuleNotFoundError: No module named 'compat'

Maybe it should be smth like from compat import with_metaclass -> from .compat import with_metaclass?

@pkarp0
Copy link

pkarp0 commented Nov 21, 2018

This is still happening in version 0.2.0.
pip install marshmallow-models
python

from marshmallow_models import Model
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.6/site-packages/marshmallow_models/init.py", line 1, in
from .models import Model, NestedModel
File "/usr/local/lib/python3.6/site-packages/marshmallow_models/models.py", line 7, in
from compat import with_metaclass
ModuleNotFoundError: No module named 'compat'

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

2 participants