Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Ungoogled Chromium not found #81

Open
telmocrp1 opened this issue Mar 20, 2024 · 1 comment
Open

[BUG] Ungoogled Chromium not found #81

telmocrp1 opened this issue Mar 20, 2024 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@telmocrp1
Copy link

telmocrp1 commented Mar 20, 2024

Thanks a lot for the work of this repo, it's a goldmine 🚀

Describe the bug
I followed the installation guide but I still have this error:
[WARNING] Ungoogled Chromium not found. Recommended for Canvas Manipulation. Download at https://ungoogled-software.github.io/ungoogled-chromium-binaries/

But ungoogled chromium is installed:
type ungoogled-chromium
ungoogled-chromium is /usr/bin/ungoogled-chromium

Code Sample
If applicable, add a code sample to replicate the bug.

test code:

import asyncio
import botright

async def main():
    botright_client = await botright.Botright()
    # Add the path to your Chromium-based browser here
    browser = await botright_client.new_browser()
    page = await browser.new_page()

    await page.goto("https://google.com")

    await botright_client.close()

if __name__ == "__main__":
    asyncio.run(main())

To Reproduce
Steps to reproduce the behavior:

  1. Install Botright
  2. Install Playwright
  3. Install UC chromium
  4. See error

Expected behavior

Installing models/objects.yaml: 100%|█████████████████████████████████████████████████████████████████████████████████| 3.81k/3.81k [00:00<00:00, 3.71MB/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 "/root/test.py", line 17, in <module>
    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 "/root/test.py", line 5, 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

Desktop (please complete the following information):

  • OS: Ubuntu 22.04
@telmocrp1 telmocrp1 added bug Something isn't working help wanted Extra attention is needed labels Mar 20, 2024
@giauphan
Copy link

It appears that your issue resembles #36.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants