buxeasywork / batti-gtk

Automatically exported from code.google.com/p/batti-gtk
0 stars 0 forks source link

batti doesn't start #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If I start batti, I get the following output:

Exception AttributeError: "'UPowerBattery' object has no attribute
'_UPowerBattery__signal_id'" in <bound method UPowerBattery.__del__ of
<batti.battery.UPowerBattery object at 0xa017b8c>> ignored
Traceback (most recent call last):
  File "/usr/bin/batti", line 46, in <module>
    monitor = BatteryMonitor.BatteryMonitor()
  File "/usr/lib/python2.6/site-packages/batti/BatteryMonitor.py", line 34,
in __init__
    self.close(None)
  File "/usr/lib/python2.6/site-packages/batti/BatteryMonitor.py", line 97,
in close
    gtk.main_quit()
RuntimeError: called outside of a mainloop

I use batti 0.3.1 on Archlinux.

Original issue reported on code.google.com by pizzap...@gmail.com on 12 Apr 2010 at 11:31

GoogleCodeExporter commented 9 years ago
could you please try version 0.3.2? 

Original comment by arthapex on 13 Apr 2010 at 3:16

GoogleCodeExporter commented 9 years ago
eh, try 0.3.3, where the about dialog is working again

Original comment by arthapex on 13 Apr 2010 at 3:36

GoogleCodeExporter commented 9 years ago
With version 0.3.4 I get the following output:

Exception AttributeError: "'UPowerBattery' object has no attribute 
'_UPowerBattery__signal_id'" in <bound method UPowerBattery.__del__ of 
<batti.Battery.UPowerBattery object at 0x92e2c6c>> ignored

Neither UPower nor DeviceKit.Power could be initialized!
This can have multiple reasons. You do not want to use Hal, do you?
Here is the error for UPower:

    org.freedesktop.DBus.Error.ServiceUnknown: The name 
org.freedesktop.Notifications was not provided by any .service files

And this is the error for DeviceKit.Power:

    org.freedesktop.DBus.Error.ServiceUnknown: The name 
org.freedesktop.DeviceKit.Power was not provided by any .service files

Does that mean I must not use HAL? I need HAL for xorg and other software. I 
have 
installed upower.

Original comment by pizzap...@gmail.com on 19 Apr 2010 at 3:35

GoogleCodeExporter commented 9 years ago
>Does that mean I must not use HAL?
No. You still can use hal parallel to UPower.
The Problem is, that you don't seem to have a notification daemon installed: 
The name
org.freedesktop.Notifications was not provided by any .service files

Since I want batti to use notifications optionally, this is a bug in batti I 
have to
fix. Thank you for digging it out.

If you want to use it just now, you can install notification-daemon from gnome 
or
xfce-notification-daemon, or osd-notify. Probably there are some more of them. I
think you get the point. 
If you already have a notification-daemon installed, than dbus can't launch it, 
which
would mean your installation of the notification-daemon is buggy. On a correct
installation there should be the file
/usr/share/dbus-1/services/org.freedesktop.Notifications.service
which dbus uses to launch a notification daemon.

Original comment by arthapex on 19 Apr 2010 at 4:43

GoogleCodeExporter commented 9 years ago
Batti 0.3.5 starts without a notification daemon. Now it works. Thanks!

Original comment by pizzap...@gmail.com on 12 May 2010 at 6:38

GoogleCodeExporter commented 9 years ago
Glad it does. Thanks for mentioning. Marking as fixed.

Original comment by arthapex on 12 May 2010 at 9:13