Tlpui doesnt open and i dont know if its working

when i try to open tlpui from terminal it says this and doesnt open:

tlpui
Traceback (most recent call last):
  File "/usr/bin/tlpui", line 33, in <module>
    sys.exit(load_entry_point('TLPUI==1.4.0.post1', 'gui_scripts', 'tlpui')())
  File "/usr/lib/python3.10/site-packages/tlpui/__main__.py", line 31, in main
    init_tlp_file_config()
  File "/usr/lib/python3.10/site-packages/tlpui/file.py", line 41, in init_tlp_file_config
    settings.tlpconfig_defaults = get_tlp_config_defaults(tlpversion)
  File "/usr/lib/python3.10/site-packages/tlpui/file.py", line 27, in get_tlp_config_defaults
    tlpconfig_defaults = extract_default_tlp_configs(f"{settings.workdir}/defaults/tlp-{tlpversion}.conf")
  File "/usr/lib/python3.10/site-packages/tlpui/filehelper.py", line 41, in extract_default_tlp_configs
    fileopener = open(filename)
FileNotFoundError: [Errno 2] no such directory: '/usr/lib/python3.10/site-packages/tlpui/defaults/tlp-1_5.conf'

this happened after an system update

sudo pacman -R tlpui && sudo pacman -S tlpui

didn’t work.

It probably has to do with the Python upgrade. I’ve notified the package maintainer to come and take a look at this thread.

:man_shrugging:

It appears to be a version mismatch with tlp and tlpui.

What is the output of:

pacman -Qi tlp tlpui
Name : tlp
Version : 1.5.0-2
Description : Linux Advanced Power Management
Architecture : any
URL: https://linrunner.de/en/tlp/tlp.html
Licenses: GPL2
Groups : None
Provided: None
Dependencies: hdparm iw pciutils perl rfkill systemd usbutils
                         util-linux
Optional Dependencies: acpi_call: ThinkPad battery functions, Sandy Bridge and
                         newer
                         bash-completion: Bash completion [installed]
                         ethtool: Disable Wake On Lan
                         smartmontools: Display S.M.A.R.T. data in tlp-stat
                         tp_smapi: ThinkPad battery functions
                         x86_energy_perf_policy: Set energy versus performance
                         policy on x86 processors
Needed: tlpui
Optional: None
Conflicts : laptop-mode-tools pm-utils
Changed : None
Installation Size: 459.83 KiB
Packer : Mark Wagie <mark@manjaro.org>
Build Date : Wed 12 Jan 2022 07:14:28
Upload Date : Fri 14 Jan 2022 02:34:55
Installation Reason : Directly installed
Setup Script: Yes
Verified by: Signature

Name : tlpui
Version : 1.4.0.1-2
Description : A GTK user interface for TLP written in Python
Architecture : any
URL: https://github.com/d4nj1/TLPUI
Licenses: GPL2
Groups : None
Provided: None
Dependencies: tlp python-gobject
Preferential Dependencies: None
Required: None
Optional: None
Conflicts : None
Changed : None
Installation Size: 1010.12 KiB
Packer : Mark Wagie <mark@manjaro.org>
Build Date : Mon 13 Dec 2021 08:02:14
Upload Date : Sat Jan 22, 2022 02:05:17
Installation Reason : Directly installed
Setup Script: No
Verified by: Signature

Just as I suspected. You have tlp 1.5.0 with tlpui 1.4.0 which is not compatible with tlp 1.5.0.

Apparently I forgot to push tlpui 1.5.0 to stable, sorry about that. You’ll see tlpui 1.5.0-1 in the stable branch here shortly.

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.