After the sync this morning, many python packages lost python-compat and produce errors. Restoring the prior python-utils allows updates but now lots of warnings about packages that have to be changed to pep517
Please share the full command and its output, and emerge --info. But this is likely better for #gentoo, the forums, or the gentoo-user mailing lists. You probably have something installed which isn't yet supporting Python 3.13.
harrisl@beelink2 ~ $ world-up These are the packages that would be merged, in order: Calculating dependencies | !!! Problem resolving dependencies for app-misc/byobu from @selected ... done! Dependency resolution took 2.69 s (backtrack: 0/20). !!! The ebuild selected to satisfy "app-misc/byobu" has unmet requirements. - app-misc/byobu-5.133::gentoo USE="-screen" ABI_X86="(64)" PYTHON_SINGLE_TARGET="-python3_11 -python3_12 -python3_13" The following REQUIRED_USE flag constraints are unsatisfied: exactly-one-of ( python_single_target_python3_11 python_single_target_python3_12 python_single_target_python3_13 ) (dependency required by "@selected" [set]) (dependency required by "@world" [argument]) harrisl@beelink2 ~ $
This is because byobu lost python-compat which is set in the ebuild
harrisl@beelink2 ~ $ sudo emerge --infoPortage 3.0.68 (python 3.12.10-final-0, default/linux/amd64/23.0/desktop/gnome/systemd, gcc-15, glibc-2.41-r1, 6.14.4-gentoo-x86_64 x86_64) ================================================================= System uname: Linux-6.14.4-gentoo-x86_64-x86_64-AMD_Ryzen_AI_9_HX_370_w-_Radeon_890M-with-glibc2.41 KiB Mem: 61236312 total, 15439828 free KiB Swap: 67108860 total, 67108860 free Timestamp of repository gentoo: Thu, 01 May 2025 16:24:23 +0000 Head commit of repository gentoo: ddcfbd02cd2e7d9cb45a3c2ac423b5b2f8b2edd2 Timestamp of repository Miezhiko: Thu, 01 May 2025 11:57:24 +0000 Head commit of repository Miezhiko: 44a8268ea78a24c05f709dcf4e95b2eb58b04429 sh bash 5.2_p37 ld GNU ld (Gentoo 2.44 p1) 2.44.0 app-misc/pax-utils: 1.3.8::gentoo app-shells/bash: 5.2_p37::gentoo dev-build/autoconf: 2.13-r8::gentoo, 2.72-r1::gentoo dev-build/automake: 1.17-r2::gentoo dev-build/cmake: 3.31.7::gentoo dev-build/libtool: 2.5.4::gentoo dev-build/make: 4.4.1-r100::gentoo dev-build/meson: 1.8.0::gentoo dev-java/java-config: 2.3.4::gentoo dev-lang/perl: 5.40.2::gentoo dev-lang/python: 3.10.17-r1::gentoo, 3.11.12::gentoo, 3.12.10::gentoo, 3.13.3::gentoo, 3.13.3-r100::gentoo dev-lang/rust: 1.86.0-r1::gentoo dev-lang/rust-bin: 1.86.0-r1::gentoo llvm-core/clang: 17.0.6::gentoo, 19.1.7::gentoo, 20.1.3::gentoo llvm-core/lld: 19.1.7::gentoo llvm-core/llvm: 17.0.6-r3::gentoo, 19.1.7::gentoo, 20.1.3::gentoo sys-apps/baselayout: 2.17::gentoo sys-apps/sandbox: 2.46::gentoo sys-apps/systemd: 257.5::gentoo sys-devel/binutils: 2.44::gentoo sys-devel/binutils-config: 5.5.2::gentoo sys-devel/gcc: 14.2.1_p20250419::gentoo, 15.1.0::gentoo sys-devel/gcc-config: 2.12.1::gentoo sys-kernel/linux-headers: 6.14::gentoo (virtual/os-headers) sys-libs/glibc: 2.41-r1::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: git sync-uri: https://github.com/gentoo-mirror/gentoo.git priority: -1000 eclass-overrides: local volatile: False sync-git-verify-commit-signature: yes Miezhiko location: /var/db/repos/Miezhiko sync-type: git sync-uri: https://github.com/gentoo-mirror/Miezhiko.git masters: gentoo eclass-overrides: local volatile: False local location: /var/db/repos/local masters: gentoo eclass-overrides: local volatile: False Binary Repositories: binhost priority: 9999 sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks export-pms-vars fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs" LEX="flex" LINGUAS="en en_US en-US" MAKEOPTS="-j24" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" SHELL="/bin/bash" USE="RUBY_TARGETS:-ruby31 X a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cet colord crypt cups dbus dri drm dts dvd dvdr eds egl encode esd evo exif flac gbm gdbm gdk-pixbuf gif gles1 gles2 gnome gnome-keyring gnome-online-accounts gnome-shell gpm gstreamer gtk gtk3 gui iconv icu introspection ipv6 jpeg keyring lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls ogg opencl opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qml qt5 qt6 readline ruby32 ruby33 ruby34 screencast sdl seccomp sound spell ssl startup-notification svg sysprof systemd test-rust tiff tracker truetype udev udisks unicode upower usb vdpau vdpaui vorbis vulkan wayland webp wxwidgets x264 xattr xcb xft xinerama xml xv xvid xvmc zlib" ABI_X86="64" ADA_TARGET="gcc_14" AMDGPU_TARGETS="gfx1100 gfx1150" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 avx512_bf16 avx512_bitalg avx512_vbmi2 avx512_vnni avx512_vp2intersect avx512_vpopcntdq avx512bw avx512cd avx512dq avx512f avx512ifma avx512vbmi avx512vl f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 vpclmulqdq" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="evdev libinput wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres17" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby32 ruby33 ruby34" VIDEO_CARDS="radeonsi amdgpu radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS harrisl@beelink2 ~ $
(In reply to Harris Landgarten from comment #2) > harrisl@beelink2 ~ $ world-up If asked to share the full command, you shouldn't use a script or alias. (In reply to Harris Landgarten from comment #3) > This is because byobu lost python-compat which is set in the ebuild No, it's the same thing as usual. The default PYTHON_SINGLE_TARGET changed and Portage doesn't have (and never has had, though we hope it will someday) automatic solving or autounmask for REQUIRED_USE constraints.
byobu itself has py3.13 since: commit a8c06e0b9ef9f0cdddb670c68493d642a82c3e16 Author: Matt Jolly <kangie@gentoo.org> Date: Fri Dec 6 16:13:18 2024 +1000 app-misc/byobu: enable py3.13 Signed-off-by: Matt Jolly <kangie@gentoo.org> You probably have junk in /etc/portage. Run `grep -rsin python /etc/portage` and cleanup stale Python references.
sudo emerge -uvDNaU --keep-going=y --with-bdeps=y @world
(In reply to Harris Landgarten from comment #2) > harrisl@beelink2 ~ $ world-up > > These are the packages that would be merged, in order: > > Calculating dependencies | > > !!! Problem resolving dependencies for app-misc/byobu from @selected > ... done! > Dependency resolution took 2.69 s (backtrack: 0/20). > > > !!! The ebuild selected to satisfy "app-misc/byobu" has unmet requirements. > - app-misc/byobu-5.133::gentoo USE="-screen" ABI_X86="(64)" > PYTHON_SINGLE_TARGET="-python3_11 -python3_12 -python3_13" > > The following REQUIRED_USE flag constraints are unsatisfied: > exactly-one-of ( python_single_target_python3_11 > python_single_target_python3_12 python_single_target_python3_13 ) > > (dependency required by "@selected" [set]) > (dependency required by "@world" [argument]) > harrisl@beelink2 ~ $ (In reply to Harris Landgarten from comment #3) > This is because byobu lost python-compat which is set in the ebuild No. By the very definition, it can't simultaneously be "lost" and "set in the ebuild". It's your configuration overriding PYTHON_SINGLE_TARGET for it.
You were right. There was a rogue setting in /etc/portage/package.use/user for byobu, probably from a long time ago. I deleted it and am now rebuilding 435 packages
After getting past the byobu issue, portage tries to add a python target or python_single to /etc/portage/package.use for all packages. The only workaround was to add python_target=”python3_12 to /etc/portage/make.conf. I thought portage was supposed to manage this automatically. I had removed the python target stuff previously. Could still be issues with the update to eclass.
When seeking support, please don't apply workarounds. Please share the full command and output with all workarounds removed. Please also share the output of emerge -pev @world --backtrack=0.
the only output for emerge @world was a request to add lines to /etc/portage/package.use/user This was added before I gave up: # required by dev-python/pycares-4.6.1::gentoo # required by dev-python/aiodns-3.2.0::gentoo[-test] # required by dev-python/aiohttp-3.11.18::gentoo # required by dev-python/openai-1.76.2::Miezhiko # required by @selected # required by @world (argument) >=dev-python/setuptools-80.1.0 python_targets_python3_12 # required by dev-python/setuptools-80.1.0::gentoo # required by dev-python/imagesize-1.4.1::gentoo # required by dev-python/sphinx-8.2.3::gentoo # required by dev-python/sphinxcontrib-applehelp-2.0.0-r1::gentoo >=dev-python/jaraco-collections-5.1.0 python_targets_python3_12 # required by dev-python/setuptools-80.1.0::gentoo # required by dev-python/imagesize-1.4.1::gentoo # required by dev-python/sphinx-8.2.3::gentoo # required by dev-python/sphinxcontrib-applehelp-2.0.0-r1::gentoo >=dev-python/jaraco-functools-4.1.0 python_targets_python3_12 # required by dev-python/setuptools-80.1.0::gentoo # required by dev-python/imagesize-1.4.1::gentoo # required by dev-python/sphinx-8.2.3::gentoo # required by dev-python/sphinxcontrib-applehelp-2.0.0-r1::gentoo >=dev-python/jaraco-text-4.0.0 python_targets_python3_12 # required by dev-python/setuptools-80.1.0::gentoo # required by dev-python/imagesize-1.4.1::gentoo # required by dev-python/sphinx-8.2.3::gentoo # required by dev-python/sphinxcontrib-applehelp-2.0.0-r1::gentoo >=dev-python/more-itertools-10.7.0 python_targets_python3_12 # required by dev-python/poetry-core-2.1.2::gentoo[-test] # required by dev-python/aiohappyeyeballs-2.6.1::gentoo # required by dev-python/aiohttp-3.11.18::gentoo # required by dev-python/openai-1.76.2::Miezhiko # required by @selected # required by @world (argument) >=dev-python/packaging-25.0 python_targets_python3_12 # required by dev-python/setuptools-80.1.0::gentoo # required by dev-python/imagesize-1.4.1::gentoo # required by dev-python/sphinx-8.2.3::gentoo # required by dev-python/sphinxcontrib-applehelp-2.0.0-r1::gentoo >=dev-python/platformdirs-4.3.7 python_targets_python3_12 # required by dev-python/setuptools-80.1.0::gentoo # required by dev-python/imagesize-1.4.1::gentoo # required by dev-python/sphinx-8.2.3::gentoo # required by dev-python/sphinxcontrib-applehelp-2.0.0-r1::gentoo >=dev-python/wheel-0.45.1 python_targets_python3_12 # required by dev-python/hatch-vcs-0.4.0::gentoo # required by dev-python/urllib3-2.4.0::gentoo # required by dev-python/requests-2.32.3::gentoo # required by dev-python/chart-studio-1.1.0-r2::gentoo # required by @selected # required by @world (argument) >=dev-python/setuptools-scm-8.3.1 python_targets_python3_12 # required by dev-python/setuptools-80.1.0::gentoo # required by dev-python/imagesize-1.4.1::gentoo # required by dev-python/sphinx-8.2.3::gentoo # required by dev-python/sphinxcontrib-applehelp-2.0.0-r1::gentoo >=dev-python/trove-classifiers-2025.4.28.22 python_targets_python3_12 # required by dev-python/editables-0.5::gentoo # required by dev-python/hatchling-1.27.0::gentoo[-test] # required by dev-python/openai-1.76.2::Miezhiko # required by @selected # required by @world (argument) >=dev-python/gpep517-18 python_targets_python3_12 # required by dev-python/jaraco-text-4.0.0::gentoo # required by dev-python/jaraco-collections-5.1.0::gentoo # required by dev-python/setuptools-80.1.0::gentoo # required by dev-python/imagesize-1.4.1::gentoo # required by dev-python/sphinx-8.2.3::gentoo # required by dev-python/sphinxcontrib-applehelp-2.0.0-r1::gentoo >=dev-python/flit-core-3.12.0 python_targets_python3_12 # required by dev-python/jaraco-text-4.0.0::gentoo # required by dev-python/jaraco-collections-5.1.0::gentoo # required by dev-python/setuptools-80.1.0::gentoo # required by dev-python/imagesize-1.4.1::gentoo # required by dev-python/sphinx-8.2.3::gentoo # required by dev-python/sphinxcontrib-applehelp-2.0.0-r1::gentoo >=dev-python/jaraco-context-6.0.1 python_targets_python3_12 # required by dev-python/gpep517-18::gentoo # required by dev-python/alabaster-1.0.0::gentoo # required by dev-python/sphinx-8.2.3::gentoo # required by dev-python/sphinxcontrib-applehelp-2.0.0-r1::gentoo >=dev-python/installer-0.7.0 python_targets_python3_12 # required by dev-python/pytools-2025.1.2::gentoo # required by dev-python/pyopencl-2024.2.7::gentoo # required by @selected # required by @world (argument) >=dev-python/numpy-2.2.5 python_targets_python3_12 # required by dev-python/numpy-2.2.5::gentoo # required by dev-python/contourpy-1.3.2::gentoo # required by dev-python/matplotlib-3.10.1::gentoo[-test] # required by @selected # required by @world (argument) >=dev-python/cython-3.0.12-r1 python_targets_python3_12 # required by dev-python/siphash24-1.7::gentoo # required by dev-python/pytools-2025.1.2::gentoo # required by dev-python/pyopencl-2024.2.7::gentoo # required by @selected # required by @world (argument) >=dev-python/meson-python-0.17.1 python_targets_python3_12 # required by dev-python/meson-python-0.17.1::gentoo[-test] # required by dev-python/contourpy-1.3.2::gentoo # required by dev-python/matplotlib-3.10.1::gentoo[-test] # required by @selected # required by @world (argument) >=dev-python/pyproject-metadata-0.9.1 python_targets_python3_12 # required by dev-python/scikit-build-core-0.11.1::gentoo # required by dev-python/pyopencl-2024.2.7::gentoo # required by @selected # required by @world (argument) >=dev-python/pathspec-0.12.1 python_targets_python3_12 # required by dev-python/hatch-fancy-pypi-readme-24.1.0::gentoo[-test] # required by dev-python/attrs-25.3.0::gentoo # required by dev-python/aiohttp-3.11.18::gentoo # required by dev-python/openai-1.76.2::Miezhiko # required by @selected # required by @world (argument) >=dev-python/hatchling-1.27.0 python_targets_python3_12 # required by dev-python/hatchling-1.27.0::gentoo[-test] # required by dev-python/dnspython-2.7.0::gentoo # required by app-text/calibre-7.22.0::gentoo[python_single_target_python3_13] # required by @selected # required by @world (argument) >=dev-python/editables-0.5 python_targets_python3_12 # required by dev-python/hatchling-1.27.0::gentoo[-test] # required by dev-python/dnspython-2.7.0::gentoo # required by app-text/calibre-7.22.0::gentoo[python_single_target_python3_13] # required by @selected # required by @world (argument) >=dev-python/pluggy-1.5.0 python_targets_python3_12 # required by dev-python/mako-1.3.10::gentoo # required by dev-python/pyopencl-2024.2.7::gentoo # required by @selected # required by @world (argument) >=dev-python/markupsafe-3.0.2 python_targets_python3_12 # required by dev-python/pytools-2025.1.2::gentoo # required by dev-python/pyopencl-2024.2.7::gentoo # required by @selected # required by @world (argument) >=dev-python/typing-extensions-4.13.2 python_targets_python3_12 # required by dev-python/openai-1.76.2::Miezhiko # required by @selected # required by @world (argument) >=dev-python/requests-2.32.3 python_targets_python3_12
after adding PYTHON_TARGETS="python3_12" PYTHON_SINGLE_TARGET="python3_12" to make.conf emerge went on; I have 3 gentoo systems. All had the same issue. All are now building between 300 and 500 packages
There's some package in your world file that still requires python 3.12, but unless you share the full command you ran and it's output like Sam requested, we cannot help you.
The very first entry tells you all you need to know: (In reply to Harris Landgarten from comment #12) > the only output for emerge @world was a request to add lines to > /etc/portage/package.use/user > > This was added before I gave up: > # required by dev-python/pycares-4.6.1::gentoo > # required by dev-python/aiodns-3.2.0::gentoo[-test] > # required by dev-python/aiohttp-3.11.18::gentoo > # required by dev-python/openai-1.76.2::Miezhiko ^^^^^^^^^^ You're using packages from Miezhiko overlay. Take it to them.