Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not launch in Pop OS 20.04 #21

Open
Electw opened this issue May 28, 2020 · 3 comments
Open

Does not launch in Pop OS 20.04 #21

Electw opened this issue May 28, 2020 · 3 comments

Comments

@Electw
Copy link

Electw commented May 28, 2020

Installed it via PPA, application does not launch. It's likely due to Focal dropping Python 2, but is there a way to get the program running?

@atareao
Copy link
Owner

atareao commented May 30, 2020

@Electw can you run from terminal????

/opt/extras.ubuntu.com/cpu-g/bin/cpu-g

Thanks

@Electw
Copy link
Author

Electw commented May 30, 2020

Nope. This is the output:

Gtk-Message: 23:28:35.494: Failed to load module "appmenu-gtk-module"
[Errno 2] No translation file found for domain: 'cpu-g'
[Errno 2] No such file or directory: '/sys/class/power_supply/BAT0/charge_now'
[Errno 2] No such file or directory: '/sys/class/power_supply/BAT0/charge_now'
Traceback (most recent call last):
  File "/opt/extras.ubuntu.com/cpu-g/bin/cpu-g", line 42, in <module>
    cpug = CPUG()
  File "/opt/extras.ubuntu.com/cpu-g/share/cpu-g/cpug.py", line 999, in __init__
    self.update_info()
  File "/opt/extras.ubuntu.com/cpu-g/share/cpu-g/cpug.py", line 1318, in update_info
    self.start_battery_updater()
  File "/opt/extras.ubuntu.com/cpu-g/share/cpu-g/cpug.py", line 1346, in start_battery_updater
    self.get_battery_duration()
  File "/opt/extras.ubuntu.com/cpu-g/share/cpu-g/cpug.py", line 1079, in get_battery_duration
    inv.battery_info('charge-now')/1000000) + _(' Ah'))
TypeError: unsupported operand type(s) for /: 'str' and 'int'

@muhammadkholidb
Copy link

Got the same issue here, seems like no fix yet for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants