Giter Club home page Giter Club logo

hue-tui's People

Contributors

channel-42 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

hue-tui's Issues

Unable to start after first config

I installed all dependencies, but after running the program I get this:

Traceback (most recent call last):
  File "/home/gisbi/.local/bin/huetui", line 666, in <module>
    if int(H.checkup()) == 1:
ValueError: invalid literal for int() with base 10: 'unauthorized user'

What can I do? I don't know what logs to post so feel free to tell me which ones are needed.

[bug] list index out of range

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

Unable to run the command huetui from terminal

Hey there,

I was able to install huetui without any errors but once I run it, it throws this error:

Traceback (most recent call last):
  File "/usr/local/bin/huetui", line 8, in <module>
    from hue_snek_pkg.hue_snek import Hue, Light
  File "/usr/local/lib/python3.7/site-packages/hue_snek_pkg/hue_snek.py", line 11, in <module>
    import urllib3
ModuleNotFoundError: No module named 'urllib3'

using python3 command and pip3 command in terminal (instead of python/pip, since I'm on macOs Catalina):
pip 20.0.2 from /usr/local/lib/python3.7/site-packages/pip (python 3.7)

Crash in macOS because of xrdb dependency

Hey, thanks for sharing this, it's a very cool and useful :). Unfortunately, I noticed that huetui crashes in macOS because xrdb is not available here:

Traceback (most recent call last):
  File "/opt/homebrew/bin/huetui", line 8, in <module>
    r = Root(5, 4, "Hue TUI", b, c)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/huetui/frontend/root.py", line 13, in __init__
    MainWindow(root, bridge, config)
  File "/opt/homebrew/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 "/opt/homebrew/lib/python3.11/site-packages/huetui/frontend/main_window.py", line 50, in add_light_menu
    new_light_menu = LightMenu(
                     ^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/huetui/frontend/lights_menu.py", line 45, in __init__
    colors, err = subprocess.Popen(
                  ^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/[email protected]/3.11.7_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py", line 1026, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/opt/homebrew/Cellar/[email protected]/3.11.7_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py", line 1950, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'xrdb'

After installing it via Homebrew huetui starts and works, though ๐Ÿ‘. However, this is more a workaround, xrdb -query will still not return results on macOS. So I would suggest to check if xrdb is available at runtime (or maybe alternatively check the OS) before calling it. If you like I can also do a PR.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.