Problem
scripts/install.sh (~line 1283) writes the user launcher via:
cat > "$command_link_dir/hermes" <<EOF
#!/usr/bin/env bash
unset PYTHONPATH
unset PYTHONHOME
exec "$HERMES_BIN" "\$@"
EOF
If $command_link_dir/hermes (default ~/.local/bin/hermes) is a symlink pointing back into the venv ($INSTALL_DIR/venv/bin/hermes), > follows the symlink and overwrites the real Python entry-point with the launcher template. The launcher then execs $HERMES_BIN — itself — and hermes hangs in an infinite exec loop with no output.
Repro
- Make
~/.local/bin/hermes a symlink → ~/.hermes/hermes-agent/venv/bin/hermes (state left by an earlier install on my machine).
- Run
scripts/install.sh.
hermes --help hangs forever.
cat ~/.hermes/hermes-agent/venv/bin/hermes shows the bash launcher template instead of the Python console-script — it execs itself.
Fix
rm -f the target before writing, so the redirect can't pass through a symlink:
mkdir -p "$command_link_dir"
rm -f "$command_link_dir/hermes"
cat > "$command_link_dir/hermes" <<EOF
...
Env
macOS, Hermes v0.13.0.
Problem
scripts/install.sh(~line 1283) writes the user launcher via:If
$command_link_dir/hermes(default~/.local/bin/hermes) is a symlink pointing back into the venv ($INSTALL_DIR/venv/bin/hermes),>follows the symlink and overwrites the real Python entry-point with the launcher template. The launcher thenexecs$HERMES_BIN— itself — andhermeshangs in an infinite exec loop with no output.Repro
~/.local/bin/hermesa symlink →~/.hermes/hermes-agent/venv/bin/hermes(state left by an earlier install on my machine).scripts/install.sh.hermes --helphangs forever.cat ~/.hermes/hermes-agent/venv/bin/hermesshows the bash launcher template instead of the Python console-script — itexecs itself.Fix
rm -fthe target before writing, so the redirect can't pass through a symlink:Env
macOS, Hermes v0.13.0.