NanmiCoder / NanmiCoder/MediaCrawler

[BUG] playwright._impl._errors.Error: BrowserType.launch_persistent_context: Chromium distribution 'chrome' is not found at /opt/google/chrome/chrome

Open
#846 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
65.3k
Forks
12.6k
PR merge metrics
No merged PRs in 30d

Description

我执行了 sudo /home/meme/miniconda3/envs/crawlzhihu/bin/uv run playwright install-deps 无报错。再执行:uv run uvicorn api.main:app --host 0.0.0.0 --port 8071 --reload,然后用浏览器访问,结果报错:

Image

确实不存在 /opt/google/chrome/chrome 文件

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start by reproducing the reported commands: uv run playwright install-deps followed by uv run uvicorn api.main:app --host 0.0.0.0 --port 8071 --reload. Inspect the browser-launch path used by api.main:app and verify why it expects /opt/google/chrome/chrome; done means the browser can be launched without the reported missing-distribution error.

Written by the indexing model from the issue text.

Assessment

Tech stack
playwright, python
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.