Skip to content

[CachyOS] AUR Failed to Initialize Main Window #206

@BuckwheatBidoof

Description

@BuckwheatBidoof

Describe the bug
pcleaner-gui installed from the AUR cannot launch as it fails to initialize the main window

To Reproduce
Steps to reproduce the behavior:

  1. yay -S panelcleaner
  2. launch PanelCleaner with pcleaner-gui or the auto-created .desktop file

Expected behavior
Application shows up without issue

Session Log

2026-06-17 02:15:32.981 | INFO     | pcleaner.cli_utils:dump_system_info:292 - 
- Program Information -
Program: Panel Cleaner 2.11.9
Executing from: /opt/pipx-panelcleaner/venvs/pcleaner/lib/python3.14/site-packages/pcleaner/gui/launcher.py
Log file: /home/<username>/.cache/pcleaner/pcleaner.log
Config file: /home/<username>/.config/pcleaner/pcleanerrc
Cache directory: /home/<username>/.cache/pcleaner
- System Information -
Operating System: Linux 7.0.12-1-cachyos
Desktop Environment: KDE
Python Version: 3.14.5 (main, May 21 2026, 23:23:37) [GCC 16.1.1 20260430]
PySide (Qt) Version: 6.11.1
Available Qt Themes: Breeze, Windows, Fusion
Current Qt Theme: System Default
Current Icon Theme: System Default
System locale: en_US
Architecture: x86_64
CPU Cores: 16
Memory: 15.00 GiB
Swap: 56.91 GiB
GPU: None (CUDA not available)

2026-06-17 02:15:33.094 | INFO     | pcleaner.gui.launcher:launch:73 - Using locale en_US.
2026-06-17 02:15:33.095 | DEBUG    | pcleaner.gui.launcher:launch:80 - Loaded built-in Qt translations for en_US.
2026-06-17 02:15:33.095 | DEBUG    | pcleaner.gui.launcher:launch:88 - Loaded built-in Qt base translations for en_US.
2026-06-17 02:15:33.163 | CRITICAL | pcleaner.gui.launcher:launch:123 - Failed to initialize the main window.
Traceback (most recent call last):

  File "/opt/pipx-panelcleaner/venvs/pcleaner/bin/pcleaner-gui", line 6, in <module>
    sys.exit(main())
    │   │    └ <function main at 0x7fc43ef1f1c0>
    │   └ <built-in function exit>
    └ <module 'sys' (built-in)>
  File "/opt/pipx-panelcleaner/venvs/pcleaner/lib/python3.14/site-packages/pcleaner/gui/launcher.py", line 139, in main
    launch(args.image_path, args.debug)
    │      │                └ {'--debug': False,
    │      │                   '<image_path>': []}
    │      └ {'--debug': False,
    │         '<image_path>': []}
    └ <function launch at 0x7fc4d1284720>
> File "/opt/pipx-panelcleaner/venvs/pcleaner/lib/python3.14/site-packages/pcleaner/gui/launcher.py", line 119, in launch
    window = MainWindow(config, files_to_open, debug)
             │          │       │              └ False
             │          │       └ []
             │          └ Config(locale=None, current_profile=Profile(general=GeneralConfig(notes='', preferred_file_type=None, preferred_mask_file_typ...
             └ <class 'pcleaner.gui.mainwindow_driver.MainWindow'>
  File "/opt/pipx-panelcleaner/venvs/pcleaner/lib/python3.14/site-packages/pcleaner/gui/mainwindow_driver.py", line 134, in __init__
    self.ensure_models_downloaded()
    │    └ <function MainWindow.ensure_models_downloaded at 0x7fc43ef183b0>
    └ <pcleaner.gui.mainwindow_driver.MainWindow(0x55fb38e40f80, name="MainWindow") at 0x7fc43f00e980>
  File "/opt/pipx-panelcleaner/venvs/pcleaner/lib/python3.14/site-packages/pcleaner/gui/mainwindow_driver.py", line 445, in ensure_models_downloaded
    has_ocr = md.is_ocr_downloaded()
              │  └ <function is_ocr_downloaded at 0x7fc4dd368460>
              └ <module 'pcleaner.model_downloader' from '/opt/pipx-panelcleaner/venvs/pcleaner/lib/python3.14/site-packages/pcleaner/model_d...
  File "/opt/pipx-panelcleaner/venvs/pcleaner/lib/python3.14/site-packages/pcleaner/model_downloader.py", line 241, in is_ocr_downloaded
    return get_ocr_model_directory().is_dir()
           └ <function get_ocr_model_directory at 0x7fc4dd3687d0>
  File "/opt/pipx-panelcleaner/venvs/pcleaner/lib/python3.14/site-packages/pcleaner/model_downloader.py", line 230, in get_ocr_model_directory
    cache_dir = Path(file_utils.default_cache_path)
                │    └ <module 'transformers.file_utils' from '/opt/pipx-panelcleaner/venvs/pcleaner/lib/python3.14/site-packages/transformers/file_...
                └ <class 'pathlib.Path'>

AttributeError: module 'transformers.file_utils' has no attribute 'default_cache_path'

Additional context
the normal pcleaner command works fine without GUI, just can't launch with GUI

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions