-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[Question] Any ideas on how to get this to work on Raspbian? #2834
Comments
The issue has to do with the architecture of your system. Playwright's attached browsers are compiled for amd64, which most servers and computers are using. But the raspberry has armv7. If they don't match, binaries don't run and in our case browsers don't run. As a workaround if Chromium is enough for you, you could install Chromium manually on it and set the executable path. This should also work, but be sure to use an canary / unstable build, so that all Playwright APIs are available. |
Ah, I imagined arm would be a problem but was kind of hoping it was somehow handled. Thank you! I'll try your workaround. |
Hey @mxschmitt I have been looking around the link you provided for setting the executable path of the chromium browser (Ours is |
@mxschmitt suggestion works - can confirm. The way I did it was to first determine your chromium install path... which chromium-browser Then pass that path as an option to the playwright.chromium.launch({ executablePath: '/usr/bin/chromium-browser' }) Note: I did it headless. I don't think that matters but adding that info since it is a variable. |
I really like how well Playwright works on most environments, but I'm having trouble getting it to run on Raspbian. All three browserTypes seem to have problems at launch.
The launch log for Chromium looks like this:
And then there are whole bunch of other "not found errors". Chromium is actually installed at the cited location (
/home/pi/.cache/ms-playwright/chromium-775089/chrome-linux/chrome
) with executable permission set for all.Any ideas?
The text was updated successfully, but these errors were encountered: