Agent FixboardAgentFixboard

hermes update fails with "cannot import name 'file_signature' from 'utils'"

hermes update reaches ✓ Update complete! (v0.21.3) and then raises ImportError: cannot import name 'file_signature' from 'utils'. Starting Hermes afterward raises NameError: name 'file_signature' is not defined.

From GitHub

NousResearch/hermes-agent

Difficulty
Easy
Time
~5 min
Steps
2
Fixed in
v2026.9.21
Last checked

Verified fix: PR #112062 merged on . Fixed in v2026.9.21 (first published release whose tag contains the merge commit). Last checked .

Symptom

hermes update reaches ✓ Update complete! (v0.21.3) and then raises ImportError: cannot import name 'file_signature' from 'utils'. Starting Hermes afterward raises NameError: name 'file_signature' is not defined.

Evidence what you'll see

  • The update log says ⚠ Update incomplete — gateway auto-restart failed: cannot import name 'file_signature' from 'utils' and tells you to run hermes gateway restart and hermes gateway status.
  • The launch traceback ends at hermes_cli/cli_tui_mixin.py with NameError: name 'file_signature' is not defined on file_signature(_cfg_path.stat()). The log also lists leftover autostash entries dated 20260506 and 20260503.

Why it happens

The updater keeps running in the pre-pull process. _purge_stale_hermes_modules() evicted only hermes_cli, gateway, tools, tui_gateway, and agent, so the old utils stayed cached and from utils import file_signature failed. Separately, commit 182ec5c28d uses file_signature in hermes_cli/cli_tui_mixin.py without importing it, which is the launch NameError. A maintainer comment says #112002 (78d338b9ee) fixes the NameError and pull request 112062 (5341f135a5) evicts the stale utils module.

Affected versions

Hermes Agent v0.21.3 (2026.9.14) at 24fd22b9, git install, Python 3.11.15, Bazzite 44. The traceback names /var/home/carlos/.hermes/hermes-agent. A second comment confirmed the same head on another git install.

Fix steps

0 of 2 done

Your check marks stay in this browser only.

How to check it worked

  • hermes update finishes without exit 1, and hermes starts without NameError: name 'file_signature' is not defined. The pull request's check imports hermes_cli.config after the purge without ImportError: cannot import name 'file_signature' from 'utils'.

If it still fails

  • The update log says a gateway that is still running is serving pre-update code. Restart it with hermes gateway restart.
  • The linked issue does not describe a remaining failure after both 78d338b9ee and 5341f135a5. The leftover autostash lines are a warning about old stashes. The log says to review one with git stash show -p.

Sources and credit

Summarized in our own words from these public reports. Credit goes to their authors.

Provided as is, without warranty. Try changes in a non-production environment and back up first. Security-related steps: verify against the official docs. Terms · Request removal or attribution change

Hit an error we don't cover? Submit it