hermes - ✅(Solved) Fix hermes gateway install issue [1 pull requests, 1 comments, 2 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#25191Fetched 2026-05-14 03:48:08
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×3commented ×1cross-referenced ×1

Error Message

I needed to run Powershell as Admin to run the Installation command but when I run it, this issue appears. I think somewhere the code has an emojis inside which throws this error.

Fix Action

Fixed

PR fix notes

PR #25200: fix(cli): add windows_subprocess_kwargs() to force UTF-8 in subprocess text output

Description (problem / solution / changelog)

Fixes #25191

Problem

On Windows, subprocess.run(..., text=True) defaults to the system codepage (cp1252), which cannot decode UTF-8 emoji bytes (✓, ✗, 🚀) emitted by Hermes CLI output. This causes UnicodeDecodeError in the reader thread even when the process itself started successfully.

hermes_cli/__init__.py already has _ensure_utf8() that reconfigures sys.stdout/sys.stderr, but this doesn't affect subprocess pipe readers which use their own encoding.

Fix

Adds windows_subprocess_kwargs() helper to _subprocess_compat.py that returns encoding='utf-8', errors='replace' on Windows and an empty dict on POSIX. Callers can spread this into subprocess.run() calls alongside capture_output=True, text=True.

Root cause

subprocess.run(cmd, capture_output=True, text=True) without explicit encoding uses the Windows system codepage (cp1252) to decode stdout/stderr, which fails on UTF-8 multi-byte characters.

Changed files

  • gateway/run.py (modified, +6/-5)
  • hermes_cli/_subprocess_compat.py (modified, +18/-0)
RAW_BUFFERClick to expand / collapse
<img width="1707" height="939" alt="Image" src="https://github.com/user-attachments/assets/2951b980-4f7e-4b3a-8ef8-3f5e3d34a2a2" />

I needed to run Powershell as Admin to run the Installation command but when I run it, this issue appears. I think somewhere the code has an emojis inside which throws this 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