Skip to content

[Hermes Agent] can't update - cannot import name 'line_input' from 'hermes_cli.cli_output' #17208

Description

@frontend-report

Script: Hermes Agent

Reported by: @kintaro1981

Guidelines

  • Read and understood guidelines: yes
  • Verbose mode used: yes

Issue occurs during: Script Update

Environment

  • Linux distribution: Debian
  • Proxmox version: 9.1
  • Default settings: Yes
  • Advanced settings: No
  • Exact command: update

Description

I was trying to update the lxc

Steps to reproduce

launch: update

Error output

root@hermesagent:~# update
__ __ ___ __
/ / / /__ _________ ___ ___ _____ / | ____ ____ ____ / /_
/ // / _ / / __ __ \/ _ \/ ___/ / /| |/ __ / _ / __ / __/
/ __ / __/ / / / / / / / ( ) / ___ / /
/ / _/ / / / /
/
/ /
/___/
/ // // //___// // |_, /_// //_/
/
___/
💡 Continuing update of Hermes Agent despite an active breaking change — review #16749 if you have not.
__ __ ___ __
/ / / /
_________ ___ ___ _____ / | ____ ____ ____ / /_
/ // / _ / / __ __ \/ _ \/ ___/ / /| |/ __ / _ / __ / __/
/ __ / __/ / / / / / / / ( ) / ___ / /
/ / _/ / / / /
/
/ /
/___/
/ // // //___// // |_, /___// //_/
/
___/

💡 WARNING: This script will run an external installer from a third-party source (https://hermes-agent.nousresearch.com/).
💡 The following code is NOT maintained or audited by our repository.
💡 If you have any doubts or concerns, please review the installer code before proceeding:
🌐 → hermes update (https://hermes-agent.nousresearch.com/)

  Do you want to continue? [y/N]: y

✔️ Stopped Services
⏳ Updating Hermes Agent⚕ Updating Hermes Agent...

(removed stale git lock(s): /home/hermes/.hermes/hermes-agent/.git/shallow.lock)
→ Fetching updates...
→ Found 10144 new commit(s)
→ Pulling updates...
⚠ Fast-forward not possible (history diverged), resetting to match remote...
✓ Cleared 113 stale pycache directories
→ Updating Python dependencies...
Using Python 3.11.16 environment at: venv
Resolved 100 packages in 3.82s
Built hermes-agent @ file:///home/hermes/.hermes/hermes-agent Prepared 4 packages in 3.12s
Uninstalled 2 packages in 21ms
Installed 4 packages in 672ms

  • firecrawl-anydoc==0.2.4
  • hermes-agent==0.20.4 (from file:///home/hermes/.hermes/hermes-agent)
  • hermes-agent==0.21.2 (from file:///home/hermes/.hermes/hermes-agent)
  • nemo-relay==0.7.3
  • nemo-relay==0.8.4
  • snowballstemmer==3.1.1
    ✓ Cleared 1 stale pycache directory
    Using Python 3.11.16 environment at: venv
    Resolved 1 package in 209ms
    Prepared 1 package in 919ms
    Uninstalled 1 package in 26ms
    Installed 1 package in 383ms
  • pip==26.2
  • pip==26.2.1

→ Refreshing 13 active lazy backend(s)...
✓ 13 already current
→ Warming npx cache for agent-browser...
/home/hermes/.hermes/hermes-agent/hermes_cli/update_cmd.py:2571: HermesPluginCompatWarning: hermes plugin compat: tools.browser_tool.warm_agent_browser_npx_cache moved to tools.browser_tool_install.warm_agent_browser_npx_cache. The old path is kept only for external plugins and is removed on 2026-09-14; update your import.
→ Updating Node.js dependencies...

hermes-agent@1.0.0 postinstall
echo '✅ Node dependencies installed. Run: python run_agent.py --help'

✅ Node dependencies installed. Run: python run_agent.py --help

added 551 packages in 7s
✓ ui-tui, web workspaces installed (desktop skipped)
→ Building web UI...

> web@0.0.0 build
> tsc -b && vite build

(!) Your Vite config uses features that are unsupported by `configLoader: 'native'`, which is planned to become the default in a future major version of Vite:
  - `__dirname` (vite.config.ts:80:25). Use `import.meta.dirname` instead
Set `VITE_CONFIG_NATIVE_IGNORE_WARNING=true` to suppress this warning.
vite v8.2.0 building client environment for production...

transforming...✓ 2224 modules transformed.
rendering chunks...
computing gzip size...
../hermes_cli/web_dist/index.html                                       1.50 kB │ gzip:   0.54 kB
../hermes_cli/web_dist/assets/Mondwest-Regular-CWscgue7.woff2          23.82 kB
../hermes_cli/web_dist/assets/RulesExpanded-Regular-l8uVympt.woff2     33.82 kB
../hermes_cli/web_dist/assets/RulesExpanded-Bold-DZA7s8Pa.woff2        35.01 kB
../hermes_cli/web_dist/assets/RulesCompressed-Regular-BSXFyF4x.woff2   37.76 kB
../hermes_cli/web_dist/assets/RulesCompressed-Medium-CA76_CrB.woff2    38.84 kB
../hermes_cli/web_dist/assets/Collapse-Bold-mgICk9-_.woff2             59.14 kB
../hermes_cli/web_dist/assets/Collapse-Regular-DysayoTY.woff2          62.81 kB
../hermes_cli/web_dist/assets/xterm-BrP-ENHg.css                        3.93 kB │ gzip:   1.01 kB
../hermes_cli/web_dist/assets/index-mXYHKWVT.css                      112.59 kB │ gzip:  17.61 kB
../hermes_cli/web_dist/assets/chat-activation-BiaqYo9D.js               0.04 kB │ gzip:   0.06 kB
../hermes_cli/web_dist/assets/page-header-context-Cv8A-rTa.js           0.15 kB │ gzip:   0.14 kB
../hermes_cli/web_dist/assets/useProfileScope-CZ2qacRL.js               0.26 kB │ gzip:   0.21 kB
../hermes_cli/web_dist/assets/usePageHeader-BtGwRGnc.js                 0.30 kB │ gzip:   0.23 kB
../hermes_cli/web_dist/assets/utils-Bpcp-Df0.js                         0.53 kB │ gzip:   0.29 kB
../hermes_cli/web_dist/assets/rolldown-runtime-CbXtAM7H.js              0.58 kB │ gzip:   0.36 kB
../hermes_cli/web_dist/assets/DeleteConfirmDialog-HOkbTN3c.js           0.61 kB │ gzip:   0.37 kB
../hermes_cli/web_dist/assets/useModalBehavior-oWox1GPh.js              0.62 kB │ gzip:   0.39 kB
../hermes_cli/web_dist/assets/clipboard-owkvc3zk.js                     0.73 kB │ gzip:   0.44 kB
../hermes_cli/web_dist/assets/mcp-server-create-B0VgoYzF.js             0.92 kB │ gzip:   0.46 kB
../hermes_cli/web_dist/assets/DocsPage-DuTUgv6X.js                      1.96 kB │ gzip:   1.08 kB
../hermes_cli/web_dist/assets/PairingPage-twTIgPrt.js                   4.79 kB │ gzip:   1.64 kB
../hermes_cli/web_dist/assets/plugins-D8DchWkx.js                       5.55 kB │ gzip:   2.60 kB
../hermes_cli/web_dist/assets/LogsPage-D8YGZWAj.js                      7.31 kB │ gzip:   3.18 kB
../hermes_cli/web_dist/assets/FilesPage-Do0hHhRR.js                     9.80 kB │ gzip:   3.25 kB
../hermes_cli/web_dist/assets/WebhooksPage-Cw2K251v.js                 12.57 kB │ gzip:   3.84 kB
../hermes_cli/web_dist/assets/themes-DzWn4VCo.js                       12.79 kB │ gzip:   4.19 kB
../hermes_cli/web_dist/assets/ModelReloadConfirm-DyLZBkxK.js           13.41 kB │ gzip:   4.97 kB
../hermes_cli/web_dist/assets/ProfileBuilderPage-DnxgtUBU.js           14.86 kB │ gzip:   4.49 kB
../hermes_cli/web_dist/assets/McpPage-CXL218QF.js                      17.15 kB │ gzip:   4.98 kB
../hermes_cli/web_dist/assets/ConfigPage-BpmgKxy5.js                   17.99 kB │ gzip:   6.01 kB
../hermes_cli/web_dist/assets/AnalyticsPage-DGACOLKe.js                20.17 kB │ gzip:   5.99 kB
../hermes_cli/web_dist/assets/api-0eAzhr2h.js                          22.12 kB │ gzip:   4.94 kB
../hermes_cli/web_dist/assets/ProfilesPage-BUox1LMv.js                 25.17 kB │ gzip:   7.05 kB
../hermes_cli/web_dist/assets/ChannelsPage-Do8ZOTih.js                 28.93 kB │ gzip:   7.99 kB
../hermes_cli/web_dist/assets/EnvPage-D5AFaACi.js                      29.72 kB │ gzip:   7.94 kB
../hermes_cli/web_dist/assets/PluginsPage-BDnY7N5y.js                  33.44 kB │ gzip:   9.71 kB
../hermes_cli/web_dist/assets/ModelsPage-CcTvtcFI.js                   33.97 kB │ gzip:  10.43 kB
../hermes_cli/web_dist/assets/SystemPage-Ckplw5YM.js                   41.69 kB │ gzip:  11.20 kB
../hermes_cli/web_dist/assets/CronPage-C8ycoRQh.js                     44.07 kB │ gzip:  14.20 kB
../hermes_cli/web_dist/assets/SkillsPage-D0HtV_xp.js                   44.09 kB │ gzip:  12.48 kB
../hermes_cli/web_dist/assets/SessionsPage-DOlvP4s8.js                 46.33 kB │ gzip:  14.15 kB
../hermes_cli/web_dist/assets/ChatPage-DuG-uyna.js                     49.63 kB │ gzip:  16.80 kB
../hermes_cli/web_dist/assets/vendor-B7eZBWFZ.js                       50.06 kB │ gzip:  17.82 kB
../hermes_cli/web_dist/assets/index-DEgq4teU.js                        64.02 kB │ gzip:  21.75 kB
../hermes_cli/web_dist/assets/react-vendor-BoVnYuL4.js                226.99 kB │ gzip:  72.78 kB
../hermes_cli/web_dist/assets/ui-D6CeFIrh.js                          290.01 kB │ gzip:  94.81 kB
../hermes_cli/web_dist/assets/xterm-CXxU4Y2B.js                       474.38 kB │ gzip: 122.64 kB
../hermes_cli/web_dist/assets/i18n-DaLR8gpC.js                        483.89 kB │ gzip: 143.06 kB

[PLUGIN_TIMINGS] Your build spent significant time in plugins. Here is a breakdown:
  - @rolldown/plugin-babel (89%)
  - @tailwindcss/vite:generate:build (5%)
See https://rolldown.rs/reference/InputOptions.checks#plugintimings for more details.

✓ built in 7.13s

✓ Web UI built

✓ Code updated! [main @ eec131b716]
✓ Model catalog cache refreshed from checkout

→ Syncing bundled skills...

  • 1 new: github
    ↑ 17 updated: simplify-code, codebase-inspection, spike, test-driven-development, requesting-code-review, hermes-agent-skill-authoring, systematic-debugging, document-to-action-items, google-workspace, teams-meeting-pipeline, pdf, hermes-agent, computer-use, blocked-page-recovery, competitor-news-monitor, grounded-citations, arxiv
    − 25 removed from manifest
    → 2 moved to new upstream paths: codebase-inspection, blocked-page-recovery

→ Syncing bundled skills to all profiles...
default: up to date

→ Checking configuration for new options...
✓ Configuration is up to date

✓ Update complete! (v0.20.4 → v0.21.2) [main @ eec131b716]

→ Refreshing cua-driver (Computer Use)...
/home/hermes/.hermes/hermes-agent/hermes_cli/tools_config.py:1160: HermesPluginCompatWarning: hermes plugin compat: tools.computer_use.cua_backend.cua_driver_update_check moved to tools.computer_use.cua_backend_driver.cua_driver_update_check. The old path is kept only for external plugins and is removed on 2026-09-14; update your import.
✓ cua-driver upgraded: cua-driver 0.20.0 → cua-driver 0.28.1

⚠ Update incomplete — gateway auto-restart failed: cannot import name 'line_input' from 'hermes_cli.cli_output' (/home/hermes/.hermes/hermes-agent/hermes_cli/cli_output.py)
Any gateway still running is serving pre-update code
(mixed sys.modules) against the updated checkout.
Restart it manually, then verify:
hermes gateway restart
hermes gateway status
Traceback (most recent call last):
File "/home/hermes/.hermes/hermes-agent/hermes", line 11, in
main()
File "/home/hermes/.hermes/hermes-agent/hermes_cli/main.py", line 13755, in main
File "/home/hermes/.hermes/hermes-agent/hermes_cli/main.py", line 9964, in cmd_update
File "/home/hermes/.hermes/hermes-agent/hermes_cli/update_cmd.py", line 6770, in _cmd_update_impl
File "/home/hermes/.hermes/hermes-agent/hermes_cli/update_cmd.py", line 692, in _finish_dashboard_update_cleanup
_windows_gateway_resume=_windows_gateway_resume)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hermes/.hermes/hermes-agent/hermes_cli/dashboard_procs.py", line 329, in _kill_stale_dashboard_processes
from hermes_cli import main_dashboard as _dash
File "/home/hermes/.hermes/hermes-agent/hermes_cli/main_dashboard.py", line 16, in
from hermes_cli.cli_output import line_input
ImportError: cannot import name 'line_input' from 'hermes_cli.cli_output' (/home/hermes/.hermes/hermes-agent/hermes_cli/cli_output.py)
✖️ in line 51: exit code 1 (General error / Operation not permitted): while executing command setsid --wait bash -c '
set -a; source /etc/default/hermes; set +a
/home/hermes/.local/bin/hermes update --yes
'

--- Last 20 lines of log ---
[2026-09-12 11:40:10] [WARN] Continuing update of Hermes Agent despite an active breaking change — review #16749 if you have not.
[2026-09-12 11:40:10] [WARN] WARNING: This script will run an external installer from a third-party source (https://hermes-agent.nousresearch.com/).
[2026-09-12 11:40:10] [WARN] The following code is NOT maintained or audited by our repository.
[2026-09-12 11:40:10] [WARN] If you have any doubts or concerns, please review the installer code before proceeding:
[2026-09-12 11:40:10] → hermes update (https://hermes-agent.nousresearch.com/)
[2026-09-12 11:40:26] [INFO] Stopping Services
[2026-09-12 11:40:26] [OK] Stopped Services
[2026-09-12 11:40:26] [INFO] Updating Hermes Agent
[2026-09-12 11:47:49] [ERROR] in line 51: exit code 1 (General error / Operation not permitted): while executing command setsid --wait bash -c '
set -a; source /etc/default/hermes; set +a
/home/hermes/.local/bin/hermes update --yes
'

Activity

  1. MickLesk commented on Sep 12, 2026

    @MickLesk
    Member
  2. steveonjava commented on Sep 13, 2026

    @steveonjava
    Contributor

    Tracked upstream as NousResearch/hermes-agent#109692, with a fix in NousResearch/hermes-agent#109693.

    This is not a PVE Helper Scripts defect. The Hermes Agent helper invokes hermes update and reports its nonzero exit accurately. The exception happens after Hermes has updated the checkout and dependencies, when its own post-update dashboard cleanup imports new code into the existing updater process. That process can still have an older cached hermes_cli.cli_output module without line_input, which produces the reported import error.

    The upstream fix removes that import-time dependency from dashboard cleanup while preserving enhanced input for normal interactive setup.

  3. steveonjava commented on Sep 13, 2026

    @steveonjava
    Contributor

    The upstream fix is now available for review: NousResearch/hermes-agent#109693. It reproduces the failure in a normal hermes update process, without Proxmox or the helper script, and fixes the import boundary that fails during dashboard cleanup.

  4. kintaro1981 commented on Sep 14, 2026

    @kintaro1981

    The upstream fix is now available for review: NousResearch/hermes-agent#109693. It reproduces the failure in a normal hermes update process, without Proxmox or the helper script, and fixes the import boundary that fails during dashboard cleanup.

    I just tested it editing manually my hermes istance files and the update worked without error. 👍

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

    externalThis problem is external

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions