Playwright for Python 1.65 in Docker: driver/node: error while loading shared libraries: libatomic.so.1
/usr/local/lib/python3.12/site-packages/playwright/driver/node: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory
Short answer: Playwright for Python 1.65 bundles Node 26, and that binary needs libatomic.so.1, which slim Docker images do not have. Install the libatomic1 package before you run playwright install, or pin playwright below 1.65. The --with-deps flag cannot fix it, because it is the Node driver itself that fails to start.
No time to dig in? I fix the build and send you a pull request within 48 hours: $49, card, no account. Still failing, full refund. The free steps are below.
Checked on 14 November 2026 against the sources below.
Why it happens
The playwright package on PyPI ships its own Node.js binary at playwright/driver/node, and every playwright command runs through it. Up to 1.64 that binary was Node 24, which needs only the C and C++ runtime libraries that every image has. Playwright 1.65.0 (PyPI, 9 November 2026) moved it to Node 26, which also links against libatomic.so.1. Slim base images do not include that library, so the driver exits with code 127 before it prints anything else. Nothing in your Dockerfile changed: an unpinned pip install playwright simply started resolving to 1.65. How we checked, on 14 November 2026: we downloaded the Linux wheels from PyPI and read the list of required libraries from the bundled binary without running it. In 1.63.0 and 1.64.0 the binary is Node 24.21.0 and does not list libatomic. In 1.65.0, 1.65.1 and 1.65.2 it is Node 26.13 and lists libatomic.so.1, on both x86_64 and arm64. We also read the layers of python:3.12-slim-bookworm, python:3.13-slim, python:3.14-slim, debian:bookworm-slim, ubuntu:22.04 and ubuntu:24.04 from Docker Hub: none contains a libatomic file. The fix itself is confirmed by users, not reproduced by us: we did not run a container. Four projects report that installing libatomic1 made the same command pass, and more than 20 repositories merged that one-line fix between 9 and 14 November 2026 (GitHub search). We found no issue for it in microsoft/playwright-python on 14 November.
You may also see
process "/bin/sh -c pip install playwright && playwright install --with-deps chromium" did not complete successfully: exit code: 127python -m playwright install --with-deps chromium exits with code 127
Fix
- Check it's this: the failing line names
playwright/driver/nodeandlibatomic.so.1, the exit code is 127, andpip show playwright(or your build log) says 1.65.0 or later. If a different.sofile is named and the path is a browser, that is the usual missing browser dependency, andplaywright install-depsis the fix for that one. - Debian and Ubuntu based images (
python:3.x-slim,debian:*-slim,ubuntu:22.04,ubuntu:24.04): installlibatomic1in a step that runs before anyplaywrightcommand:
KeepFROM python:3.12-slim RUN apt-get update \ && apt-get install -y --no-install-recommends libatomic1 \ && rm -rf /var/lib/apt/lists/* RUN pip install --no-cache-dir playwright \ && playwright install --with-deps chromium--with-deps: it still installs what the browser needs. - Can't change the image today (a hosted builder, a shared base image)? Pin the last version with Node 24 in
requirements.txt,pyproject.tomlor your constraints file, then rebuild:
1.64.1 is the newest release below 1.65. The browser builds are tied to the package version, so rebuild the image, don't only reinstall the package.playwright<1.65 - Red Hat family images (Fedora, UBI, Amazon Linux 2023): the package is called
libatomic, sodnf install -y libatomic. We did not test these images, and Playwright only supports Debian and Ubuntu officially. - Multi-stage builds: the library must be in the final stage too. If you install Playwright in a builder stage and copy the virtual environment across, the runtime stage needs
libatomic1as well, or the driver fails when the app starts instead of at build time. - Then pin Playwright to an exact version (
playwright==1.65.2or a lockfile). The break reached most projects because the Dockerfile installed whatever was newest. A pinned version moves only when you choose, and Renovate or Dependabot can raise the pull request for you. - Verify in the built image:
python -m playwright --versionshould print the version and exit with code 0. Then start a browser once, for examplepython -c "from playwright.sync_api import sync_playwright as p; b = p().start().chromium.launch(); b.close()".
Get it fixed: $49
Pay by card, no account needed. Pull request within 48 hours; build still failing, full refund.
How it works: 1. Pay on Gumroad; the checkout asks for the repository. 2. Invite my GitHub user, Donrulezz, to that repository only (private is fine), or email a zip with the failing log to hello@deadlinefix.com. 3. You get a pull request with a list of every change; you review, merge and deploy. I never ask for cloud passwords or production keys.
Who does the work: me, Ashish, the owner of this site, based in India. My public code and tools are on GitHub: github.com/Donrulezz.
Watch out
playwright install --with-depsandplaywright install-depscannot repair this. Both are run by the bundled Node driver, which is the program that fails to start. In the 1.65.2 driver,libatomic1appears only in the WebKit dependency lists, not in the Chromium ones, so even a workinginstall-deps chromiumwould not add it.- Upgrading does not help: 1.65.1 (11 November) and 1.65.2 (14 November 2026) have the same Node 26 driver.
- The full, non-slim
python:3.ximages include compilers. We did not download them to check for libatomic, so run the verify step if you rely on one. - The Java and .NET Playwright packages bundle a Node driver too. We read only the Python wheels, so we can't say whether they changed at the same version.
- Node's own Playwright (
npm install playwright) uses the Node you installed, not a bundled one. If you see this error there, it comes from your own Node binary, and the same package should fix it (not tested by us). - If Microsoft documents the requirement, adds libatomic1 to the Python install guide, or ships a driver that doesn't need it, we will note it here.
Sources
- playwright on PyPI: release history and files (1.65.0 uploaded 9 November 2026)
- NeteaseTSBot issue #30: python -m playwright --version exits 127 on python:3.11-slim; passes after installing libatomic1
- vitrail issue #1: python:3.12-slim build fails on playwright 1.65.0; fixed by installing libatomic1
- Yeliztli issue #2668: same Dockerfile passed with Playwright 1.64.1 and failed with 1.65.0
- sethlans_reborn issue #212: Playwright 1.65 driver needs libatomic1 on python:3.14-slim-bookworm
- Playwright for Python: Docker guide
- Debian package libatomic1
Other errors breaking soon
- GitHub Actions: "Event 'pull_request_target' is not allowed to trigger Actions workflows"
- Unable to display RD Web Access: Chrome 158 and Edge 159 turn off XSLT
- OpenAI Agent Builder shuts down on 30 November 2026: export your workflows, keep ChatKit, move prompt objects
- Claude Sonnet 4.5 retires on 30 November 2026: the 400 errors on Sonnet 5.5 and the fix
- Exchange Online POP and IMAP: TLS 1.0 and 1.1 refused, imap-legacy.office365.com gone
- Windows KB5127648: 802.1X Wi-Fi, wired and VPN sign-in fails (NTLMv1 SSO blocked)
- Firebase: Runtime Node.js 20 was decommissioned
- Firebase Hosting deploy fails: 403 "Permission denied to get service [firebasehosting.googleapis.com]"
- GitHub webhooks: "Failed to connect to host" after GitHub added 3 webhook IP ranges (29 October 2026)
- AWS CodeBuild: Unknown runtime version named '20' of nodejs
- Google Cloud Python: non-supported Python version (3.10)
- Azure OpenAI o1, o3, o3-mini and o4-mini retired on 19 November 2026: 410 Gone
- OpenAI: "The model โฆ has been deprecated" or "Model not found" after a shutdown
- Nextcloud desktop 35.0.1 won't start: "UNIQUE constraint failed: metadata.inode"
- Contact Form 7 6.2: "Composer detected issues in your platform" (PHP 8.3 required)
- Biome 2.6: biome check fails on README.md and YAML files after the upgrade
- pytest 9.2: xdist_group tests run on different workers (--dist loadgroup)
- WordPress 7.2 ignores data-wp-init--, data-wp-watch-- and data-wp-run-- directives
- Ubuntu 26.04 upgrade stops with "Unable to upgrade MySQL" (mysql_native_password accounts)
- Excel for Mac crashes when you refresh a pivot table (version 16.114)
- Outlook.com / Hotmail rejects your email: "Message lacks SPF/DKIM/DMARC Auth Records (AS9031519)"
- HubSpot Pipelines API V1 stops on 4 December 2026: move /crm-pipelines/v1/pipelines calls (and the n8n HubSpot node's stage lists)
- Typer 0.29: 'TyperOption' object has no attribute 'type', click_type and typer._types are gone
- Upload button does nothing in Office panes and small windows: "File chooser dialog was suppressed" (400x300)
- react-dropzone ignores dropped files in Chrome 157: SecurityError on FileSystemFileHandle.getFile()
- Playwright v1.64.1 Docker image now has Node 26: "Cannot read properties of undefined (reading 'prototype')"
- NumPy 2.4+: einsum with optimize=True returns wrong results for bool and small-integer arrays