Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] list index out of range #4

Open
TheSandBoxMKG opened this issue Apr 14, 2024 · 1 comment
Open

[bug] list index out of range #4

TheSandBoxMKG opened this issue Apr 14, 2024 · 1 comment

Comments

@TheSandBoxMKG
Copy link

Initial setup is OK but this happens when trying to run the software after the initial setup:

Traceback (most recent call last):
  File "/usr/bin/huetui", line 8, in <module>
    r = Root(5, 4, "Hue TUI", b, c)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/huetui/frontend/root.py", line 13, in __init__
    MainWindow(root, bridge, config)
  File "/usr/lib/python3.11/site-packages/huetui/frontend/main_window.py", line 179, in __init__
    self.light_menu = self.master.add_light_menu("Lights", 1, 0, 2, 2)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/huetui/frontend/main_window.py", line 50, in add_light_menu
    new_light_menu = LightMenu(
                     ^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/huetui/frontend/lights_menu.py", line 64, in __init__
    xrdb_colors = get_xrdb_colors()
                  ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/huetui/frontend/utils.py", line 29, in get_xrdb_colors
    "black": colors[0],
             ~~~~~~^^^
IndexError: list index out of range
@channel-42
Copy link
Owner

Hey 👋🏼
Can you provide me with the output of xrdb -query on your system?
I think this bug may occur, when xrdb is installed, but no colors are set in .Xresources.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants