Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: support Debian 12 bookworm #24028

Closed
onitake opened this issue Jul 4, 2023 · 2 comments
Closed

feature: support Debian 12 bookworm #24028

onitake opened this issue Jul 4, 2023 · 2 comments
Assignees
Labels

Comments

@onitake
Copy link

onitake commented Jul 4, 2023

Context:

  • GOOD Playwright Version: N/A
  • BAD Playwright Version: 1.35.0
  • Operating System: Debian bookworm
  • Extra: The installer still worked on Debian bullseye

Code Snippet

FROM python:3.11-slim-bookworm
RUN pip install playwright==1.35.0
RUN playwright install firefox --with-deps

Describe the bug

Similar to the issues in #13530 , playwright fails to install on Debian bookworm:

E: Package 'ttf-unifont' has no installation candidate
E: Package 'xfonts-cyrillic' has no installation candidate
E: Package 'ttf-ubuntu-font-family' has no installation candidate

The workaround with the non-free repository doesn't help, because these packages have different issues:

  • For ttf-unifont, please install fonts-unifont instead. The ttf- prefix has been dropped in Ubuntu 22.04 and Debian bookworm in favor of fonts-.
  • For ttf-ubuntu-font-family, please use fonts-ubuntu. Same reason as above. Additionally, this package is only available from the non-free repository on Debian, so I think it should be dropped unless it's really needed.
  • xfonts-cyrillic is not available in Debian stable/testing due to https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=999227 , but is this really needed? Bitmap fonts do not scale well on high-DPI screens. If Unifont doesn't cover the Cyrillic alphabet sufficiently and you really need a bitmap font, please use something like xfonts-cronyx-75dpi that is available both in Debian and Ubuntu. Otherwise, I'd simply drop this dependency.
@racam
Copy link

racam commented Jul 6, 2023

Same problem here. Fixed it by forcing bullseye FROM python:3.10.12-slim-bullseye

aslushnikov added a commit to aslushnikov/playwright that referenced this issue Jul 6, 2023
This adds support for both x86 and arm64 versions of Debian 12.

References microsoft#24028
aslushnikov added a commit that referenced this issue Jul 7, 2023
This adds Chromium support for both x86 and arm64 versions of Debian 12.

References #24028
@aslushnikov aslushnikov added v1.37 and removed v1.36 labels Jul 7, 2023
@aslushnikov aslushnikov changed the title [REGRESSION]: Playwright no longer installs on Debian bookworm feature: support Debian 12 bookworm Jul 12, 2023
@mxschmitt
Copy link
Member

Folding into #23532

Germandrummer92 pushed a commit to OctoMind-dev/playwright that referenced this issue Oct 27, 2023
This adds Chromium support for both x86 and arm64 versions of Debian 12.

References microsoft#24028
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants