Closed prashant111188 closed 4 months ago
Did you install the dependencies via playwright install --with-deps
?
qemu-x86_64-static: QEMU internal SIGSEGV {code=MAPERR, addr=0x20}
This looks like that still something gets emulated, could you execute arch
inside your container to see which architecture it actually runs with?
When I try to execute playwright install --with-deps
, I still get the SIGSEGV error. The result of arch command is: x86_64
You are emulating x86_64
via QEMU, it should be aarch64
. Emulating a different architecture will prevent browsers from starting / is not supported. You can e.g. be explicit about it when running the container:
docker run -it --platform linux/arm64 debian:11 /bin/bash
Oh ok. I'll try that out. Thanks very much for the response. .
Well I was able to run this with an arm64 version of the image. But, interestingly, I could run on the amd64 version as well. What changed this time? I reduced the number of cores for podman desktop to 1 (and enabled rosetta in podman desktop 5.1.0). This fixed the issue and I can now run playwright on amd64 as well. Hopefully people facing a similar issue will find this helpful.
Hi,
I am using playwright-pytest in a debian 11 (bullseye) arm64 container. Following are the versions for all the dependencies:
Python: 3.12.2 pytest = 8.2.1 playwright = 1.45.0 pytest-playwright = 0.5.1.
I'm running the container on macOS Sonoma 14.5 (M1)
My sample test script is as follows:
import pytest from playwright.sync_api import Page, expect
This gives me the following error: