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

Please create images based on Debian 11 Bullseye #184

Open
lsli8888 opened this issue Nov 25, 2023 · 1 comment
Open

Please create images based on Debian 11 Bullseye #184

lsli8888 opened this issue Nov 25, 2023 · 1 comment

Comments

@lsli8888
Copy link

lsli8888 commented Nov 25, 2023

Your images are based on Debian 10 Buster. I want to use your image for running the Scrapy Playwright plugin. Unfortunately, Playwright currently only supports Debian 11 Bullseye.

The issue is Debian 10 Buster doesn't have some libraries that are needed by Playwright dependencies. Here's my Dockerfile:

FROM scrapinghub/scrapinghub-stack-scrapy:2.10-latest

ENV TERM xterm
ENV SCRAPY_SETTINGS_MODULE myscrapyproject.settings

RUN mkdir -p /app
WORKDIR /app
COPY ./requirements.txt /app/requirements.txt

RUN pip install --no-cache-dir -r requirements.txt
COPY . /app
RUN python setup.py install

RUN playwright install
RUN playwright install-deps

I get the following error:

> [10/9] RUN playwright install-deps:
0.873 BEWARE: your OS is not officially supported by Playwright; installing dependencies for ubuntu20.04-x64 as a fallback.
0.873 Installing dependencies...
0.924 Get:1 http://deb.debian.org/debian buster InRelease [122 kB]
0.943 Get:2 http://deb.debian.org/debian-security buster/updates InRelease [34.8 kB]
0.944 Get:3 http://deb.debian.org/debian buster-updates InRelease [56.6 kB]
1.109 Get:4 http://deb.debian.org/debian buster/main amd64 Packages [7909 kB]
1.843 Get:5 http://deb.debian.org/debian-security buster/updates/main amd64 Packages [571 kB]
1.899 Get:6 http://deb.debian.org/debian buster-updates/main amd64 Packages [8788 B]
2.926 Fetched 8702 kB in 2s (4346 kB/s)
2.926 Reading package lists...
3.540 Reading package lists...
4.186 Building dependency tree...
4.301 Reading state information...
4.375 Package ttf-ubuntu-font-family is not available, but is referred to by another package.
4.375 This may mean that the package is missing, has been obsoleted, or
4.375 is only available from another source
4.375 
4.375 Package libjpeg-turbo8 is not available, but is referred to by another package.
4.375 This may mean that the package is missing, has been obsoleted, or
4.375 is only available from another source
4.375 
4.426 E: Package 'ttf-ubuntu-font-family' has no installation candidate
4.426 E: Unable to locate package libenchant-2-2
4.426 E: Unable to locate package libicu66
4.426 E: Package 'libjpeg-turbo8' has no installation candidate
4.426 E: Unable to locate package libvpx6
4.426 E: Unable to locate package libevent-2.1-7
4.426 E: Couldn't find any package by glob 'libevent-2.1-7'
4.426 E: Couldn't find any package by regex 'libevent-2.1-7'
4.428 Failed to install browser dependencies
4.428 Error: Installation process exited with code: 100
------
Dockerfile:26
--------------------
  24 |     # RUN apt-get update -y
  25 |     RUN playwright install
  26 | >>> RUN playwright install-deps
  27 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c playwright install-deps" did not complete successfully: exit code: 1
@revilzs
Copy link

revilzs commented Apr 22, 2024

I was able to workaround the playwright installation with:

RUN . /etc/os-release && \
    echo "deb http://ftp.us.debian.org/debian $VERSION_CODENAME main non-free" >> /etc/apt/sources.list.d/fonts.list

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