TypeError: metaclass conflict when using panel
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Gedit Developer Plugins |
Fix Released
|
High
|
Curtis Hovey |
Bug Description
pygobject reports TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases. Gedit crashes.
The error is commonly thrown when interacting with the panel, but there is no specific way to reproduce this. It happens a few times a week. This is caused when a class is composed of two or more other classes, each with a different metaclass. pygobjects from gi.repository may use gobject.
One solution is to create a new metaclass, see section 23.33 at http://
A simpler solution is to remove __metaclass__ = type from the gdp classes and subclass object in the few cases that do not subclass.
Changed in gdp: | |
status: | In Progress → Fix Committed |
Changed in gdp: | |
status: | Fix Committed → Fix Released |