Bug 2391530 - Failed to create renderer: Config file not found in search paths
Summary: Failed to create renderer: Config file not found in search paths
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: powerline
Version: 43
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Christoph Erhardt
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-08-28 18:37 UTC by Artur Frenszek-Iwicki
Modified: 2025-09-12 19:23 UTC (History)
5 users (show)

Fixed In Version: powerline-2.8.4-16.fc43
Clone Of:
Environment:
Last Closed: 2025-09-12 19:23:34 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.