From 3a7ec45f4b1a705b603a64f530ea4725b8d0a3c0 Mon Sep 17 00:00:00 2001 From: Joakim Persson Date: Thu, 23 Apr 2026 20:24:07 +0200 Subject: [PATCH] Add python3-venv to base image (Mason needs ensurepip for venv creation) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit python3-pip alone wasn't enough — Debian trixie ships python3 and python3-pip as separate packages from python3.13-venv. Mason creates a venv per package then pip-installs into it. Without python3-venv, 'python3 -m venv' fails with 'ensurepip is not available' and every Mason Python package (ruff, ansible-lint, etc.) errors on every nvim start. Adding python3-venv (which pulls in ensurepip + pip-whl + setuptools-whl) completes the chain: venv creation works, pip is available inside the venv, Mason installs succeed. --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index ac32036..187644d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -43,6 +43,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ g++ \ rsync \ python3-pip \ + python3-venv \ && ln -s /usr/bin/fdfind /usr/local/bin/fd \ && rm -rf /var/lib/apt/lists/*