Package Details: cpu-g-bzr 1:r13-2

Git Clone URL: https://aur.archlinux.org/cpu-g-bzr.git (read-only, click to copy)
Package Base: cpu-g-bzr
Description: An application that shows useful information about your CPU, Motherboard and some general information about your system.
Upstream URL: http://cpug.sourceforge.net/
Licenses: GPL3
Conflicts: cpu-g
Provides: cpu-g
Submitter: Muflone
Maintainer: Muflone
Last Packager: Muflone
Votes: 27
Popularity: 0.000001
First Submitted: 2012-09-02 11:41 (UTC)
Last Updated: 2019-08-31 13:44 (UTC)

Latest Comments

Armag67 commented on 2019-09-01 20:12 (UTC) (edited on 2019-09-05 00:08 (UTC) by Armag67)

Hello,

Abort at launch in Manjaro Xfce with throwing:

core set to #0
Traceback (most recent call last):
  File "/usr/bin/cpu-g", line 640, in <module>
    CPUG()
  File "/usr/bin/cpu-g", line 553, in init
    self.wTree.get_object("xorg").set_text(main().xver())
  File "/usr/bin/cpu-g", line 361, in xver
    return re.findall("X.Org X Server (.*)", stderr)[0]
IndexError: list index out of range
Because Xorg -version can recently only be invoqued in a Alt-Ctrl console, not in a terminal running in a Xorg server, neither in python script.

Changing the xver function (lignes 358-361) to:


def xver(self):
    command = subprocess.Popen(['Xorg', '-version'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
    stdout, stderr = command.communicate()
    try:
        result = re.findall("X.Org X Server (.*)", stderr)[0]
    except IndexError:
        command = subprocess.Popen(['cat', '/var/log/Xorg.0.log'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
        stdout, stderr = command.communicate()
        try:
            result = re.findall("X.Org X Server (.*)", stdout)[0]
        except IndexError:
            result = "N/A"
    return result

And it works... ;=)

Muflone commented on 2019-08-31 16:08 (UTC)

Please migrate to cpu-g-git which offers a more updated and GTK+ 3 version of the same software

chris_l commented on 2019-01-18 04:29 (UTC)

I get this error:

File "/usr/bin/cpu-g", line 353, in xver command = subprocess.Popen(['/usr/lib/xorg-server/Xorg', '-version'],stdout=subprocess.PIPE,stderr=subprocess.PIPE)

And it make sense, since Arch does not have Xorg under "/usr/lib/xorg-server/Xorg". By editing line 353 and replacing the path to "/usr/lib/Xorg", it works.

SpectralMemories commented on 2018-10-16 04:05 (UTC)

PKGBUILD does not seem to work, as the source argument is not provided

electricprism commented on 2018-01-08 10:35 (UTC)

Is there a GTK3 version available?

Muflone commented on 2014-12-30 09:38 (UTC)

@josealb77 this is a defect with the software itself, please file a bug upstream https://bugs.launchpad.net/cpug I think this bug is related https://bugs.launchpad.net/cpug/+bug/959025

josealb77 commented on 2014-12-30 06:36 (UTC)

When I execute cpu-g I get this output: [user@ArchLinux ~]$ cpu-g core set to #0 Traceback (most recent call last): File "/usr/bin/cpu-g", line 631, in <module> CPUG() File "/usr/bin/cpu-g", line 544, in __init__ self.wTree.get_object("xorg").set_text(main().xver()) File "/usr/bin/cpu-g", line 355, in xver return re.findall("X\.Org X Server (.*)", stderr)[0] IndexError: list index out of range [user@ArchLinux ~]$ And cpu-g is not launched. I've uninstalled it with pacman -Rn and reinstalled it but still fails.