hermes - ✅(Solved) Fix [Bug]: An error occurred when selecting WeCom Callback startup configuration [1 pull requests, 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#14861Fetched 2026-04-24 10:44:38
View on GitHub
Comments
0
Participants
1
Timeline
7
Reactions
0
Participants
Timeline (top)
labeled ×4cross-referenced ×1subscribed ×1unsubscribed ×1

Error Message

Traceback (most recent call last):

Additional Logs / Traceback (optional)

Root Cause

Root Cause Analysis (optional)

Fix Action

Fixed

PR fix notes

PR #14874: fix: restore WeCom Callback setup entrypoint

Description (problem / solution / changelog)

Summary

  • restore the missing gateway helper used by the WeCom Callback setup wizard
  • treat WECOM_CALLBACK_CORP_ID as a configured messaging platform in gateway setup
  • add regression tests covering the setup delegation and messaging summary path

Testing

  • python3 -m pytest -o addopts= tests/hermes_cli/test_setup.py -k wecom_callback

Closes #14861

Changed files

  • hermes_cli/gateway.py (modified, +8/-0)
  • hermes_cli/setup.py (modified, +1/-0)
  • tests/hermes_cli/test_setup.py (modified, +45/-0)

Code Example

https://paste.rs/TT3ll

---
RAW_BUFFERClick to expand / collapse

Bug Description

◆ Messaging Platforms Connect to messaging platforms to chat with Hermes from anywhere. Toggle with Space, confirm with Enter.

Select platforms to configure: Toggle by number, Enter to confirm.

[ ] 1. Telegram [ ] 2. Discord [ ] 3. Slack [ ] 4. Signal [ ] 5. Email [ ] 6. SMS (Twilio) [ ] 7. Matrix [ ] 8. Mattermost [ ] 9. WhatsApp [ ] 10. DingTalk [ ] 11. Feishu / Lark [ ] 12. WeCom (Enterprise WeChat) [ ] 13. WeCom Callback (Self-Built App) [ ] 14. Weixin (WeChat) [ ] 15. BlueBubbles (iMessage) [ ] 16. QQ Bot [ ] 17. Webhooks (GitHub, GitLab, etc.)
Toggle # (or Enter to confirm): 13

[ ] 1. Telegram [ ] 2. Discord [ ] 3. Slack [ ] 4. Signal [ ] 5. Email [ ] 6. SMS (Twilio) [ ] 7. Matrix [ ] 8. Mattermost [ ] 9. WhatsApp [ ] 10. DingTalk [ ] 11. Feishu / Lark [ ] 12. WeCom (Enterprise WeChat) [✓] 13. WeCom Callback (Self-Built App) [ ] 14. Weixin (WeChat) [ ] 15. BlueBubbles (iMessage) [ ] 16. QQ Bot [ ] 17. Webhooks (GitHub, GitLab, etc.)

Toggle # (or Enter to confirm): Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/root/.hermes/hermes-agent/hermes_cli/main.py", line 8962, in <module> main() File "/root/.hermes/hermes-agent/hermes_cli/main.py", line 8956, in main args.func(args) File "/root/.hermes/hermes-agent/hermes_cli/main.py", line 1405, in cmd_setup run_setup_wizard(args) File "/root/.hermes/hermes-agent/hermes_cli/setup.py", line 3038, in run_setup_wizard _run_first_time_quick_setup(config, hermes_home, is_existing) File "/root/.hermes/hermes-agent/hermes_cli/setup.py", line 3140, in _run_first_time_quick_setup setup_gateway(config) File "/root/.hermes/hermes-agent/hermes_cli/setup.py", line 2260, in setup_gateway setup_func() File "/root/.hermes/hermes-agent/hermes_cli/setup.py", line 2087, in _setup_wecom_callback from hermes_cli.gateway import _setup_wecom_callback as _gw_setup ImportError: cannot import name '_setup_wecom_callback' from 'hermes_cli.gateway' (/root/.hermes/hermes-agent/hermes_cli/gateway.py)

Steps to Reproduce

  1. Direct command installation: curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash
  2. After installation, automatically proceed to configuration and configure the model
  3. Continue to configure: Set up messaging now (recommended)

Expected Behavior

It should be able to configure normally

Actual Behavior

It should be configured normally

Affected Component

Gateway (Telegram/Discord/Slack/WhatsApp)

Messaging Platform (if gateway-related)

WhatsApp

Debug Report

https://paste.rs/TT3ll

Operating System

OpenCloudOS Server 9

Python Version

3.11.6

Hermes Version

Hermes Agent v0.11.0 (2026.4.23)

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 caused by a missing import in the hermes_cli.gateway module, and the fix involves ensuring that the _setup_wecom_callback function is properly defined and imported.

Guidance

  • Verify that the hermes_cli.gateway module exists and contains the _setup_wecom_callback function.
  • Check the hermes_cli.gateway module for any typos or incorrect imports that might be causing the error.
  • Ensure that the hermes_cli package is properly installed and up-to-date, as the issue might be related to a version mismatch.
  • Review the debug report at https://paste.rs/TT3ll for any additional error messages or clues that might help resolve the issue.

Example

No code example is provided, as the issue is related to a specific import error and requires further investigation.

Notes

The issue might be specific to the Hermes Agent version (v0.11.0) or the Python version (3.11.6) being used. Further debugging and testing may be required to determine the root cause and develop a fix.

Recommendation

Apply a workaround by manually verifying the imports and definitions in the hermes_cli.gateway module, as the issue is likely related to a missing or incorrect import.

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