From f7c108c77fc5a7b2b406148befdac81920bb2d84 Mon Sep 17 00:00:00 2001 From: Davide Grilli Date: Tue, 10 Mar 2026 09:46:06 +0100 Subject: [PATCH] fix(docker): install vcrun2019 via winetricks to fix python.exe c0000135 Python 3.11 requires VCRUNTIME140.dll (VC++ 2019 runtime) which is not present in the default Wine prefix; without it python.exe fails with STATUS_DLL_NOT_FOUND (exit code 53). --- contrib/windows/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/contrib/windows/Dockerfile b/contrib/windows/Dockerfile index e17fd0f..38781aa 100644 --- a/contrib/windows/Dockerfile +++ b/contrib/windows/Dockerfile @@ -8,7 +8,7 @@ RUN dpkg --add-architecture i386 && \ apt-get update && apt-get install -y --no-install-recommends \ wine wine64 \ python3 python3-pip python3-venv libpython3.11 \ - binutils wget xvfb xauth ca-certificates \ + binutils wget xvfb xauth winetricks ca-certificates \ && rm -rf /var/lib/apt/lists/* WORKDIR /build @@ -23,6 +23,9 @@ RUN python3 -m venv venv && \ # Bootstrap Wine prefix RUN wineboot --init 2>/dev/null || true +# Install Visual C++ 2019 runtime (required by Python 3.11) +RUN xvfb-run winetricks -q vcrun2019 + # Install Python for Windows under Wine (silent, no GUI) RUN wget -q "https://www.python.org/ftp/python/3.11.9/python-3.11.9-amd64.exe" -O /tmp/py.exe && \ xvfb-run wine /tmp/py.exe /quiet InstallAllUsers=1 PrependPath=1 TargetDir="C:\\Python311" && \