uv-present-but-not-uv-managed installs still get a raw uv tool upgrade error

Open Beginner friendly
#716 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
82/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
cli

Research direction

Start in src/browser_harness/admin.py at run_update(), especially the pypi branch around line 1231, and review the related missing-uv behavior from #688. Reproduce the non-zero result from uv tool upgrade browser-harness; done means pip/pipx/package-manager guidance is printed before the exit code is propagated.

Written by the indexing model from the issue text.

Description

Problem

A pip/pipx-installed browser-harness on a machine where uv happens to be on PATH still gets uv's raw "not installed via uv" error from uv tool upgrade, with no actionable guidance. This affects the same population the #688 fix (missing-uv case) addresses: users who installed with pip/pipx but have uv present.

Suggested fix

In the pypi branch of run_update() (src/browser_harness/admin.py:1231), when uv tool upgrade browser-harness returns non-zero, print the same actionable stderr message (pip/pipx/package-manager routes) before propagating the exit code.

Source

  • Branch: fix/688-update-uv-missing
  • Head: d3e2acc

Metadata

Severity: P3
Confidence: 75
Reviewer(s): adversarial
Finding ID: src/browser_harness/admin.py + line_bucket(1231) + normalize(title)

Dominant language
Python
Stars
17.8k
Forks
1.7k
Avg merge
1d 11h
Merged PRs (30d)
34

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from browser-use/browser-harness

All issues in browser-use/browser-harness

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.