GNOME Bugzilla – Bug 643958
Radio action missing property 'active'
Last modified: 2011-04-03 16:37:19 UTC
This is what I got trying to open the program. I'm on Ubuntu 11.04 (development branch).Below is a traceback from Gaupol. -------------------------------------------------------------------------------- Traceback File: usr/bin/gaupol Line: 28 In: <module> gaupol.main.main(sys.argv[1:]) File: usr/share/gaupol/gaupol/main.py Line: 176 In: main _init_application(opts, args) File: usr/share/gaupol/gaupol/main.py Line: 57 In: _init_application application = gaupol.Application() File: usr/share/gaupol/gaupol/application.py Line: 122 In: __init__ self._init_gui() File: usr/share/gaupol/gaupol/application.py Line: 181 In: _init_gui self._init_uim() File: usr/share/gaupol/gaupol/application.py Line: 253 In: _init_uim action = getattr(gaupol.actions, name)() File: usr/share/gaupol/gaupol/actions/view.py Line: 118 In: __init__ self.props.active = (framerate == aeidon.framerates.FPS_24) AttributeError: 'gobject.GProps' object has no attribute 'active' Platform Linux-2.6.35-27-generic-i686-with-Ubuntu-11.04-natty Versions Aeidon: 0.17.1 Gaupol: 0.17.1 Python: 2.7.1 GTK+: 2.24.1 PyGTK: 2.22.0 PyEnchant: 1.5.3 Universal Encoding Detector: 2.0.1
I use Debian unstable and I still got GTK+ 2.20.1 and PyGTK 2.17.0. Maybe there's been some API change somewhere in there, although the "active" property is clearly listed in PyGTK 2.22 API documentation. Or some changes may have broken inheritance and thus the properties. I'll download Ubuntu 11.04 when I have the time and look into it.
I can confirm this bug. I'm using the latest Mandriva development version (with PyGTK 2.22.0 and GTK+ 2.22.1) and getting exactly the same error when launching Gaupol.
*** Bug 646604 has been marked as a duplicate of this bug. ***
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report. commit 3fa04f4cf22bc6c5ae3a72c3bd7410623f099769 Author: Osmo Salomaa <otsaloma@iki.fi> Date: Sun Apr 3 19:28:54 2011 +0300 Fix broken inheritance of action classes. Change inheritance order to primarily inherit from corresponding gtk classes and call __init__ of those classes to avoid bad instantiation of property containers (or whatever). Due to Python's method resolution order this should still not favor gtk.Action over gaupol.Action, avoiding which was probably the reason for the previous base class ordering. https://bugzilla.gnome.org/show_bug.cgi?id=643958 I'll try to get a release out with this fix soon.