* opensuse tumbleweed container broken
@ 2023-08-13 15:17 Mark Wielaard
2023-08-18 14:25 ` Mark Wielaard
0 siblings, 1 reply; 2+ messages in thread
From: Mark Wielaard @ 2023-08-13 15:17 UTC (permalink / raw)
To: buildbot
Hi,
After the refresh on Sunday, the open suse tumbleweed container cannot
be instantiated anymore. The problem is this step:
2023-08-13 15:03:34+0000 [-] Step 5/12 : RUN pip install buildbot-worker
2023-08-13 15:03:34+0000 [-] ---> Running in 7b9d0a811216
2023-08-13 15:03:34+0000 [-] ESC[91merror: externally-managed-environment
2023-08-13 15:03:34+0000 [-] × This environment is externally managed
2023-08-13 15:03:34+0000 [-] ╰─> To install Python packages system-wide, try
2023-08-13 15:03:34+0000 [-] zypper install python311-xyz, where xyz is the package
2023-08-13 15:03:34+0000 [-] you are trying to install.
2023-08-13 15:03:34+0000 [-]
2023-08-13 15:03:34+0000 [-] If you wish to install a non-rpm packaged Python package,
2023-08-13 15:03:34+0000 [-] create a virtual environment using python3.11 -m venv path/to/venv.
2023-08-13 15:03:34+0000 [-] Then use path/to/venv/bin/python and path/to/venv/bin/pip.
2023-08-13 15:03:34+0000 [-]
2023-08-13 15:03:34+0000 [-] If you wish to install a non-rpm packaged Python application,
2023-08-13 15:03:34+0000 [-] it may be easiest to use `pipx install xyz`, which will manage a
2023-08-13 15:03:34+0000 [-] virtual environment for you. Install pipx via `zypper install python311-pipx` .
2023-08-13 15:03:34+0000 [-] note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
2023-08-13 15:03:34+0000 [-] hint: See PEP 668 for the detailed specification.
2023-08-13 15:03:34+0000 [-] ESC[0m
2023-08-13 15:03:35+0000 [-] ERROR: The command '/bin/sh -c pip install buildbot-worker' returned a non-zero code: 1
Anybody with some tumbleweed python311 knowledge who could adapt the
container file?
https://sourceware.org/cgit/builder/tree/README_containers
https://sourceware.org/cgit/builder/tree/builder/containers/Containerfile-opensuse-tumbleweed
Thanks,
Mark
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: opensuse tumbleweed container broken
2023-08-13 15:17 opensuse tumbleweed container broken Mark Wielaard
@ 2023-08-18 14:25 ` Mark Wielaard
0 siblings, 0 replies; 2+ messages in thread
From: Mark Wielaard @ 2023-08-18 14:25 UTC (permalink / raw)
To: buildbot
[-- Attachment #1: Type: text/plain, Size: 249 bytes --]
Hi,
On Sun, 2023-08-13 at 17:17 +0200, Mark Wielaard wrote:
> After the refresh on Sunday, the open suse tumbleweed container cannot
> be instantiated anymore.
I believe the attached patch (already pushed) should fix it.
Cheers,
Mark
[-- Attachment #2: 0001-Containerfile-opensuse-tumbleweed-use-pipx-to-instal.patch --]
[-- Type: text/x-patch, Size: 1440 bytes --]
From 3fc24b008fd348273bbb3ccc232db3aff7b70378 Mon Sep 17 00:00:00 2001
From: Mark Wielaard <mark@klomp.org>
Date: Fri, 18 Aug 2023 16:23:12 +0200
Subject: [PATCH] Containerfile-opensuse-tumbleweed use pipx to install
buildbot-worker
---
builder/containers/Containerfile-opensuse-tumbleweed | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/builder/containers/Containerfile-opensuse-tumbleweed b/builder/containers/Containerfile-opensuse-tumbleweed
index 7badf00..980e306 100644
--- a/builder/containers/Containerfile-opensuse-tumbleweed
+++ b/builder/containers/Containerfile-opensuse-tumbleweed
@@ -11,13 +11,15 @@ RUN zypper -n install \
libmicrohttpd-devel sqlite-devel libelf-devel libdw-devel elfutils \
xmlto poppler-tools libxslt docbook-dtds docbook-xsl-stylesheets \
libxml2-devel dos2unix dpkg python3-devel \
- python3-rpm python3-pyxdg python3-pip openmpi-devel gdb help2man wget \
+ python3-rpm python3-pyxdg python3-pipx openmpi-devel gdb help2man wget \
texinfo libexpat-devel glibc-devel glibc-locale xxhash-devel \
ncurses-devel jq libjson-c-devel socat shadow
RUN zypper clean
# Install buildbot-worker
-RUN pip install buildbot-worker
+ENV PIPX_HOME=/usr/local
+ENV PIPX_BIN_DIR=/usr/local/bin
+RUN pipx install buildbot-worker
# Setup user with same id as host user id.
RUN useradd -u 1001 -U -d /home/builder -m builder
--
2.41.0
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-08-18 14:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-13 15:17 opensuse tumbleweed container broken Mark Wielaard
2023-08-18 14:25 ` Mark Wielaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).