Skip to content

[Regression]: bundled node in 1.65 needs libatomic.so.1, so the CLI fails on python:3.11-slim #44259

Closed

Description

@cktang88

Last Good Version

1.64.1

First Bad Version

1.65.0 (still broken in 1.65.2)

Steps to reproduce

docker run --rm --platform linux/amd64 python:3.11-slim sh -c \
  "pip install -q playwright==1.65.2 && playwright --version"

Same with playwright==1.65.0. With playwright==1.64.1 it prints Version 1.64.1.

Expected behavior

The CLI runs, so playwright install --with-deps chromium can install the browser and its system deps.

Actual behavior

/usr/local/lib/python3.11/site-packages/playwright/driver/node: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory

ldd .../playwright/driver/node shows libatomic.so.1 => not found. Because the bundled node can't start, playwright install --with-deps can't fix it either. You have to apt-get install libatomic1 yourself first.

Additional context

We hit this in Docker images that do pip install playwright && playwright install --with-deps chromium. They started failing on Nov 9 when 1.65.0 came out. apt-get install libatomic1 or pinning 1.64.1 both fix it. I'm not sure if the new node build needing libatomic is intended. If it is, it'd be great to call it out in the release notes or the Python install docs, since python:*-slim images don't ship it.

Environment

Docker image python:3.11-slim (Debian), linux/amd64 (also seen on linux/arm64)
playwright (PyPI) 1.65.0, 1.65.1, 1.65.2

Activity

  1. microsoft-playwright-automation commented on Nov 20, 2026

    @microsoft-playwright-automation
  2. microsoft-playwright-automation commented on Nov 20, 2026

    @microsoft-playwright-automation
    Contributor

    Hi, I'm the Playwright bot and I reproduced this on Linux.

    This is an intentional Node.js dependency, but the Python installation docs omitted it. Playwright 1.65 changed the bundled Node.js from 24 to 26. Official Node.js Linux binaries require libatomic starting with Node.js 25. The failure happens before Playwright can run install --with-deps.

    On Debian or Ubuntu, run this as root before running Playwright:

    apt-get update && apt-get install -y libatomic1

    I verified that this lets Playwright 1.65.2 start in python:3.11-slim. The proposal adds the prerequisite to both Python installation pages and the 1.65 release notes. It does not change the bundled runtime or remove the dependency.

    Draft PR: #44262

    Reproduction and checks

    On Linux x86-64, I extracted the driver from the published Python wheels and ran it with all its shared libraries except libatomic.so.1:

    Playwright Bundled Node.js Without libatomic.so.1 With libatomic.so.1
    1.64.1 24.22.1 Node.js and CLI --version succeed CLI succeeds
    1.65.0 26.13.0 Node.js --version, CLI --version, and install --with-deps chromium fail with exit 127 CLI succeeds
    1.65.2 26.13.1 Same failures as 1.65.0 CLI succeeds

    The error is libatomic.so.1: cannot open shared object file: No such file or directory.

    I also ran this independent check in the actual Python slim image:

    docker run --rm --platform linux/amd64 python:3.11-slim sh -c \
      'python -m pip install -q playwright==1.65.2; python -m playwright --version;
       apt-get update -qq && apt-get install -y -qq libatomic1 &&
       python -m playwright --version'

    The first CLI call fails with the reported error; the last prints Version 1.65.2. The image digest was sha256:07d4824036af339fa1b6ef769cc99d9c10a141769538b52b3b597c84f7a7b535.

    Python main at de03c865f5738c2291a6a58c8b5c20346d8e70f2 still pins Node.js 26.13.1. I checked that pin against the binary tested above; I did not build a new Python wheel. I did not run arm64 or 1.65.1. No browser test applies: the loader fails before JavaScript or a browser starts.

    The official Python Docker images already install this dependency following microsoft/playwright-python#3331. That change does not affect python:*-slim images.

    The documentation proposal is against Playwright 2f1592a70bdd82049f5086df18c4359ca64d415b. npm run build passed. All npm run flint checks, including documentation links, passed in the official v1.65.1-noble container with the checkout's browser builds. The host lacked WebKit system libraries, so I did not install packages into the shared host.

    Triaged on Linux by the Playwright bot - agent run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-triage-done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions