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 643958 - Radio action missing property 'active'
Radio action missing property 'active'
Status: RESOLVED FIXED
Product: gaupol
Classification: Other
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gaupol-maint@gnome.bugs
gaupol-maint@gnome.bugs
: 646604 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-03-05 15:18 UTC by Marek
Modified: 2011-04-03 16:37 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Marek 2011-03-05 15:18:33 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
Comment 1 Osmo Salomaa 2011-03-05 18:07:43 UTC
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.
Comment 2 wally 2011-03-31 17:39:52 UTC
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.
Comment 3 Osmo Salomaa 2011-04-03 12:08:34 UTC
*** Bug 646604 has been marked as a duplicate of this bug. ***
Comment 4 Osmo Salomaa 2011-04-03 16:37:19 UTC
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.