playwright-community / playwright-go

Playwright for Go a browser automation library to control Chromium, Firefox and WebKit with a single API.
https://playwright-community.github.io/playwright-go/
MIT License
1.94k stars 145 forks source link

arm32v7 error! #327

Closed zhouyuyu888 closed 3 months ago

zhouyuyu888 commented 1 year ago

device:Amlogic S805 OneCloud WS1608 system:Ubuntu 20.04.5 LTS | V20221001-5.15.79-meson-32 go version go1.19.5 linux/arm execute: go get github.com/playwright-community/playwright-go go run github.com/playwright-community/playwright-go/cmd/playwright install --with-deps Downloading driver to /root/.cache/ms-playwright-go/1.20.0-beta-1647057403000 Downloaded driver successfully /root/.cache/ms-playwright-go/1.20.0-beta-1647057403000/playwright.sh: 3: /root/.cache/ms-playwright-go/1.20.0-beta-1647057403000/node: Exec format error 2023/01/25 13:28:29 could not run driver: exit status 126 exit status 1 how to install ms-playwright-go in arm32?

huoxue1 commented 1 year ago

You should probably install 32-bit nodejs yourself, and then use a soft link to link to the corresponding location, because the installed nodejs seems to be 64-bit

canstand commented 1 year ago

Also, add @latest to ensure the latest version is used:

go run github.com/playwright-community/playwright-go/cmd/playwright@latest install --with-deps