cpu-g version 0.15.0-1ubuntu0 does not launch under Ubuntu 18.04

Bug #1813457 reported by Kirill Marchuk on 2019-01-27
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

I've download the deb file from here: http://ppa.launchpad.net/atareao/atareao/ubuntu/pool/main/c/cpu-g/cpu-g_0.15.0-1ubuntu0_all.deb

any attempt to launch the tool leads to crash report

if I run it from terminal, this is what I get as an output:

./cpu-g:26: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk
[Errno 2] No translation file found for domain: 'cpu-g'
[Errno 2] No such file or directory: '/sys/class/power_supply/BAT0/charge_now'
Traceback (most recent call last):
  File "./cpu-g", line 37, in <module>
    cpug = CPUG()
  File "/opt/extras.ubuntu.com/cpu-g/share/cpu-g/cpug.py", line 1001, in __init__
  File "/opt/extras.ubuntu.com/cpu-g/share/cpu-g/cpug.py", line 1304, in update_info
  File "/opt/extras.ubuntu.com/cpu-g/share/cpu-g/cpug.py", line 1332, in start_battery_updater
  File "/opt/extras.ubuntu.com/cpu-g/share/cpu-g/cpug.py", line 1071, in get_battery_duration
    inv.battery_info('charge-now')/1000000) +
  File "/opt/extras.ubuntu.com/cpu-g/share/cpu-g/investigator.py", line 179, in battery_info
    info = int(self.readfile(os.path.join(BATTERY_DIR, 'charge_now')))
ValueError: invalid literal for int() with base 10: 'N/A'

what am I doing wrong?

Kirill Marchuk (62mkv) wrote :

this is what I have in /sys/class/power_supply/BAT0 folder:

alarm energy_full_design present uevent
capacity energy_now serial_number voltage_min_design
capacity_level manufacturer status voltage_now
cycle_count model_name subsystem
device power technology
energy_full power_now type

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers