troubleshooting multiple inheritance errors

  • Thread starter Jonathan Brandmeyer
  • Start date
J

Jonathan Brandmeyer

I am attempting to create a class that inherits from a PyGTK class and a
Boost.Python-based class. When the interpreter executes code like:

class Myclass( gtk.some_class, my_boost_python_class):

I get the exception:
TypeError: multiple bases have instance lay-out conflict

According to the great Google, in most cases that exception was due to a
conflict with multiple base classes defining the member __slots__ at
class scope. As far as I can tell, neither of the parent classes (or
any of their parents) contains such a member, as evidenced by the fact
that for each parent, class_type.__dict__['__slots__'] produces a
KeyError.

I'm not sure how to continue debugging this problem. What other kinds
of things can lead to this error?

Thanks for your help,
Jonathan Brandmeyer
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top