Vinyzu / Vinyzu/Botright

[Question]how can i indicate the specific exceuteble path for chromium

Open
#136 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

documentation help wanted question
Dominant language
Python
Stars
1k
Forks
85
PR merge metrics
No merged PRs in 30d

Description

I run the dome code , but get error info like below, actually , i can run playwright successfully, but get problem with Botright

Installing models/objects.yaml: 100%|██████████████████████████████████████████████████| 3.81k/3.81k [00:00<00:00, 7.93MB/s]
[WARNING] Ungoogled Chromium not found. Recommended for Canvas Manipulation. Download at https://ungoogled-software.github.io/ungoogled-chromium-binaries/
Traceback (most recent call last):
File "/data/xhs-content/demo.py", line 19, in
asyncio.run(main())
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/data/xhs-content/demo.py", line 7, in main
botright_client = await botright.Botright()
File "/usr/local/lib/python3.10/dist-packages/async_class.py", line 173, in await
yield from self.create_task(
File "/usr/local/lib/python3.10/dist-packages/botright/botright.py", line 90, in ainit
self.browser = self.get_browser_engine()
File "/usr/local/lib/python3.10/dist-packages/botright/botright.py", line 216, in get_browser_engine
raise EnvironmentError("No Chromium based browser found")
OSError: No Chromium based browser found

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.

Research direction

Start with demo.py line 7 and botright.py:get_browser_engine, using the traceback to trace how Botright discovers Chromium. Confirm the documented way to provide an executable path and verify that the demo reaches browser startup without the "No Chromium based browser found" error.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.