TypeError in Battery Status: must be type, not classobj

Bug #1018989 reported by Darshit Shah
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Awn Extras
New
Undecided
Unassigned

Bug Description

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/awn/extras/awnlib.py", line 1462, in init_start
    applet_class(applet)
  File "/usr/share/avant-window-navigator/applets/battery/battery.py", line 86, in __init__
    self.check_status_cb()
  File "/usr/share/avant-window-navigator/applets/battery/battery.py", line 237, in check_status_cb
    time = self.backend.get_charge_time()
  File "/usr/share/avant-window-navigator/applets/battery/battery.py", line 455, in get_charge_time
    return super(UPowerBackend, self).get_charge_time()
TypeError: must be type, not classobj

Distribution: Arch Linux
Kernel: 3.4.42
Installed from AUR
Window Manager: xfwm4
applet version: 0.4.0

There was a similar bug to this on luanchpad, but it was claimed to be fixed 2 years ago. So reporting it again.
AWM was working perfectly and I made no changes to it. But suddenly after a system reboot, the battery applet started crashing.
I have no idea how to reproduce this bug.

UPDATE: Simply killing and restarting X server solved the problem. I don't think this is can be reproduced.

description: updated
Revision history for this message
Rikard Johansson (rikard-jo) wrote :

Gettings this typeError as well.

Here is the traceback

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/awn/extras/awnlib.py", line 1462, in init_start
    applet_class(applet)
  File "/usr/share/avant-window-navigator/applets/battery/battery.py", line 86, in __init__
    self.check_status_cb()
  File "/usr/share/avant-window-navigator/applets/battery/battery.py", line 237, in check_status_cb
    time = self.backend.get_charge_time()
  File "/usr/share/avant-window-navigator/applets/battery/battery.py", line 455, in get_charge_time
    return super(UPowerBackend, self).get_charge_time()
TypeError: must be type, not classobj

Kernel: 3.7.5-1-ARCH x86_64

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.