Opened 9 months ago

Closed 6 weeks ago

#30465 closed defect (duplicate)

Python error and program crash when pressing "m" menu key

Reported by: cypherpunks Owned by: atagar
Priority: Medium Milestone:
Component: Archived/Nyx Version: Tor:
Severity: Normal Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


Running system:

FreeBSD hostname 12.0-RELEASE FreeBSD 12.0-RELEASE r341666 GENERIC amd64



When I run Nyx and press the "m" key for the menu, I get the following error:

Traceback (most recent call last):
  File "/usr/local/bin/nyx", line 11, in <module>
    load_entry_point('nyx==2.1.0', 'console_scripts', 'nyx')()
  File "/usr/local/lib/python3.6/site-packages/nyx/", line 176, in main
  File "/usr/local/lib/python3.6/site-packages/stem/util/", line 289, in wrapped
    return func(*args, config = config, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/nyx/", line 128, in main
    nyx.curses.start(nyx.draw_loop, acs_support = config.get('acs_support', True), transparent_background = True, cursor = False)
  File "/usr/local/lib/python3.6/site-packages/nyx/", line 219, in start
  File "/usr/local/lib/python3.6/curses/", line 94, in wrapper
    return func(stdscr, *args, **kwds)
  File "/usr/local/lib/python3.6/site-packages/nyx/", line 217, in _wrapper
  File "/usr/local/lib/python3.6/site-packages/nyx/", line 221, in draw_loop
  File "/usr/local/lib/python3.6/site-packages/nyx/", line 210, in show_menu
    selection_x = _draw_top_menubar(menu, cursor.selection)
  File "/usr/local/lib/python3.6/site-packages/nyx/", line 296, in _draw_top_menubar
    nyx.curses.draw(_render, height = 1, background = RED)
  File "/usr/local/lib/python3.6/site-packages/nyx/", line 758, in draw
    curses_subwindow.bkgd(' ', curses_attr(background, HIGHLIGHT))
  File "/usr/local/lib/python3.6/site-packages/nyx/", line 440, in curses_attr
    encoded |= _color_attr()[override if override else attr]
KeyError: 'none'

Child Tickets

Change History (3)

comment:1 Changed 5 months ago by 5y5f4il

Hey! It's ok if I try to tackle this one?

comment:2 Changed 5 months ago by atagar

Sure! Feel free. Delighted to merge a fix. :)

comment:3 Changed 6 weeks ago by atagar

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.