hermes - 💡(How to fix) Fix [Bug]: hermes plugins throws Value error [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
NousResearch/hermes-agent#13688Fetched 2026-04-22 08:04:41
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0
Participants

Error Message

hermes@9143f71809e9:/opt/hermes$ .venv/bin/hermes plugins Traceback (most recent call last): File "/opt/hermes/.venv/bin/hermes", line 10, in <module> sys.exit(main()) ~~~~^^ File "/opt/hermes/hermes_cli/main.py", line 8444, in main args.func(args) ~~~~~~~~~^^^^^^ File "/opt/hermes/hermes_cli/main.py", line 7458, in cmd_plugins plugins_command(args) ~~~~~~~~~~~~~~~^^^^^^ File "/opt/hermes/hermes_cli/plugins_cmd.py", line 1123, in plugins_command cmd_toggle() ~~~~~~~~~~^^ File "/opt/hermes/hermes_cli/plugins_cmd.py", line 806, in cmd_toggle _run_composite_ui(curses, plugin_names, plugin_labels, plugin_selected, ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ disabled, categories, console) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/hermes/hermes_cli/plugins_cmd.py", line 1020, in _run_composite_ui curses.wrapper(_draw) ~~~~~~~~~~~~~~^^^^^^^ File "/usr/lib/python3.13/curses/init.py", line 94, in wrapper return func(stdscr, *args, **kwds) File "/opt/hermes/hermes_cli/plugins_cmd.py", line 835, in _draw curses.init_pair(4, 8, -1) # dim gray ~~~~~~~~~~~~~~~~^^^^^^^^^^ ValueError: Color number is greater than COLORS-1 (7).

Root Cause

Root Cause Analysis (optional)

Fix Action

Fix / Workaround

Workaround: in /opt/hermes/hermes_cli/plugins_cmd.py replaced all instances of curses.init_pair(4, 8, -1) with curses.init_pair(4, 7, -1) -> no longer throws error. No idea whether changed value is the correct color.

Code Example

hermes@9143f71809e9:/opt/hermes$ .venv/bin/hermes plugins
Traceback (most recent call last):
  File "/opt/hermes/.venv/bin/hermes", line 10, in <module>
    sys.exit(main())
             ~~~~^^
  File "/opt/hermes/hermes_cli/main.py", line 8444, in main
    args.func(args)
    ~~~~~~~~~^^^^^^
  File "/opt/hermes/hermes_cli/main.py", line 7458, in cmd_plugins
    plugins_command(args)
    ~~~~~~~~~~~~~~~^^^^^^
  File "/opt/hermes/hermes_cli/plugins_cmd.py", line 1123, in plugins_command
    cmd_toggle()
    ~~~~~~~~~~^^
  File "/opt/hermes/hermes_cli/plugins_cmd.py", line 806, in cmd_toggle
    _run_composite_ui(curses, plugin_names, plugin_labels, plugin_selected,
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                      disabled, categories, console)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hermes/hermes_cli/plugins_cmd.py", line 1020, in _run_composite_ui
    curses.wrapper(_draw)
    ~~~~~~~~~~~~~~^^^^^^^
  File "/usr/lib/python3.13/curses/__init__.py", line 94, in wrapper
    return func(stdscr, *args, **kwds)
  File "/opt/hermes/hermes_cli/plugins_cmd.py", line 835, in _draw
    curses.init_pair(4, 8, -1)  # dim gray
    ~~~~~~~~~~~~~~~~^^^^^^^^^^
ValueError: Color number is greater than COLORS-1 (7).

---

Those contain my messages, no thank you...

---
RAW_BUFFERClick to expand / collapse

Bug Description

When i run hermes plugins it throws ValueError: Color number is greater than COLORS-1 (7).

Workaround: in /opt/hermes/hermes_cli/plugins_cmd.py replaced all instances of curses.init_pair(4, 8, -1) with curses.init_pair(4, 7, -1) -> no longer throws error. No idea whether changed value is the correct color.

Steps to Reproduce

Docker compose up the hermes container. enter container with docker exec -it hermes bash .venv/bin/hermes plugins Value Error

Expected Behavior

Should have shown the plugin thingy

Actual Behavior

hermes@9143f71809e9:/opt/hermes$ .venv/bin/hermes plugins
Traceback (most recent call last):
  File "/opt/hermes/.venv/bin/hermes", line 10, in <module>
    sys.exit(main())
             ~~~~^^
  File "/opt/hermes/hermes_cli/main.py", line 8444, in main
    args.func(args)
    ~~~~~~~~~^^^^^^
  File "/opt/hermes/hermes_cli/main.py", line 7458, in cmd_plugins
    plugins_command(args)
    ~~~~~~~~~~~~~~~^^^^^^
  File "/opt/hermes/hermes_cli/plugins_cmd.py", line 1123, in plugins_command
    cmd_toggle()
    ~~~~~~~~~~^^
  File "/opt/hermes/hermes_cli/plugins_cmd.py", line 806, in cmd_toggle
    _run_composite_ui(curses, plugin_names, plugin_labels, plugin_selected,
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                      disabled, categories, console)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hermes/hermes_cli/plugins_cmd.py", line 1020, in _run_composite_ui
    curses.wrapper(_draw)
    ~~~~~~~~~~~~~~^^^^^^^
  File "/usr/lib/python3.13/curses/__init__.py", line 94, in wrapper
    return func(stdscr, *args, **kwds)
  File "/opt/hermes/hermes_cli/plugins_cmd.py", line 835, in _draw
    curses.init_pair(4, 8, -1)  # dim gray
    ~~~~~~~~~~~~~~~~^^^^^^^^^^
ValueError: Color number is greater than COLORS-1 (7).

Affected Component

Configuration (config.yaml, .env, hermes setup)

Messaging Platform (if gateway-related)

No response

Debug Report

Those contain my messages, no thank you...

Operating System

debian 13

Python Version

No response

Hermes Version

Hermes Agent v0.10.0 (2026.4.16) Project: /opt/hermes Python: 3.13.5 OpenAI SDK: 2.32.0

Additional Logs / Traceback (optional)

Root Cause Analysis (optional)

No response

Proposed Fix (optional)

No response

Are you willing to submit a PR for this?

  • I'd like to fix this myself and submit a PR

extent analysis

TL;DR

The most likely fix is to adjust the color pair initialization in the hermes_cli/plugins_cmd.py file to use a valid color number.

Guidance

  • The error occurs because the color number used in curses.init_pair(4, 8, -1) exceeds the maximum allowed color number (7) for the current terminal configuration.
  • To fix this, you can try changing the color number to a valid value, such as 7, as mentioned in the workaround.
  • Verify that the changed color value (7) is the correct color by checking the appearance of the plugin UI after making the change.
  • Consider checking the terminal configuration and the curses library documentation to understand the color number limitations and how to handle them.

Example

# Replace the line causing the error with a valid color number
curses.init_pair(4, 7, -1)  # Use color number 7 instead of 8

Notes

The provided workaround suggests changing the color number to 7, but it's unclear if this is the intended color. Further investigation may be needed to determine the correct color value.

Recommendation

Apply the workaround by replacing the invalid color number with a valid one, such as 7, to resolve the immediate error. However, it's recommended to investigate further to ensure the correct color is being used.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

hermes - 💡(How to fix) Fix [Bug]: hermes plugins throws Value error [1 participants]