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 622537 - Plugin error on startup
Plugin error on startup
Status: RESOLVED DUPLICATE of bug 671261
Product: accerciser
Classification: Applications
Component: general
1.10.x
Other Linux
: Normal major
: ---
Assigned To: Accerciser Developers
Accerciser Developers
Depends on:
Blocks:
 
 
Reported: 2010-06-23 21:14 UTC by Vincent Untz
Modified: 2012-05-18 20:46 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Removes references for unimplemented interfaces (3.88 KB, patch)
2011-07-11 00:08 UTC, Aline Bessa
none Details | Review

Description Vincent Untz 2010-06-23 21:14:48 UTC
Playing with GNOME 2.30.2, I started accerciser. Here's a plugin error I immediately see:

Traceback (most recent call last):
  • File "/gnome/releases/usr/lib/python2.6/site-packages/accerciser/plugin/base_plugin.py", line 156 in __call__
    return self.func(*args, **kwargs)
  • File "/gnome/releases/usr/share/accerciser/plugins/interface_view.py", line 91 in init
    section = _InterfaceSection(ui_xml, self.node, iface_name)
  • File "/gnome/releases/usr/share/accerciser/plugins/interface_view.py", line 167 in __init__
    self._setExpanderChildrenSensitive(False)
  • File "/gnome/releases/usr/share/accerciser/plugins/interface_view.py", line 226 in _setExpanderChildrenSensitive
    label = expander.get_label_widget()
AttributeError: 'NoneType' object has no attribute 'get_label_widget'

Comment 1 Aline Bessa 2011-06-22 22:50:28 UTC
Bug confirmed.
Comment 2 Aline Bessa 2011-07-11 00:08:28 UTC
Created attachment 191655 [details] [review]
Removes references for unimplemented interfaces

Hi, Vincent!

This bug happens when accerciser is installed in a language different from english AND tries to identify interfaces that aren't implemented. 

Basically, accerciser was using expander labels (things that vary from a language to another) to find the expander ids (things that are always in english) of unimplemented interfaces. When the labels were in a language different from english, ids weren't found and the error you pointed out was raised. 

Since the unimplemented interfaces do nothing at the moment, I commented them from the interface viewer plugin and removed the code that was using labels to find ids (something that should never be done). I intend to write code for these unimplemented interfaces very soon, so this patch isn't a long-term solution - just something one can use to avoid this error.
Comment 3 Javier Hernández 2012-05-18 20:46:53 UTC
Hi!

Thank you Vincent and Aline, I'm doing some bugzilla cleaning and this bug is duplicated with #671261. I provided a patch for it.

Cheers!

*** This bug has been marked as a duplicate of bug 671261 ***