hermes - 💡(How to fix) Fix [Bug]: Matrix messages returning error [3 comments, 3 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#17648Fetched 2026-04-30 06:46:15
View on GitHub
Comments
3
Participants
3
Timeline
10
Reactions
1
Author
Timeline (top)
labeled ×5commented ×3mentioned ×1subscribed ×1

Error Message

Matrix errors in the current version of Hermes return the following error: Sorry, I encountered an error (ImportError). 2. Hermes immediately returns "Sorry, I encountered an error (ImportError). 3. Using /reset or /new does not resolve the error; it recurs after, even though it initially returns the automatic message stating the current model Hermes replies: Sorry, I encountered an error (ImportError).

Additional Logs / Traceback (optional)

Root Cause

Root Cause Analysis (optional)

Code Example

unavailable

---
RAW_BUFFERClick to expand / collapse

Bug Description

Matrix errors in the current version of Hermes return the following error:

Sorry, I encountered an error (ImportError). cannot import name 'cfg_get' from 'hermes_cli.config' (/Users/assistant/.hermes/hermes-agent/hermes_cli/config.py) Try again or use /reset to start a fresh session.

Using /new or /reset does not resolve the issue.

Steps to Reproduce

  1. Send a message to Hermes agent using Matrix chat server (via Element / Element X app)
  2. Hermes immediately returns "Sorry, I encountered an error (ImportError). cannot import name 'cfg_get' from 'hermes_cli.config' (/Users/assistant/.hermes/hermes-agent/hermes_cli/config.py) Try again or use /reset to start a fresh session."
  3. Using /reset or /new does not resolve the error; it recurs after, even though it initially returns the automatic message stating the current model

Expected Behavior

A message should be returned by Hermes in response to the user

Actual Behavior

Hermes replies: Sorry, I encountered an error (ImportError). cannot import name 'cfg_get' from 'hermes_cli.config' (/Users/assistant/.hermes/hermes-agent/hermes_cli/config.py) Try again or use /reset to start a fresh session.

Affected Component

CLI (interactive chat)

Messaging Platform (if gateway-related)

N/A (CLI only)

Debug Report

unavailable

Operating System

macOS 26.3.1

Python Version

3.11

Hermes Version

0.11.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 issue is likely due to a missing or incorrect import in the hermes_cli.config module, and checking the config.py file for the cfg_get function or variable definition may help resolve the issue.

Guidance

  • Verify that the cfg_get function or variable is defined in the hermes_cli.config module, specifically in the config.py file.
  • Check for any recent changes or updates to the hermes_cli.config module that may have introduced the issue.
  • Try to import the cfg_get function or variable directly in a Python interpreter or a test script to see if it can be imported correctly.
  • If the issue persists, try to provide more detailed logs or a traceback to help identify the root cause.

Example

No code snippet is provided as it is not clearly supported by the issue.

Notes

The issue may be specific to the Hermes version 0.11.0 or the Python version 3.11, and trying a different version may help resolve the issue.

Recommendation

Apply workaround: Try to manually define the cfg_get function or variable in the hermes_cli.config module or provide a custom implementation to resolve the import error.

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]: Matrix messages returning error [3 comments, 3 participants]