Skip to content

Support chromium for AArch64 when specifying use_chromium=True with pure CDP mode #4318

@nyg

Description

@nyg

Hello,

On Raspberry Pi 5, when using the use_chromium=True browser arg in pure CDP mode, I get the "failed to connect to the browser error". When not using this parameter, chromium is used correctly.

import asyncio

from seleniumbase import cdp_driver
from seleniumbase.undetected.cdp_driver.browser import Browser


async def main():
    #browser: Browser = await cdp_driver.start_async(ad_block=True, use_chromium=True) # error
    browser: Browser = await cdp_driver.start_async(ad_block=True, use_chromium=False) # works
    browser.stop()


if __name__ == '__main__':
    loop = asyncio.new_event_loop()
    loop.run_until_complete(main())

I think what happens is that with use_chromium=True, SB will download the x64 binary of chromium no matter the platform. When not using use_chromium=True, SB will use the installed AArch64 binary.

Can this be fixed? I use use_chromium=True on macOS and would like not to have to remove the option when switching to Raspberry Pi 5.

Thanks,
nyg

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions