Unfortunately, I don’t know the solution to your issue, but the error might be generally raised, if you try to derive a class from multiple parent classes and e.g. use the wrong order.
I cannot see any obvious code snippets in your post, which would fit this, but this information might be useful nevertheless for debugging.