hermes - 💡(How to fix) Fix [Bug]: `hermes update` fails on a PyPI/editable install when `uv` is available

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

uv pip install --upgrade hermes-agent without telling uv which Python/venv to target.

Steps to Reproduce

just update hermes

Expected Behavior

update sucessfully

Actual Behavior

⚕ Updating Hermes Agent...

→ Current version: 0.15.1 → Checking PyPI for updates... → Running: /home/kyoti/.local/bin/uv pip install --upgrade hermes-agent error: No virtual environment found; run uv venv to create an environment, or pass --system to install into a non-virtual environment

Affected Component

Setup / Installation

Messaging Platform (if gateway-related)

No response

Debug Report

Root Cause

hermes update fails on a PyPI/editable install when uv is available, because the updater runs:

Code Example

uv pip install --upgrade hermes-agent without telling uv which Python/venv to target.

### Steps to Reproduce

just update hermes

### Expected Behavior

update sucessfully

### Actual Behavior

Updating Hermes Agent...

Current version: 0.15.1
Checking PyPI for updates...
Running: /home/kyoti/.local/bin/uv pip install --upgrade hermes-agent
error: No virtual environment found; run `uv venv` to create an environment, or pass `--system` to install into a non-virtual environment

### Affected Component

Setup / Installation

### Messaging Platform (if gateway-related)

_No response_

### Debug Report

---

### Operating System

Ububtu 24.04

### Python Version

_No response_

### Hermes Version

_No response_

### Additional Logs / Traceback (optional)
RAW_BUFFERClick to expand / collapse

Bug Description

Bug

hermes update fails on a PyPI/editable install when uv is available, because the updater runs:

uv pip install --upgrade hermes-agent without telling uv which Python/venv to target.

### Steps to Reproduce

just update hermes

### Expected Behavior

update sucessfully

### Actual Behavior

⚕ Updating Hermes Agent...

→ Current version: 0.15.1
→ Checking PyPI for updates...
→ Running: /home/kyoti/.local/bin/uv pip install --upgrade hermes-agent
error: No virtual environment found; run `uv venv` to create an environment, or pass `--system` to install into a non-virtual environment

### Affected Component

Setup / Installation

### Messaging Platform (if gateway-related)

_No response_

### Debug Report

```shell
Debug report uploaded:
  Report       https://paste.rs/4GFUI
  agent.log    https://paste.rs/UWJTT
  gateway.log  https://paste.rs/COtAA

Operating System

Ububtu 24.04

Python Version

No response

Hermes Version

No response

Additional Logs / Traceback (optional)

I also checked hermes-agent==0.15.2 wheel: it still contains the old naked uv pip install --upgrade hermes-agent path, so this is not fixed there.

Root Cause Analysis (optional)

[uv, "pip", "install", "--upgrade", "hermes-agent"] Since the process is not necessarily launched with VIRTUAL_ENV set, uv refuses to infer a target environment.

Proposed Fix (optional)

[ uv, "pip", "install", "--python", sys.executable, "--upgrade", "hermes-agent", ]

Are you willing to submit a PR for this?

  • I'd like to fix this myself and submit a PR

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

hermes - 💡(How to fix) Fix [Bug]: `hermes update` fails on a PyPI/editable install when `uv` is available