File "/usr/lib/python3.12/pathlib.py", line 1019, in read_bytes with self.open(mode='rb') as f: ^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/pathlib.py", line 1013, in open return io.open(self, mode, buffering, encoding, errors, newline) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3.12/ensurepip/_bundled/pip-24.2-py3-none-any.whl' ============================ ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 23.0_desktop_systemd-20241028-182008 UNMASKED: <sys-devel/gcc-15.0.9999:15 The attached etc.portage.tar.xz has all details. ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-15 * clang version 19.1.2 llvm-config: 19.1.2 Python 3.12.7 Available Ruby profiles: [1] ruby32 (with Rubygems) [2] ruby33 (with Rubygems) * Available Rust versions: [1] rust-bin-1.82.0 * HEAD of ::gentoo commit 098b28d61b5d44b738934ff3488b8f2a150af969 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Tue Oct 29 17:03:23 2024 +0000 2024-10-29 17:03:23 UTC emerge -qpvO =app-emulation/qemu-9.1.0 [ebuild N ] app-emulation/qemu-9.1.0 USE="aio alsa bzip2 curl debug fdt filecaps gnutls gtk jpeg lzo ncurses nls opengl oss pam pin-upstream-blobs png sdl seccomp slirp snappy udev vhost-net vnc xattr -accessibility -bpf -capstone -doc -fuse -glusterfs -infiniband -io-uring -iscsi -jack -jemalloc -keyutils -multipath -nfs -numa -pipewire -plugins -pulseaudio -python -rbd -sasl -sdl-image (-selinux) -smartcard -spice -ssh -static-user -systemtap -test -usb -usbredir -vde -virgl -virtfs -vte -xdp -xen -zstd" PYTHON_TARGETS="python3_12 -python3_10 -python3_11 -python3_13" QEMU_SOFTMMU_TARGETS="x86_64 -aarch64 -alpha -arm -avr -cris -hppa -i386 -loongarch64 -m68k -microblaze -microblazeel -mips -mips64 -mips64el -mipsel -or1k -ppc -ppc64 -riscv32 -riscv64 -rx -s390x -sh4 -sh4eb -sparc -sparc64 -tricore -xtensa -xtensaeb" QEMU_USER_TARGETS="x86_64 -aarch64 -aarch64_be -alpha -arm -armeb -cris -hexagon -hppa -i386 -loongarch64 -m68k -microblaze -microblazeel -mips -mips64 -mips64el -mipsel -mipsn32 -mipsn32el -or1k -ppc -ppc64 -ppc64le -riscv32 -riscv64 -s390x -sh4 -sh4eb -sparc -sparc32plus -sparc64 -xtensa -xtensaeb"
Created attachment 907251 [details] emerge-info.txt
Created attachment 907252 [details] app-emulation:qemu-9.1.0:20241029-180514.log
Created attachment 907253 [details] emerge-history.txt
Created attachment 907254 [details] environment
Created attachment 907255 [details] etc.clang.tar.xz
Created attachment 907256 [details] etc.portage.tar.xz
Created attachment 907257 [details] logs.tar.xz
Created attachment 907258 [details] qlist-info.txt
I ran into this problem when trying to rebuild >=app-emulation/qemu-9.2 on an ~amd64 system. Rebuilding dev-lang/python with the "ensurepip" USE flag set, which pulled in dev-python/ensurepip-pip, allowed the build of qemu to succeed.
See also https://bugs.gentoo.org/913084
See also for the likely explanation: https://bugs.gentoo.org/942518
...or perhaps not; I do not have ensurepip-pip for any python version.