-
Notifications
You must be signed in to change notification settings - Fork 21
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
Running without sudo returns TypeError #11
Comments
Hello, It's not a sudo concern. CPU-G throws the same error at line 1079 in sudo mode. It's due to a switching from amperes to watts for power supply in the latest kernels updates.
to make this application work properly on my Manjaro (18.0.4, Xfce stable, kernel 4.19.66-1) box with french locale (and displaying now Xorg version, accurate distro logo, battery charges: now, full, full design and power now with the good units). Take a look at the two files in the attached tar.gz part and compare them with the original files of the 25478f0 commit with Link to attachment: cpu-g-src.tar.gz In your system the original files should be in: Edit: answer modified for more clarity |
Hi, I replaced the original
Environment Ubuntu 18.04 bonic |
There is a subtle bug in the
which is buggy.
But do not forget to respect the indentations, especially the 12 spaces at the beginning of the first line. Edited January, 9 for more clarity. |
I was able to reproduce the error in @BriFuture's comment on Ubuntu 18.04 by installing CPU-G from the PPA then running it in the terminal without
Applying the first fix only shifts the line number for me.
Applying both the first fix and the second fix finally solves the problem -- now it runs but gives an interesting terminal output, both without and with
Here's an interesting bit: when I only applied the second fix (but not the first), I can run it without
Finally, to remove the interesting output, commit 073e93. For other PPA users out there: change line 269 in coresinsysdev = str(
len(re.findall("'cpu[0-9]'",
str(os.listdir("/sys/devices/system/cpu/"))))) to coresinsysdev = str(
len(re.findall("'cpu[0-9]+'",
str(os.listdir("/sys/devices/system/cpu/"))))) |
still relevant |
Fresh xubuntu 19.04. Installed thought apt repository.
The text was updated successfully, but these errors were encountered: