NameError in ThinkHDAPS: name 'ThreadedNotifier' is not defined

Bug #580610 reported by leigh123linux
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Awn Extras
Fix Released
Medium
onox

Bug Description

abrt 1.0.9 detected a crash.

architecture: x86_64
cmdline: python
/usr/share/avant-window-navigator/applets/thinkhdaps/thinkhdaps.py
--uid=1273852172 --window=14795582 --panel-id=1
comment: Removed applet from the dock.
component: awn-extras-applets
executable: /usr/share/avant-window-navigator/applets/thinkhdaps/thinkhdaps.py
kernel: 2.6.32.11-99.fc12.x86_64
package: awn-extras-applets-0.4.0-5.fc12
reason: thinkhdaps.py:190:<module>:NameError: name 'ThreadedNotifier' is not
defined
release: Fedora release 12 (Constantine)

backtrace
-----
thinkhdaps.py:190:<module>:NameError: name 'ThreadedNotifier' is not defined

Traceback (most recent call last):
  File "/usr/share/avant-window-navigator/applets/thinkhdaps/thinkhdaps.py",
line 190, in <module>
    if isinstance(notifier, ThreadedNotifier):
NameError: name 'ThreadedNotifier' is not defined

Local variables in innermost frame:
compare_linux_version: <function compare_linux_version at 0x2698488>
protect_file: 'device/unload_heads'
hdaps_short_description: '%s protected from shocks'
check_status_interval: 0.10000000000000001
OverlayThemedIcon: <type 'awn.OverlayThemedIcon'>
operator: <module 'operator' from
'/usr/lib64/python2.6/lib-dynload/operator.so'>
GInitiallyUnowned: <class 'gtk.__main__.GInitiallyUnowned'>
applet_name: 'ThinkHDAPS'
gtk: <module 'gtk' from
'/usr/lib64/python2.6/site-packages/gtk-2.0/gtk/__init__.pyc'>
__package__: None
platform: <module 'platform' from '/usr/lib64/python2.6/platform.pyc'>
ThinkHDAPSApplet: <class __main__.ThinkHDAPSApplet at 0x2681ef0>
__version__: '0.4.0'
applet_description: 'Applet that shows the shock protection status of your
disks'
glib: <module 'glib' from
'/usr/lib64/python2.6/site-packages/gtk-2.0/glib/__init__.pyc'>
version_ge_2_6_28: True
__builtins__: <module '__builtin__' (built-in)>
__file__: '/usr/share/avant-window-navigator/applets/thinkhdaps/thinkhdaps.py'
pygtk: <module 'pygtk' from '/usr/lib64/python2.6/site-packages/pygtk.pyc'>
applet_logo:
'/usr/share/avant-window-navigator/applets/thinkhdaps/images/thinkhdaps-logo.svg'
sysfs_dir: '/sys/block'
__name__: '__main__'
awnlib: <module 'awn.extras.awnlib' from
'/usr/lib64/python2.6/site-packages/awn/extras/awnlib.pyc'>
no_hdaps_short_description: '%s not protected from shocks'
__doc__: None
pyinotify: None
os: <module 'os' from '/usr/lib64/python2.6/os.pyc'>
notifier: None

Bug forwarded from https://bugzilla.redhat.com/show_bug.cgi?id=592357

Related branches

Revision history for this message
leigh123linux (leigh123linux-deactivatedaccount) wrote :

How to reproduce:

1. Open Awn Settings, go to Applets pane.
1. Add ThinkHDAPS applet.
2. Remove ThinkHDAPS applet.
3. Crash!

onox (onox)
Changed in awn-extras:
assignee: nobody → onox (onox)
importance: Undecided → Medium
milestone: none → 0.4.2
status: New → Confirmed
tags: added: applet thinkhdaps traceback
Revision history for this message
onox (onox) wrote :

Fixed in revision 1306.

Changed in awn-extras:
status: Confirmed → Fix Committed
Revision history for this message
leigh123linux (leigh123linux-deactivatedaccount) wrote :

Thank you, I have applied the commit diff and added python-inotify as a run requirement for my package.

Revision history for this message
onox (onox) wrote :

Did you test the diff before you installed python-inotify? :) python-inotify is optional in case you didn't know. It's recommended though because it should reduce polling/wakeups.

Revision history for this message
leigh123linux (leigh123linux-deactivatedaccount) wrote :

Yes I did test the diff first and it fixed the abrt crash report.

onox (onox)
summary: - thinkhdaps - thinkhdaps.py:190:<module>:NameError: name
- 'ThreadedNotifier' is not defined
+ NameError in ThinkHDAPS: name 'ThreadedNotifier' is not defined
Povilas Kanapickas (p12)
Changed in awn-extras:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.