This can be closed, it works now and it seems fixed on Ubuntu 12.10 (maybe it was fixed before).
$ python Python 2.7.3 (default, Apr 20 2012, 22:44:07) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from gi.repository import Gtk >>> Gtk.ScaleButton() <ScaleButton object at 0xb6a2484c (GtkScaleButton at 0x8b1f088)> $ python3 Python 3.2.3 (default, May 3 2012, 15:54:42) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from gi.repository import Gtk >>> Gtk.ScaleButton() <ScaleButton object at 0xb68d2644 (GtkScaleButton at 0x9b84088)> -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to pygtk in Ubuntu. https://bugs.launchpad.net/bugs/397273 Title: gtk.VolumeButton() throws a error (MRO) for bases ImplementorIface on Karmic Status in PyGTK: GTK+ for Python: Invalid Status in “pygtk” package in Ubuntu: Triaged Bug description: I recently planned an application where I want to customize the widget gtk.VolumeButton(). My intention is to change the appearance of more and less buttons icons and change the subject inside gtk.ScaleButton(). But to my surprise I receive an error MRO: TypeError: Cannot create a consistent method resolution order (MRO) for bases ImplementorIface, Buildable, gtk.Orientable ERROR:/build/buildd/pygobject-2.18.0/gobject/pygobject.c:924:pygobject_new_full: assertion failed: (tp != NULL) /usr/bin/tivion: line 5: 30042 Cancelado python tivion.py $1 $2 $3 $4 I attached a completed test case. By the other hand, if you put this code in a python console, you dont get any error: $ python Python 2.6.2+ (release26-maint, Jun 19 2009, 15:14:35) [GCC 4.4.0] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import gtk >>> b = gtk.VolumeButton() >>> b.get_popup().get_child().get_child().get_children()[1] <gtk.ScaleButtonScale object at 0x853e43c (GtkScaleButtonScale at 0x85fb030)> I thing that the problem is some property object hidden or similar. The bug 279579 seems to be similar, but this is other code with another property. ProblemType: Bug Architecture: i386 Date: Thu Jul 9 06:30:11 2009 DistroRelease: Ubuntu 9.10 Package: python-gtk2 2.15.2-0ubuntu1 ProcEnviron: PATH=(custom, user) LANG=es_ES.UTF-8 SHELL=/bin/bash ProcVersionSignature: Ubuntu 2.6.31-2.16-generic SourcePackage: pygtk Uname: Linux 2.6.31-2-generic i686 To manage notifications about this bug go to: https://bugs.launchpad.net/pygtk/+bug/397273/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp

