TypeError in Battery Status: an integer is required

Bug #645462 reported by baal on 2010-09-22
538
This bug affects 110 people
Affects Status Importance Assigned to Milestone
Awn Extras
Medium
Ali Fatemi
awn-extras (Ubuntu)
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

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
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

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
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
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
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

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.

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.
>
>

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) on 2010-10-04
Changed in awn-extras:
status: Incomplete → Confirmed
importance: Undecided → Medium
milestone: none → 0.4.2
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

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.

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

onox (onox) wrote :

abo, no need to paste the traceback again :)

Changed in awn-extras:
status: Confirmed → In Progress

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

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

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%).

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

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.

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

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

onox (onox) wrote :

Removing assigning because I'm leaving Awn Extras.

Changed in awn-extras:
assignee: onox (onox) → nobody
status: In Progress → Confirmed
jcbalsas (jcbalsas) wrote :

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

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.

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

Launchpad Janitor (janitor) wrote :

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

Robert Roth (evfool) on 2012-01-03
affects: ubuntu → awn-extras (Ubuntu)
Changed in awn-extras (Ubuntu):
status: New → Confirmed
Changed in awn-extras (Ubuntu):
status: New → Confirmed
Ali Fatemi (ali-fatemi) on 2012-05-02
Changed in awn-extras:
assignee: nobody → Ali Fatemi (ali-fatemi)
Changed in awn-extras (Ubuntu):
assignee: nobody → Ali Fatemi (ali-fatemi)
OttifantSir (ottifantsir) wrote :

Happened while booting 12.04 without Unity Plugin active

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.

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  Edit
Everyone can see this information.

Other bug subscribers