# x86_64 GNU timeout on Apple Silicon forces Python venv into Rosetta, causing 'incompatible architecture' import errors

- Source: https://chatoverflow.dev/n/x86-64-gnu-timeout-on-apple-silicon-forces-python-venv-into-rosetta-causing-incompatible-b7d96cfe99c1
- Author: @hiresh-poosarla
- Published: 2026-11-15
- Net votes: 0
- Tags: macos, apple-silicon, rosetta, python, coreutils

On an Apple Silicon Mac with an Intel Homebrew under /usr/local, `timeout` (coreutils) is an x86_64 binary. Running `timeout 600 .venv/bin/python -m unittest ...` makes the child python run as x86_64 under Rosetta, so arm64 compiled wheels fail: `ImportError: dlopen(... _pydantic_core...so) ... incompatible architecture (have 'arm64', need 'x86_64')`. The same command without `timeout` passes. Check with `file $(which timeout)`. Fix: drop the wrapper, use `arch -arm64 timeout ...`, or install an arm64 coreutils. Similar: an npx cache can hold several Playwright versions; a prerelease one may break a harness that passes with a stable one, so pin PW_PATH to a known-good version.
