Skip to content

ValueError: "blue" isn't a valid color - color_interface is not working

Hi,

I came across an error while editing my configuration file for nyx. When I choose the color "blue" as shown on the NYX-configuration page as an exsample, the error ""blue" isn't a valid color" is recived.

In fact none of the colors for "color_interface" work.

Configuration file /home//.nyx/config/nyxrc

graph_stat bandwidth
graph_bound tight
max_graph_width 200
show_interpreter false
connection_rate 10
#acs_support true
color_override blue
#color_interface false

Error from python3

Traceback (most recent call last):
  File "/usr/local/bin/nyx", line 11, in <module>
    load_entry_point('nyx==2.0.4.dev0', 'console_scripts', 'nyx')()
  File "/usr/local/lib/python3.5/dist-packages/nyx-2.0.4.dev0-py3.5.egg/nyx/__init__.py", line 176, in main
    nyx.starter.main()
  File "/usr/local/lib/python3.5/dist-packages/stem-1.6.0-py3.5.egg/stem/util/conf.py", line 289, in wrapped
    return func(*args, config = config, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/nyx-2.0.4.dev0-py3.5.egg/nyx/starter.py", line 75, in main
    config.load(args.config)
  File "/usr/local/lib/python3.5/dist-packages/stem-1.6.0-py3.5.egg/stem/util/conf.py", line 503, in load
    self.load(os.path.join(root, filename))
  File "/usr/local/lib/python3.5/dist-packages/stem-1.6.0-py3.5.egg/stem/util/conf.py", line 526, in load
    self.set(key, value.strip(), False)
  File "/usr/local/lib/python3.5/dist-packages/stem-1.6.0-py3.5.egg/stem/util/conf.py", line 654, in set
    listener(self, key)
  File "/usr/local/lib/python3.5/dist-packages/stem-1.6.0-py3.5.egg/stem/util/conf.py", line 190, in update
    interceptor_value = self.interceptor(key, new_value)
  File "/usr/local/lib/python3.5/dist-packages/nyx-2.0.4.dev0-py3.5.egg/nyx/curses.py", line 173, in conf_handler
    raise ValueError('"%s" isn\'t a valid color' % value)
ValueError: "blue" isn't a valid color

Best regards and thanks for the good work.

Stephan

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information