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

Multiple inheritance causes a MRO error #40

Closed
flosch opened this issue Apr 15, 2010 · 1 comment
Closed

Multiple inheritance causes a MRO error #40

flosch opened this issue Apr 15, 2010 · 1 comment

Comments

@flosch
Copy link

flosch commented Apr 15, 2010

Following piece of code causes the following MRO error:

class A(Document): pass
class B(A): pass
class C(B): pass

The relevant python traceback:

...
  File "/Users/flosch/devlibs/3rdparty/mongoengine/base.py", line 235, in __new__
    new_class = super_new(cls, name, bases, attrs)
  File "/Users/flosch/devlibs/3rdparty/mongoengine/base.py", line 177, in __new__
    or (DoesNotExist,), module))
  File "/Users/flosch/devlibs/3rdparty/mongoengine/base.py", line 444, in subclass_exception
    return type(name, parents, {'__module__': module})
TypeError: Error when calling the metaclass bases
    Cannot create a consistent method resolution
order (MRO) for bases DoesNotExist, DoesNotExist

(using: mongoengine master, pymongo 1.6, python 2.6.5, Mac OS X Snow Leopard)

@flosch
Copy link
Author

flosch commented Apr 17, 2010

This issue was closed.
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

1 participant