From 4f03fe24200079627d3fa71b9ebf2fbdefd6cd1f Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Tue, 14 Mar 2023 18:00:10 -0700 Subject: [PATCH] docker: fix pyvips cffi mismatch --- docker/Dockerfile.full | 3 +++ docker/template/Dockerfile.full.header | 3 +++ 2 files changed, 6 insertions(+) diff --git a/docker/Dockerfile.full b/docker/Dockerfile.full index c5d8d849e..92d6700f0 100644 --- a/docker/Dockerfile.full +++ b/docker/Dockerfile.full @@ -62,6 +62,9 @@ RUN apt-get -y install \ # python pip RUN python3 -m pip install --upgrade pip +# pyvips is broken on x86 due to mismatch ffi +# https://stackoverflow.com/questions/62658237/it-seems-that-the-version-of-the-libffi-library-seen-at-runtime-is-different-fro +RUN pip install --force-reinstall --no-binary :all: cffi RUN python3 -m pip install aiofiles debugpy typing_extensions typing psutil ################################################################ diff --git a/docker/template/Dockerfile.full.header b/docker/template/Dockerfile.full.header index dde156b0f..6e9600d88 100644 --- a/docker/template/Dockerfile.full.header +++ b/docker/template/Dockerfile.full.header @@ -59,6 +59,9 @@ RUN apt-get -y install \ # python pip RUN python3 -m pip install --upgrade pip +# pyvips is broken on x86 due to mismatch ffi +# https://stackoverflow.com/questions/62658237/it-seems-that-the-version-of-the-libffi-library-seen-at-runtime-is-different-fro +RUN pip install --force-reinstall --no-binary :all: cffi RUN python3 -m pip install aiofiles debugpy typing_extensions typing psutil ################################################################