Skip to content

Not working in Fedora 42 #262

@lucasmz-dev

Description

@lucasmz-dev

Describe the bug
The tool does not seem to work under F42, as it can not get the colours from the wallpaper

To Reproduce
Steps to reproduce the behavior:

  1. Use Fedora 42
  2. Try to use KDE Material You Colors

Expected behavior
To work fine in F42

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • Operating System: Fedora Linux 42
  • KDE Plasma Version: 6.3.4
  • KDE Frameworks Version: 6.13.0
  • Qt Version: 6.8.2
  • Kernel Version: 6.14.2-300.fc42.x86_64 (64-bit)
  • Graphics Platform: Wayland

Additional context
Here's some error logs:

lucas@fedora:~$ kde-material-you-colors
[D] utils: kill_existing: Found previous process in PID file: '10404' killing...
[I] main: main: ###### STARTED NEW SESSION v1.10.0 ######
[D] main: main: Installed in /usr/lib/python3.13/site-packages/kde_material_you_colors
[D] config: eval_conf: Config "iconslight": empty, using fallback: None
[D] config: eval_conf: Config "iconsdark": empty, using fallback: None
[D] config: eval_conf: Config "on_change_hook": empty, using fallback: None
[D] config: eval_conf: Config "color": empty, using fallback: None
[D] config: eval_conf: Config "custom_colors_list": empty, using fallback: None
[D] config: eval_conf: Config "darker_window_list": empty, using fallback: None
[D] main: main: {'light': False, 'file': None, 'monitor': 0, 'ncolor': 1, 'iconslight': None, 'iconsdark': None, 'pywal': True, 'pywal_light': False, 'light_blend_multiplier': 1, 'dark_blend_multiplier': 1, 'on_change_hook': None, 'sierra_breeze_buttons_color': False, 'disable_konsole': False, 'titlebar_opacity': 100, 'titlebar_opacity_dark': 100, 'toolbar_opacity': 100, 'toolbar_opacity_dark': 100, 'konsole_opacity': 100, 'konsole_opacity_dark': 100, 'konsole_blur': False, 'color': None, 'klassy_windeco_outline': False, 'custom_colors_list': None, 'darker_window_list': None, 'use_startup_delay': False, 'startup_delay': 0, 'plasma_follows_scheme': False, 'pywal_follows_scheme': False, 'main_loop_delay': 1.0, 'screenshot_delay': 900.0, 'once_after_change': False, 'pause_mode': False, 'screenshot_only_mode': False, 'scheme_variant': 2, 'chroma_multiplier': 1.1, 'tone_multiplier': 0.5, 'qdbus_executable': None, 'manual_fetch': False, 'fetch_colors': False}
[E] main: main: Could not get wallpaper Could not get compatible image from plugin org.kde.image, using screenshot method
[I] main: main: Wallpaper: org.kde.image (color): #ffffff
[E] m3_scheme_utils: get_material_you_colors: Error trying to get colors from #ffffff: float division by zero
Traceback (most recent call last):
  File "/usr/lib/python3.13/site-packages/kde_material_you_colors/utils/m3_scheme_utils.py", line 199, in get_material_you_colors
    theme = themeFromSourceColor(
        argbFromHex(source_color), scheme_variant, chroma_mult, tone_mult
    )
  File "/usr/lib/python3.13/site-packages/kde_material_you_colors/utils/m3_scheme_utils.py", line 119, in themeFromSourceColor
    scheme = getScheme(scheme_variant, source, False, 0)
  File "/usr/lib/python3.13/site-packages/kde_material_you_colors/utils/m3_scheme_utils.py", line 93, in getScheme
    return scheme_class(source, isDark, contrastLevel)
  File "/usr/lib64/python3.13/site-packages/materialyoucolor/scheme/scheme_fidelity.py", line 25, in __init__
    TemperatureCache(source_color_hct).complement()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib64/python3.13/site-packages/materialyoucolor/temperature/temperature_cache.py", line 134, in complement
    relative_temp = (
                    ~
        self.temps_by_hct[possible_answer] - coldest_temp
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ) / range_temp
    ~~^~~~~~~~~~~~
ZeroDivisionError: float division by zero

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendbugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions