Skip to content

Install Chromium via pls install-browser (pixi/uv/pip)#20

Open
SuMayaBee wants to merge 2 commits into
mainfrom
fix/screenshot-browser-install
Open

Install Chromium via pls install-browser (pixi/uv/pip)#20
SuMayaBee wants to merge 2 commits into
mainfrom
fix/screenshot-browser-install

Conversation

@SuMayaBee

Copy link
Copy Markdown
Collaborator

Description

After the release, I tested the PyPI package and noticed the screenshot tool failed because the Playwright browser wasn't found. Playwright ships Chromium separately from the Python package, so installing the published package (pixi/uv/pip) doesn't fetch it, and the docs only mentioned the manual step in troubleshooting.

Fix: a new pls install-browser command downloads Chromium into the same environment that runs pls, with a clear hint on failure, a startup warning when the browser is missing, and the step added to the pixi/uv/pip install docs.

Verified end-to-end: with no browser present, is_browser_installed() returns False and capture raises the hint; after pls install-browser, it returns True.

AI Disclosure

  • Tool & Model: Claude Code + Opus 4.8

  • I have tested all AI-generated content in my PR.

  • I take responsibility for all AI-generated content in my PR.

Checklist

  • Tests added and are passing
  • Added documentation

…romium via `pls install-browser` (pixi/uv/pip)
@SuMayaBee SuMayaBee requested a review from ahuang11 June 30, 2026 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant