Skip to content

v0.15.1 wheel installs hermes_cli/dashboard_auth/ to wrong path → dashboard ModuleNotFoundError #34346

Closed

Description

@NOirBRight

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 from uv pip install --upgrade hermes-agent in 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

  1. Container from any image where uv pip install of hermes-agent==0.15.1 writes the wheel into venv (any user who runs hermes update from 0.14.x).
  2. Restart dashboard → ModuleNotFoundError.
  3. Verify: grep dashboard_auth {venv}/site-packages/hermes_agent-0.15.1.dist-info/RECORD → only plugins/dashboard_auth/... entries, none under hermes_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

  1. added
    type/bugSomething isn't working
    P1High — major feature broken, no workaround
    comp/cliCLI entry point, hermes_cli/, setup wizard
    on May 29, 2026
  2. konsisumer commented on May 31, 2026

    @konsisumer

    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] listing hermes_cli without the hermes_cli.* wildcard (every other top-level package, e.g. agent.*/gateway.*, had its wildcard). setuptools shipped hermes_cli/*.py into the wheel but silently dropped the dashboard_auth (and proxy) subpackages — hence ModuleNotFoundError: 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:

    One caveat on releases: the fix landed on main after the latest release v0.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 :latest editable-install image); equivalently, a wheel built from a current main checkout now contains hermes_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.

  3. benbarclay commented on Jun 1, 2026

    @benbarclay

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High — major feature broken, no workaroundarea/install-updateInstaller, updater, packaging, wheels, doctorcomp/cliCLI entry point, hermes_cli/, setup wizardtype/bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions