"metaclass conflict" error: where is noconflict ?
michele.simionato at gmail.com
Fri Feb 20 06:22:49 CET 2009
On Feb 19, 9:58 pm, Chris Rebert <c... at rebertia.com> wrote:
> On Thu, Feb 19, 2009 at 5:01 AM, Barak, Ron <Ron.Ba... at lsi.com> wrote:
> > Hi,
> > I have a class derived from two parents (in blue below), which gives me the
> > following error:
> > $ python -u ./failover_pickle_demo09.py
> > Traceback (most recent call last):
> > File "./failover_pickle_demo09.py", line 291, in <module>
> > class ListControl(wx.Frame, CopyAndPaste):
> > TypeError: Error when calling the metaclass bases
> > metaclass conflict: the metaclass of a derived class must be a
> > (non-strict) subclass of the metaclasses of all its bases
> > Googling suggested I should add
> > from noconflict import classmaker
> > and
> > __metaclass__=classmaker()
> > to this class.
> > However, I don't seem able to find where to get the noconflict module from.
> > Do any of you where noconflict could be downloaded/installed from ?
It refers to this cookbook recipe:
See also the printed cookbook:
However, there is no module to download, and this is on purpose:
instead of blindly apply a "fix" one should
understand what the conflict is: then it is quite easy to
solve it by hand. The recipe discussion explains it all.
More information about the Python-list