Bug 2391530

Summary: Failed to create renderer: Config file not found in search paths
Product: [Fedora] Fedora Reporter: Artur Frenszek-Iwicki <fedora>
Component: powerlineAssignee: Christoph Erhardt <fedora>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 43CC: asn, fedora, jamatos, luya_tfz, michel
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: powerline-2.8.4-16.fc43 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-09-12 19:23:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Artur Frenszek-Iwicki 2025-08-28 18:37:01 UTC
Feeling adventurous, I decided to upgrade my workstation to Fedora 43 pre-release.

When starting vim, the following error message pops up:
> ERROR:_fallback_:powerline:Failed to create renderer: Config file not found in search paths (/usr/lib/python3.14/site-packages/powerline/config_files, /home/rpmbuilder/.config/powerline): config.json

Seems like the "config_files" directory is now required?

This happens with:
- powerline-2.8.4-15.fc43.x86_64
- vim-enhanced-2:9.1.1623-1.fc43.x86_64
- vim-powerline-2.8.4-15.fc43.noarch

Comment 1 Luya Tshimbalanga 2025-08-28 22:15:00 UTC
I confirm the same issue after upgrading to Fedora 43 pre-release with the following traceback:

raceback (most recent call last):
  File "/usr/bin/powerline-config", line 20, in <module>
    pl = config.create_powerline_logger(args)
  File "/usr/lib/python3.14/site-packages/powerline/bindings/config.py", line 225, in create_powerline_logger
    config = get_main_config(args)
  File "/usr/lib/python3.14/site-packages/powerline/bindings/config.py", line 221, in get_main_config
    return load_config('config', find_config_files, config_loader)
  File "/usr/lib/python3.14/site-packages/powerline/__init__.py", line 193, in load_config
    for path in found_files:
                ^^^^^^^^^^^
  File "/usr/lib/python3.14/site-packages/powerline/__init__.py", line 40, in _find_config_files
    raise IOError('Config file not found in search paths ({0}): {1}'.format(
    ...<2 lines>...
    ))
OSError: Config file not found in search paths (/usr/lib/python3.14/site-packages/powerline/config_files, /home/luya/.config/powerline): config.json
Traceback (most recent call last):
  File "/usr/bin/powerline-config", line 20, in <module>
    pl = config.create_powerline_logger(args)
  File "/usr/lib/python3.14/site-packages/powerline/bindings/config.py", line 225, in create_powerline_logger
    config = get_main_config(args)
  File "/usr/lib/python3.14/site-packages/powerline/bindings/config.py", line 221, in get_main_config
    return load_config('config', find_config_files, config_loader)
  File "/usr/lib/python3.14/site-packages/powerline/__init__.py", line 193, in load_config
    for path in found_files:
                ^^^^^^^^^^^
  File "/usr/lib/python3.14/site-packages/powerline/__init__.py", line 40, in _find_config_files
    raise IOError('Config file not found in search paths ({0}): {1}'.format(
    ...<2 lines>...
    ))
OSError: Config file not found in search paths (/usr/lib/python3.14/site-packages/powerline/config_files, /home/luya/.config/powerline): config.json

Comment 2 José Matos 2025-08-29 07:08:22 UTC
Me too. :-)

The work around, since I do not have any local changes to the configuration is to call:

$ ln -s /etc/xdg/powerline ~/.config/

So I make a link to the global configuration from my local config and now all works again.
So this is a just shortcut while the original bug is not fixed.

Comment 3 Christoph Erhardt 2025-08-29 08:24:47 UTC
`pkgdiff` helped me track down the root cause of this regression. It was introduced during the %pyproject migration by commit https://src.fedoraproject.org/rpms/powerline/c/814ecb0a725e4b778c018bc58833e649e784b237: the `sed calls` that modify `powerline/config.py` should have been moved from the %install section to %build.

A fix is under way.

Comment 4 Fedora Update System 2025-08-29 08:46:30 UTC
FEDORA-2025-da0c7fcdf6 (powerline-2.8.4-16.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-da0c7fcdf6

Comment 5 Fedora Update System 2025-08-30 01:10:42 UTC
FEDORA-2025-da0c7fcdf6 has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-da0c7fcdf6`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-da0c7fcdf6

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2025-09-12 19:23:34 UTC
FEDORA-2025-da0c7fcdf6 (powerline-2.8.4-16.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.