After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 588133 - gtk.VolumeButton() throws a error (MRO) for bases ImplementorIface on Karmic
gtk.VolumeButton() throws a error (MRO) for bases ImplementorIface on Karmic
Status: RESOLVED NOTABUG
Product: pygtk
Classification: Bindings
Component: general
2.15.x
Other All
: Normal critical
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2009-07-09 05:01 UTC by Ángel Guzmán Maeso (shakaran)
Modified: 2009-12-26 16:34 UTC
See Also:
GNOME target: ---
GNOME version: 2.27/2.28


Attachments
Testcase for MRO error (1.57 KB, text/x-python)
2009-07-09 05:03 UTC, Ángel Guzmán Maeso (shakaran)
Details

Description Ángel Guzmán Maeso (shakaran) 2009-07-09 05:01:34 UTC
Steps to reproduce:
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.

Stack trace:


Other information:
Comment 1 Ángel Guzmán Maeso (shakaran) 2009-07-09 05:03:23 UTC
Created attachment 138097 [details]
Testcase for MRO error

Testcase for MRO error
Comment 2 Gian Mario Tagliaretti 2009-12-25 22:13:58 UTC
Sorry I cannot reproduce this bug with your test case.
Comment 3 Ángel Guzmán Maeso (shakaran) 2009-12-26 16:34:51 UTC
It's ok. For me works now. I reopen if the bugs appears.