Bug 1226161

Summary: slimbookintelcontroller packaged in home:edogawa doesn't launch
Product: [openSUSE] openSUSE.org Reporter: Áron Kovács <aronkvh>
Component: 3rd party softwareAssignee: Edgar Aichinger <edogawa>
Status: NEW --- QA Contact: E-mail List <screening-team-bugs>
Severity: Normal    
Priority: P5 - None    
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: openSUSE Tumbleweed   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Áron Kovács 2024-06-10 16:25:42 UTC
Hi,
I'm trying to launch slimbookintelcontroller, but it always fails with:


A
/usr/share/slimbookintelcontroller/src
Traceback (most recent call last):
  File "/usr/bin/slimbookintelcontroller", line 27, in <module>
    numProcRunning = pgrep[0].split("\n")
                     ^^^^^^^^^^^^^^
AttributeError: 'int' object has no attribute 'split'
Comment 1 Edgar Aichinger 2024-06-10 18:57:19 UTC
Thanks for reporting, please update and see if it launches now, I think I fixed it (I saw the same error and now it launches on my intel notebook).

If you watch Slimbookteam's github, it seems they are refactoring these amd and intel controller apps heavily currently. No idea when these changes will end up in new releases...
Comment 2 Áron Kovács 2024-06-10 20:08:56 UTC
Unfortunately it still fails with:
A
/usr/share/slimbookintelcontroller/src
Cannot open log file /var/slimbookintelcontroller.log, using /tmp/slimbookintelcontroller.log
Gurrent path: /usr/share/slimbookintelcontroller/src
13th Gen Intel(R) Core(TM) i7-13620H
CPU | Model: 'i7-13620H' | Version: i7 | CPU Numbers: 13620 | CPU Letters: H.
/home/aronkvh/.config/slimbookintelcontroller/slimbookintelcontroller.conf
Found thermal zone! (thermal_zone0)
Found thermal zone! (thermal_zone1)
Traceback (most recent call last):
  File "/usr/bin/slimbookintelcontroller", line 36, in <module>
    slimbookintelcontroller.main()
  File "/usr/share/slimbookintelcontroller/src/slimbookintelcontroller.py", line 673, in main
    win = SlimbookINTEL()
          ^^^^^^^^^^^^^^^
  File "/usr/share/slimbookintelcontroller/src/slimbookintelcontroller.py", line 120, in __init__
    self.init_gui()
  File "/usr/share/slimbookintelcontroller/src/slimbookintelcontroller.py", line 563, in init_gui
    if config.getboolean("CONFIGURATION", "autostart"):
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/configparser.py", line 844, in getboolean
    return self._get_conv(section, option, self._convert_to_boolean,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/configparser.py", line 824, in _get_conv
    return self._get(section, conv, option, raw=raw, vars=vars,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/configparser.py", line 819, in _get
    return conv(self.get(section, option, **kwargs))
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/configparser.py", line 797, in get
    d = self._unify_values(section, vars)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/configparser.py", line 1170, in _unify_values
    raise NoSectionError(section) from None
Comment 3 Edgar Aichinger 2024-06-11 07:19:01 UTC
Obviously you haven't read the manual, this app doesn't run without a config file in the expected place below your home directory.

https://slimbook.com/en/blog/guides-2/post/slimbook-intel-controller-306
Comment 4 Edgar Aichinger 2024-06-11 07:28:18 UTC
I'm sorry - I didn't want to sound rude, and the manual I linked isn't very clear about needing this config file as a prerequisite to launching.
A basic file is provided below /usr/share/slimbookintelcontroller/src/configuration/ - copy this to ~/.config/slimbookintelcontroller, and try again.
Possibly you have to add your CPU to the config file as described in the manual.
Comment 5 Áron Kovács 2024-06-11 07:46:36 UTC
(In reply to Áron Kovács from comment #2)
> Unfortunately it still fails with:
> A
> /usr/share/slimbookintelcontroller/src
> Cannot open log file /var/slimbookintelcontroller.log, using
> /tmp/slimbookintelcontroller.log
> Gurrent path: /usr/share/slimbookintelcontroller/src
> 13th Gen Intel(R) Core(TM) i7-13620H
> CPU | Model: 'i7-13620H' | Version: i7 | CPU Numbers: 13620 | CPU Letters: H.
> /home/aronkvh/.config/slimbookintelcontroller/slimbookintelcontroller.conf
> Found thermal zone! (thermal_zone0)
> Found thermal zone! (thermal_zone1)
> Traceback (most recent call last):
>   File "/usr/bin/slimbookintelcontroller", line 36, in <module>
>     slimbookintelcontroller.main()
>   File "/usr/share/slimbookintelcontroller/src/slimbookintelcontroller.py",
> line 673, in main
>     win = SlimbookINTEL()
>           ^^^^^^^^^^^^^^^
>   File "/usr/share/slimbookintelcontroller/src/slimbookintelcontroller.py",
> line 120, in __init__
>     self.init_gui()
>   File "/usr/share/slimbookintelcontroller/src/slimbookintelcontroller.py",
> line 563, in init_gui
>     if config.getboolean("CONFIGURATION", "autostart"):
>        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib64/python3.11/configparser.py", line 844, in getboolean
>     return self._get_conv(section, option, self._convert_to_boolean,
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib64/python3.11/configparser.py", line 824, in _get_conv
>     return self._get(section, conv, option, raw=raw, vars=vars,
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib64/python3.11/configparser.py", line 819, in _get
>     return conv(self.get(section, option, **kwargs))
>                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib64/python3.11/configparser.py", line 797, in get
>     d = self._unify_values(section, vars)
>         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib64/python3.11/configparser.py", line 1170, in _unify_values
>     raise NoSectionError(section) from None

Sorry,
I skipped that part because I assumed it's needed for non-slimbook devices only.