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

[BUG] Cannot install webkit deps on debian 11 linux arm64 #19543

Closed
tekumara opened this issue Dec 18, 2022 · 3 comments
Closed

[BUG] Cannot install webkit deps on debian 11 linux arm64 #19543

tekumara opened this issue Dec 18, 2022 · 3 comments

Comments

@tekumara
Copy link

I'm using python:3.9 debian bullseye on arm64:

❯ docker run --rm -it --entrypoint /bin/bash python:3.9 -c "pip install playwright && playwright install webkit --with-deps"
Collecting playwright
  Downloading playwright-1.28.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (32.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 32.9/32.9 MB 5.9 MB/s eta 0:00:00
Collecting greenlet==2.0.1
  Downloading greenlet-2.0.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (526 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 526.1/526.1 KB 7.1 MB/s eta 0:00:00
Collecting pyee==9.0.4
  Downloading pyee-9.0.4-py2.py3-none-any.whl (14 kB)
Collecting typing-extensions
  Downloading typing_extensions-4.4.0-py3-none-any.whl (26 kB)
Installing collected packages: typing-extensions, greenlet, pyee, playwright
Successfully installed greenlet-2.0.1 playwright-1.28.0 pyee-9.0.4 typing-extensions-4.4.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
WARNING: You are using pip version 22.0.4; however, version 22.3.1 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
BEWARE: your OS is not officially supported by Playwright; installing dependencies for Ubuntu as a fallback.
Installing dependencies...
Get:1 http://deb.debian.org/debian bullseye InRelease [116 kB]
Get:2 http://deb.debian.org/debian-security bullseye-security InRelease [48.4 kB]
Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
Get:4 http://deb.debian.org/debian bullseye/main arm64 Packages [8072 kB]
Get:5 http://deb.debian.org/debian-security bullseye-security/main arm64 Packages [206 kB]
Get:6 http://deb.debian.org/debian bullseye-updates/main arm64 Packages [12.0 kB]
Fetched 8498 kB in 2s (3407 kB/s)               
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'libfontconfig1' instead of 'libfontconfig'
Package ttf-ubuntu-font-family is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libjpeg-turbo8 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Unable to locate package libenchant1c2a
E: Unable to locate package libicu66
E: Package 'libjpeg-turbo8' has no installation candidate
E: Package 'ttf-ubuntu-font-family' has no installation candidate
Failed to install browsers
Error: Installation process exited with code: 100
@tekumara
Copy link
Author

tekumara commented Dec 18, 2022

I can get ttf-ubuntu-font-family as follows, but still missing libicu66 and libjpeg-turbo8:

❯ docker run --rm -it --entrypoint /bin/bash python:3.9 -c "echo 'deb http://ftp.us.debian.org/debian buster main non-free' >> /etc/apt/sources.list.d/fonts.list && pip install playwright && playwright install webkit --with-deps"
Collecting playwright
  Downloading playwright-1.28.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (32.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 32.9/32.9 MB 5.8 MB/s eta 0:00:00
Collecting greenlet==2.0.1
  Downloading greenlet-2.0.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (526 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 526.1/526.1 KB 7.1 MB/s eta 0:00:00
Collecting pyee==9.0.4
  Downloading pyee-9.0.4-py2.py3-none-any.whl (14 kB)
Collecting typing-extensions
  Downloading typing_extensions-4.4.0-py3-none-any.whl (26 kB)
Installing collected packages: typing-extensions, greenlet, pyee, playwright
Successfully installed greenlet-2.0.1 playwright-1.28.0 pyee-9.0.4 typing-extensions-4.4.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
WARNING: You are using pip version 22.0.4; however, version 22.3.1 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
BEWARE: your OS is not officially supported by Playwright; installing dependencies for Ubuntu as a fallback.
Installing dependencies...
Get:1 http://deb.debian.org/debian bullseye InRelease [116 kB]
Get:2 http://deb.debian.org/debian-security bullseye-security InRelease [48.4 kB]
Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]  
Get:4 http://deb.debian.org/debian bullseye/main arm64 Packages [8072 kB]
Get:5 http://ftp.us.debian.org/debian buster InRelease [122 kB]                           
Get:6 http://deb.debian.org/debian-security bullseye-security/main arm64 Packages [206 kB]
Get:7 http://deb.debian.org/debian bullseye-updates/main arm64 Packages [12.0 kB]       
Get:8 http://ftp.us.debian.org/debian buster/non-free arm64 Packages [53.9 kB]            
Get:9 http://ftp.us.debian.org/debian buster/main arm64 Packages [7737 kB]
Fetched 16.4 MB in 6s (2859 kB/s)   
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'libfontconfig1' instead of 'libfontconfig'
Package libjpeg-turbo8 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Unable to locate package libicu66
E: Package 'libjpeg-turbo8' has no installation candidate
Failed to install browsers
Error: Installation process exited with code: 100

@mxschmitt
Copy link
Member

You are using Debian 11 ARM which is not supported yet: #18319

That's why it fallbacks to Ubuntu dependencies which produces the "Unable to locate package" errors.

@tekumara
Copy link
Author

Closed in favour of #18319

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

No branches or pull requests

2 participants