TypeError in Battery Status: an integer is required

Bug #645462 reported by baal
546
This bug affects 112 people
Affects Status Importance Assigned to Milestone
Awn Extras
Confirmed
Medium
Ali Fatemi
awn-extras (Ubuntu)
Confirmed
Undecided
Ali Fatemi

Bug Description

applet version: '0.4.1'

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 80, in __init__
    self.setup_context_menu()
  File "/usr/share/avant-window-navigator/applets/battery/battery.py", line 167, in setup_context_menu
    self.applet.settings.load_bindings(binder)
  File "/usr/lib/pymodules/python2.6/awn/extras/awnlib.py", line 846, in load_bindings
    return self.__client.load_bindings(object)
  File "/usr/lib/pymodules/python2.6/awn/extras/awnlib.py", line 928, in load_bindings
    self.__config_object = binder.create_gobject()
  File "/usr/lib/pymodules/python2.6/awn/extras/configbinder.py", line 84, in create_gobject
    return ConfigGObject()
  File "/usr/lib/pymodules/python2.6/awn/extras/configbinder.py", line 76, in __init__
    bind_property(client, group, key, self, name, widget, *data[1], **data[2])
  File "/usr/lib/pymodules/python2.6/awn/extras/configbinder.py", line 256, in bind_property
    set_widget_value(widget, value)
  File "/usr/lib/pymodules/python2.6/awn/extras/configbinder.py", line 146, in set_widget_value
    widget.set_active(value)
TypeError: an integer is required

Revision history for this message
onox (onox) wrote :

This bug report is totally useless right now. Please provide the traceback, how you reproduced this error, and version of your distribution.

Changed in awn-extras:
assignee: nobody → onox (onox)
status: New → Incomplete
tags: added: battery
Revision history for this message
Seria (andreas-boettger) wrote :

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 80, in __init__
    self.setup_context_menu()
  File "/usr/share/avant-window-navigator/applets/battery/battery.py", line 167, in setup_context_menu
    self.applet.settings.load_bindings(binder)
  File "/usr/lib/pymodules/python2.6/awn/extras/awnlib.py", line 846, in load_bindings
    return self.__client.load_bindings(object)
  File "/usr/lib/pymodules/python2.6/awn/extras/awnlib.py", line 928, in load_bindings
    self.__config_object = binder.create_gobject()
  File "/usr/lib/pymodules/python2.6/awn/extras/configbinder.py", line 84, in create_gobject
    return ConfigGObject()
  File "/usr/lib/pymodules/python2.6/awn/extras/configbinder.py", line 76, in __init__
    bind_property(client, group, key, self, name, widget, *data[1], **data[2])
  File "/usr/lib/pymodules/python2.6/awn/extras/configbinder.py", line 256, in bind_property
    set_widget_value(widget, value)
  File "/usr/lib/pymodules/python2.6/awn/extras/configbinder.py", line 146, in set_widget_value
    widget.set_active(value)
TypeError: an integer is required

Revision history for this message
onox (onox) wrote :

Please describe the version of your distribution, how you reproduce this error.

Which bzr version of awn-extras are you using? (you can find this in the version string of awn-extras (or whatever they call it in your distro) in your package manager)

Can you also reproduce it if you add a new instance of battery to the panel? Or only in old instances?

description: updated
description: updated
tags: added: traceback
Revision history for this message
xulsolar (dlucano) wrote :

Distribution: Ubuntu 64 bits
Version : 10.04.1
Awn : 0.4.1
bzr: 743+201009122042

Yes, if you a new instance you get the same error.

Changed in awn-extras:
status: Incomplete → Confirmed
Revision history for this message
onox (onox) wrote :

You pasted the bzr version of Awn itself, not the awn-extras project. This should be in the 1400 range.

+ another question: which locale/language do you use?

Changed in awn-extras:
status: Confirmed → Incomplete
Revision history for this message
mantis (mantis-1) wrote :

Hi I have the same Bug, when I plug out battery, and stand on power adapter.
Distribution: Ubuntu 64 bits
Version : 10.10 beta
Awn : 0.4.1
Poland/Polish

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 79, in __init__
    self.setup_context_menu()
  File "/usr/share/avant-window-navigator/applets/battery/battery.py", line 169, in setup_context_menu
    self.applet.settings.load_bindings(binder)
  File "/usr/lib/pymodules/python2.6/awn/extras/awnlib.py", line 846, in load_bindings
    return self.__client.load_bindings(object)
  File "/usr/lib/pymodules/python2.6/awn/extras/awnlib.py", line 928, in load_bindings
    self.__config_object = binder.create_gobject()
  File "/usr/lib/pymodules/python2.6/awn/extras/configbinder.py", line 84, in create_gobject
    return ConfigGObject()
  File "/usr/lib/pymodules/python2.6/awn/extras/configbinder.py", line 76, in __init__
    bind_property(client, group, key, self, name, widget, *data[1], **data[2])
  File "/usr/lib/pymodules/python2.6/awn/extras/configbinder.py", line 256, in bind_property
    set_widget_value(widget, value)
  File "/usr/lib/pymodules/python2.6/awn/extras/configbinder.py", line 146, in set_widget_value
    widget.set_active(value)
TypeError: an integer is required

Revision history for this message
onox (onox) wrote :

Please do this:

1) Plug in your battery
2) Create a new instance of the battery applet
3) Open its preferences window, paste the elements in the Battery combobox in a comment here.
4) Delete the applet instance
5) Plug out your battery
6) Create a new applet instance
7) Open preferences again and paste the various elements of Battery combobox again

Please tell me whether the traceback occurs in step 6.

Revision history for this message
mantis (mantis-1) wrote : Re: [Bug 645462] Re: TypeError in Battery Status: an integer is required

Hi,

  Yes, the same traceback occured again in step 6

cheers

Dnia 30 września 2010 0:51 onox <email address hidden> napisał(a):

> Please do this:
>
> 1) Plug in your battery
> 2) Create a new instance of the battery applet
> 3) Open its preferences window, paste the elements in the Battery combobox in a comment here.
> 4) Delete the applet instance
> 5) Plug out your battery
> 6) Create a new applet instance
> 7) Open preferences again and paste the various elements of Battery combobox again
>
> Please tell me whether the traceback occurs in step 6.
>
>

Revision history for this message
onox (onox) wrote :

Ok, I think the problem occurs when there are no elements in the combobox in the preferences window (because battery has been plugged out and AC cable is not a battery). I still want to know how many batteries you see in the Battery combobox in step 3. Is it 1?

onox (onox)
Changed in awn-extras:
status: Incomplete → Confirmed
importance: Undecided → Medium
milestone: none → 0.4.2
Revision history for this message
mantis (mantis-1) wrote :

  On 04.10.2010 03:09, onox wrote:
> Ok, I think the problem occurs when there are no elements in the
> combobox in the preferences window (because battery has been plugged out
> and AC cable is not a battery). I still want to know how many batteries
> you see in the Battery combobox in step 3. Is it 1?
>
Yes it is one element,
Imho, maybe should be added one more element for AC and then, when the
battery is plugged out applet switch value from name of battery to 'AC
Adapter' and everyone be happy ;)

Cheers Patryk

Revision history for this message
onox (onox) wrote :

Thanks for the info! I managed to reproduce it here as well by removing my one and only battery while on AC. I'll try to find a solution when I have some time.

Revision history for this message
Seria (andreas-boettger) wrote :

applet version: '0.4.1'
Ubuntu 10.10

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 79, in __init__
    self.setup_context_menu()
  File "/usr/share/avant-window-navigator/applets/battery/battery.py", line 169, in setup_context_menu
    self.applet.settings.load_bindings(binder)
  File "/usr/lib/pymodules/python2.6/awn/extras/awnlib.py", line 846, in load_bindings
    return self.__client.load_bindings(object)
  File "/usr/lib/pymodules/python2.6/awn/extras/awnlib.py", line 928, in load_bindings
    self.__config_object = binder.create_gobject()
  File "/usr/lib/pymodules/python2.6/awn/extras/configbinder.py", line 84, in create_gobject
    return ConfigGObject()
  File "/usr/lib/pymodules/python2.6/awn/extras/configbinder.py", line 76, in __init__
    bind_property(client, group, key, self, name, widget, *data[1], **data[2])
  File "/usr/lib/pymodules/python2.6/awn/extras/configbinder.py", line 256, in bind_property
    set_widget_value(widget, value)
  File "/usr/lib/pymodules/python2.6/awn/extras/configbinder.py", line 146, in set_widget_value
    widget.set_active(value)
TypeError: an integer is required

Revision history for this message
onox (onox) wrote :

abo, no need to paste the traceback again :)

Changed in awn-extras:
status: Confirmed → In Progress
Revision history for this message
Michal Widera (michal-widera-com) wrote :

Hi.
I've found this bug when i removed battery and started ubuntu without battery.ine
Mine trace back is following.
2.6.35-23-generic #41-Ubuntu SMP Wed Nov 24 10:18:49 UTC 2010 i686 GNU/Linux

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/awn/extras/awnlib.py", line 1510, in init_start
    applet_class(applet)
  File "/usr/share/avant-window-navigator/applets/battery/battery.py", line 79, in __init__
    self.setup_context_menu()
  File "/usr/share/avant-window-navigator/applets/battery/battery.py", line 169, in setup_context_menu
    self.applet.settings.load_bindings(binder)
  File "/usr/lib/pymodules/python2.6/awn/extras/awnlib.py", line 816, in load_bindings
    return self.__client.load_bindings(object)
  File "/usr/lib/pymodules/python2.6/awn/extras/awnlib.py", line 898, in load_bindings
    self.__config_object = binder.create_gobject()
  File "/usr/lib/pymodules/python2.6/awn/extras/configbinder.py", line 84, in create_gobject
    return ConfigGObject()
  File "/usr/lib/pymodules/python2.6/awn/extras/configbinder.py", line 76, in __init__
    bind_property(client, group, key, self, name, widget, *data[1], **data[2])
  File "/usr/lib/pymodules/python2.6/awn/extras/configbinder.py", line 256, in bind_property
    set_widget_value(widget, value)
  File "/usr/lib/pymodules/python2.6/awn/extras/configbinder.py", line 146, in set_widget_value
    widget.set_active(value)
TypeError: an integer is required

Regards,
Michal

Revision history for this message
ross sumera (rsumera) wrote :

This bug appear when the battery is almost fully charged or nearly discharged. Also the gnome battery indicator applet also disappeared.

Linux host 2.6.35-27-generic #48-Ubuntu SMP Tue Feb 22 20:25:46 UTC 2011 x86_64 GNU/Linux

Revision history for this message
ross sumera (rsumera) wrote :

The battery awn icon did not change state to battery+power_plug icon even with the charger connected after the recovery. Gnome battery indicator applet shows a charging state. AWN battery applet only show battery with red charge level (0%).

Revision history for this message
Stephen Geldersma (stepheng) wrote :

'Type error in battery status' for me as well - laptop battery is pulled out with AC power adapter connected. Error at login when computer boots and loads AWN battery application.

Ubuntu 10.10 | x64 | kernel 2.6.35-27
-----------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/awn/extras/awnlib.py", line 1580, in init_start
    applet_class(applet)
  File "/usr/share/avant-window-navigator/applets/battery/battery.py", line 79, in __init__
    self.setup_context_menu()
  File "/usr/share/avant-window-navigator/applets/battery/battery.py", line 169, in setup_context_menu
    self.applet.settings.load_bindings(binder)
  File "/usr/lib/pymodules/python2.6/awn/extras/awnlib.py", line 839, in load_bindings
    return self.__client.load_bindings(object)
  File "/usr/lib/pymodules/python2.6/awn/extras/awnlib.py", line 926, in load_bindings
    self.__config_object = binder.create_gobject()
  File "/usr/lib/pymodules/python2.6/awn/extras/configbinder.py", line 84, in create_gobject
    return ConfigGObject()
  File "/usr/lib/pymodules/python2.6/awn/extras/configbinder.py", line 76, in __init__
    bind_property(client, group, key, self, name, widget, *data[1], **data[2])
  File "/usr/lib/pymodules/python2.6/awn/extras/configbinder.py", line 256, in bind_property
    set_widget_value(widget, value)
  File "/usr/lib/pymodules/python2.6/awn/extras/configbinder.py", line 146, in set_widget_value
    widget.set_active(value)
TypeError: an integer is required

Revision history for this message
onox (onox) wrote :

It's useful to describe how to reproduce the bug, but pasting the traceback over and over again isn't. I know what's causing it, I just need to find some time.

Revision history for this message
equiman (equiman) wrote :

I Think this bug occurs when you use the laptop without battery. Directly connected to AC.

Distribution: Ubuntu 64 bits
Version : 10.19
Awn : 0.4.1-rewrite-bzr822+201102140003

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/awn/extras/awnlib.py", line 1580, in init_start
    applet_class(applet)
  File "/usr/share/avant-window-navigator/applets/battery/battery.py", line 79, in __init__
    self.setup_context_menu()
  File "/usr/share/avant-window-navigator/applets/battery/battery.py", line 169, in setup_context_menu
    self.applet.settings.load_bindings(binder)
  File "/usr/lib/pymodules/python2.6/awn/extras/awnlib.py", line 839, in load_bindings
    return self.__client.load_bindings(object)
  File "/usr/lib/pymodules/python2.6/awn/extras/awnlib.py", line 926, in load_bindings
    self.__config_object = binder.create_gobject()
  File "/usr/lib/pymodules/python2.6/awn/extras/configbinder.py", line 84, in create_gobject
    return ConfigGObject()
  File "/usr/lib/pymodules/python2.6/awn/extras/configbinder.py", line 76, in __init__
    bind_property(client, group, key, self, name, widget, *data[1], **data[2])
  File "/usr/lib/pymodules/python2.6/awn/extras/configbinder.py", line 256, in bind_property
    set_widget_value(widget, value)
  File "/usr/lib/pymodules/python2.6/awn/extras/configbinder.py", line 146, in set_widget_value
    widget.set_active(value)
TypeError: an integer is required

Revision history for this message
nakki (titibanjekistan) wrote :

This bug occurred to me today in natty. I started my notebook with no battery inserted. Version 0.4.1~bzr1507-0ubuntu1

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/awn/extras/awnlib.py", line 1580, in init_start
    applet_class(applet)
  File "/usr/share/avant-window-navigator/applets/battery/battery.py", line 79, in __init__
    self.setup_context_menu()
  File "/usr/share/avant-window-navigator/applets/battery/battery.py", line 169, in setup_context_menu
    self.applet.settings.load_bindings(binder)
  File "/usr/lib/pymodules/python2.7/awn/extras/awnlib.py", line 839, in load_bindings
    return self.__client.load_bindings(object)
  File "/usr/lib/pymodules/python2.7/awn/extras/awnlib.py", line 926, in load_bindings
    self.__config_object = binder.create_gobject()
  File "/usr/lib/pymodules/python2.7/awn/extras/configbinder.py", line 84, in create_gobject
    return ConfigGObject()
  File "/usr/lib/pymodules/python2.7/awn/extras/configbinder.py", line 76, in __init__
    bind_property(client, group, key, self, name, widget, *data[1], **data[2])
  File "/usr/lib/pymodules/python2.7/awn/extras/configbinder.py", line 256, in bind_property
    set_widget_value(widget, value)
  File "/usr/lib/pymodules/python2.7/awn/extras/configbinder.py", line 146, in set_widget_value
    widget.set_active(value)
TypeError: an integer is required

Revision history for this message
onox (onox) wrote :

Removing assigning because I'm leaving Awn Extras.

Changed in awn-extras:
assignee: onox (onox) → nobody
status: In Progress → Confirmed
Revision history for this message
jcbalsas (jcbalsas) wrote :

This error was produced when operating de laptop without battery, just switched directly to electricity

Revision history for this message
Javier Resendiz (javier-resendiz) wrote :

Yes, I had the same error when the laptop battery was not installed, just remove battery icon from avant until you
actually have the battery install then it works fine.

Revision history for this message
Beto1917 (beto-mst) wrote :

started the netbook without the battery. Traceback:

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/awn/extras/awnlib.py", line 1580, in init_start
    applet_class(applet)
  File "/usr/share/avant-window-navigator/applets/battery/battery.py", line 79, in __init__
    self.setup_context_menu()
  File "/usr/share/avant-window-navigator/applets/battery/battery.py", line 169, in setup_context_menu
    self.applet.settings.load_bindings(binder)
  File "/usr/lib/python2.7/dist-packages/awn/extras/awnlib.py", line 839, in load_bindings
    return self.__client.load_bindings(object)
  File "/usr/lib/python2.7/dist-packages/awn/extras/awnlib.py", line 926, in load_bindings
    self.__config_object = binder.create_gobject()
  File "/usr/lib/python2.7/dist-packages/awn/extras/configbinder.py", line 84, in create_gobject
    return ConfigGObject()
  File "/usr/lib/python2.7/dist-packages/awn/extras/configbinder.py", line 76, in __init__
    bind_property(client, group, key, self, name, widget, *data[1], **data[2])
  File "/usr/lib/python2.7/dist-packages/awn/extras/configbinder.py", line 256, in bind_property
    set_widget_value(widget, value)
  File "/usr/lib/python2.7/dist-packages/awn/extras/configbinder.py", line 146, in set_widget_value
    widget.set_active(value)
TypeError: an integer is required

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in awn-extras (Ubuntu):
status: New → Confirmed
Robert Roth (evfool)
affects: ubuntu → awn-extras (Ubuntu)
Changed in awn-extras (Ubuntu):
status: New → Confirmed
Ali Fatemi (ali-fatemi)
Changed in awn-extras:
assignee: nobody → Ali Fatemi (ali-fatemi)
Changed in awn-extras (Ubuntu):
assignee: nobody → Ali Fatemi (ali-fatemi)
Revision history for this message
OttifantSir (ottifantsir) wrote :

Happened while booting 12.04 without Unity Plugin active

Revision history for this message
aldobelus (aldobelus) wrote :

Trisquel 6.0, refers to Ubuntu 12.04 LTS
Version AWN: 0.4.1
It happens at start, after the first install fresh. I think is the second session I've initiated at the computer with this installation. The trace is exactly the same one, so I don't paste it again.

Revision history for this message
aldobelus (aldobelus) wrote :

Sorry, I forgot to say that the battery was connected and totally charged and the wire attached to AC.
The icon changed to a red cross instead the usual.
The language I use is spanish but only a few things of Avant are in spanish. Almost totally is in english.
The complete name of the version is 0.4.1-bzr1507-Oubuntu7.
For more info, mail me, please.

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.