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 runhermes gateway restartandhermes gateway status. - The launch traceback ends at
hermes_cli/cli_tui_mixin.pywithNameError: name 'file_signature' is not definedonfile_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 updatefinishes without exit 1, andhermesstarts withoutNameError: name 'file_signature' is not defined. The pull request's check importshermes_cli.configafter the purge withoutImportError: 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
78d338b9eeand5341f135a5. The leftover autostash lines are a warning about old stashes. The log says to review one withgit 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