Repository navigation
Description
Environment
- Image with broken wheel:
nousresearch/hermes-agent@ sha256:b6e41c155d6b… (8.51GB, built 12 days ago). Issue is in the PyPI wheel, not the image — reproduces fromuv pip install --upgrade hermes-agentin any v0.14.x container. - Current
:latest(sha256:06b89c64f69d…, 4.66GB, src-layout editable install) is NOT affected. - Version: Hermes Agent v0.15.1 (2026.5.29)
- Python: 3.13.5, installer: uv
Symptom
After in-place upgrade to v0.15.1, dashboard subprocess crashes at import:
[dashboard] File ".../hermes_cli/web_server.py", line 4822, in <module>
[dashboard] from hermes_cli.dashboard_auth.routes import router
[dashboard] ModuleNotFoundError: No module named 'hermes_cli.dashboard_auth'
Gateway main process unaffected; only dashboard dies.
Root cause
The v0.15.1 wheel installs dashboard_auth/ to the wrong path. RECORD shows:
plugins/dashboard_auth/nous/__init__.py ← installed to top-level plugins/
But code imports it as hermes_cli.dashboard_auth.routes — i.e. expects hermes_cli/dashboard_auth/. Wheel packaging config likely scopes dashboard_auth/ as a top-level plugin path instead of as a hermes_cli/ subpackage.
The new image with editable install (__editable__.hermes_agent-0.15.1.pth → /opt/hermes/hermes_cli/) bypasses this — dashboard_auth/ lives correctly under hermes_cli/ in the source tree, and live import returns a real APIRouter.
Repro
- Container from any image where
uv pip installofhermes-agent==0.15.1writes the wheel into venv (any user who runshermes updatefrom 0.14.x). - Restart dashboard →
ModuleNotFoundError. - Verify:
grep dashboard_auth {venv}/site-packages/hermes_agent-0.15.1.dist-info/RECORD→ onlyplugins/dashboard_auth/...entries, none underhermes_cli/dashboard_auth/....
Workaround
docker pull nousresearch/hermes-agent:latest && docker compose up -d --force-recreate — the new image uses editable install of the source tree, sidestepping the broken wheel.
Suggested fix
Audit wheel [tool.hatch.build.targets.wheel] (or equivalent in pyproject.toml) to ensure hermes_cli/dashboard_auth/ ships as a hermes_cli subpackage. Post-build RECORD should show hermes_cli/dashboard_auth/* entries.
Activity
konsisumer commentedon May 31, 2026
Thanks for the precise root-cause write-up — your diagnosis is exactly right, and the good news is this is already fixed.
The cause was
[tool.setuptools.packages.find]listinghermes_cliwithout thehermes_cli.*wildcard (every other top-level package, e.g.agent.*/gateway.*, had its wildcard). setuptools shippedhermes_cli/*.pyinto the wheel but silently dropped thedashboard_auth(andproxy) subpackages — henceModuleNotFoundError: No module named 'hermes_cli.dashboard_auth'at dashboard import. The editable-install image sidesteps it exactly as you noted.Status of the relevant threads:
"hermes_cli.*"to the include list plus a regression test that fails CI if any on-diskhermes_clisubpackage is ever dropped from the wheel again.One caveat on releases: the fix landed on
mainafter the latest releasev0.15.2(v2026.5.29.2) was cut, so both the v0.15.1 and v0.15.2 wheels are still affected — it will ship in the next release. Until then your workaround is correct (the:latesteditable-install image); equivalently, a wheel built from a currentmaincheckout now containshermes_cli/dashboard_auth/*.Since the fix is already merged and tracked under #34701 / #34811, this can be closed as a duplicate — flagging for a maintainer to confirm and close.
benbarclay commentedon Jun 1, 2026
Fixed by #34811 — pyproject.toml now includes hermes_cli.* so dashboard_auth ships in the wheel. Duplicate of #34701 (already closed). Note: the fix postdates the v0.15.2 release, so use :main / a fresh build until the next tagged release. Closing as completed.
fix(packaging): verify wheel contents before PyPI publish to catch mi…