Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #26026
Closed
Open
Issue created May 05, 2018 by cypherpunks@cypherpunks

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
Assignee
Assign to
Time tracking