Skip to content

[BUG] Docker images don't appear to come with playwright installed. #1978

@bwinter

Description

@bwinter

Context:

  • Playwright Version: 1.33.0 (trying to use 1.34.0/1.35.0)
  • Operating System: Linux
  • Python version: 3.10.6 (comes with mcr.microsoft.com images)
  • Browser: N/A to this bug
  • Extra:

Code Snippet

Build images and compare the container's pip list output:

FROM mcr.microsoft.com/playwright/python:v1.33.0

COPY . .
FROM mcr.microsoft.com/playwright/python:v1.34.0

COPY . .

Describe the bug

More recent Docker images don't appear to come with playwright properly installed. Or the intended usage has changed, but is not properly documented in release notes. (It seems impossible I am the first to notice this but I couldn't find any obvious open / closed issues on the web describing what I am seeing.)

e.g.

1.33.0 (similar in 1.32.1)

root@a850b1bfbf75:/# pip list
Package           Version
----------------- -------
greenlet          2.0.1
pip               23.1.2
playwright        1.33.0
pyee              9.0.4
setuptools        67.7.2
typing_extensions 4.5.0
wheel             0.40.0

1.34.0 (similar in 1.35.0)

root@9a74fe4c7348:/# pip list
Package      Version
------------ -------
distlib      0.3.6
filelock     3.12.0
pip          23.1.2
platformdirs 3.5.1
setuptools   67.8.0
virtualenv   20.23.0
wheel        0.40.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions