AttributeError in Battery Status: 'super' object has no attribute 'get_discharge_time'

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

Bug Description

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/awn/extras/awnlib.py", line 1540, in init_start
    applet_class(applet)
  File "/usr/share/avant-window-navigator/applets/battery/battery.py", line 85, in __init__
    self.check_status_cb()
  File "/usr/share/avant-window-navigator/applets/battery/battery.py", line 224, in check_status_cb
    time = self.backend.get_remaining_time()
  File "/usr/share/avant-window-navigator/applets/battery/battery.py", line 454, in get_remaining_time
    return super(UPowerBackend, self).get_discharge_time()
AttributeError: 'super' object has no attribute 'get_discharge_time'

1) Ubuntu 10.04
2) installed via ppa:
- ppa:awn-testing/ppa
3) bzr ver 2.2.0
4) WM compiz
5) intel gma 950
6) crash

Related branches

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

Fixed in revision 1416.

Btw, thank you for reading the bug report guidelines, you seem to be one of the very few people who do this :) :(

Changed in awn-extras:
status: Confirmed → Fix Committed
Revision history for this message
alvaro puello (alvaro-x95) wrote :

now i just discover that the applet works when the charger is plugged, but as soon as i unplug it the charge frezee (the charge % stay freeze and wont work again until i plug the charger back)
srry for my english :( not my native language

Revision history for this message
onox (onox) wrote :

Do you see anything in your terminal when you unplug the cable? (run avant-window-navigator in your terminal)

Revision history for this message
alvaro puello (alvaro-x95) wrote :

when unplugging the charger i get this (in the terminal):

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/awn/extras/awnlib.py", line 1196, in callback_wrapper
    callback()
  File "/usr/share/avant-window-navigator/applets/battery/battery.py", line 224, in check_status_cb
    time = self.backend.get_remaining_time()
  File "/usr/share/avant-window-navigator/applets/battery/battery.py", line 454, in get_remaining_time
    return super(UPowerBackend, self).get_discharge_time()
AttributeError: 'super' object has no attribute 'get_discharge_time'
(awn-applet:2203): Indicator-Sound-DEBUG: signal caught - sink input while muted with value 0

Revision history for this message
alvaro puello (alvaro-x95) wrote :

PD: after plugging again, im not gettin nothing (in the terminal) but the applet start working again

Revision history for this message
onox (onox) wrote :

Just wait for a new PPA to appear. Revision of current PPA 1415, which is lower than 1416.

Revision history for this message
alvaro puello (alvaro-x95) wrote :

wait for an update in the ppa¿? srry i didnt understand :P

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.