Having dev-python/charset_normalizer-2.1.0 causes runtime failures in downstream packages (downgrading to 2.0.12 fixes it); here's an error from net-misc/streamlink: Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 581, in _build_master ws.require(__requires__) File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 909, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 800, in resolve raise VersionConflict(dist, req).with_context(dependent_req) pkg_resources.ContextualVersionConflict: (charset-normalizer 2.1.0 (/usr/lib/python3.10/site-packages), Requirement.parse('charset-normalizer~=2.0.0'), {'requests'}) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/bin/streamlink", line 33, in <module> sys.exit(load_entry_point('streamlink==4.1.0', 'console_scripts', 'streamlink')()) File "/usr/bin/streamlink", line 25, in importlib_load_entry_point return next(matches).load() File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 171, in load module = import_module(match.group('module')) File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1050, in _gcd_import File "<frozen importlib._bootstrap>", line 1027, in _find_and_load File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 688, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 883, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/usr/lib/python3.10/site-packages/streamlink_cli/main.py", line 17, in <module> import requests File "/usr/lib/python3.10/site-packages/requests/__init__.py", line 147, in <module> from . import packages, utils File "/usr/lib/python3.10/site-packages/requests/utils.py", line 24, in <module> from . import certs File "/usr/lib/python3.10/site-packages/requests/certs.py", line 14, in <module> from certifi import where File "/usr/lib/python3.10/site-packages/certifi/__init__.py", line 1, in <module> from .core import contents, where File "/usr/lib/python3.10/site-packages/certifi/core.py", line 3, in <module> from certifi._patch import _verify_dist_info File "/usr/lib/python3.10/site-packages/certifi/_patch.py", line 4, in <module> import pkg_resources File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3260, in <module> def _initialize_master_working_set(): File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3234, in _call_aside f(*args, **kwargs) File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3272, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 583, in _build_master return cls._build_from_requirements(__requires__) File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 596, in _build_from_requirements dists = ws.resolve(reqs, Environment()) File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 795, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'charset-normalizer~=2.0.0' distribution was not found and is required by requests
Please share emerge --info dev-python/requests.
(In reply to Sam James from comment #1) > Please share emerge --info dev-python/requests. Oh, sorry, here it is: Portage 3.0.30 (python 3.10.5-final-0, default/linux/amd64/17.1, gcc-11.3.0, glibc-2.35-r7, 5.18.3-zen-174395-g2db966e1e09c x86_64) ================================================================= System Settings ================================================================= System uname: Linux-5.18.3-zen-174395-g2db966e1e09c-x86_64-AMD_Ryzen_9_3900X_12-Core_Processor-with-glibc2.35 KiB Mem: 65772492 total, 47066312 free KiB Swap: 32886244 total, 32886244 free Timestamp of repository gentoo: Mon, 20 Jun 2022 22:30:01 +0000 Head commit of repository gentoo: b4091612bc10dbd7ded395560b6c50f5a2ac91a4 sh dash 0.5.11.5 ld GNU ld (Gentoo 2.38 p4) 2.38 ccache version 4.6.1 [disabled] app-misc/pax-utils: 1.3.4::gentoo app-shells/bash: 5.1_p16::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.36.0::gentoo dev-lang/python: 3.10.5::gentoo, 3.11.0_beta3::gentoo dev-lang/rust-bin: 1.61.0::gentoo dev-util/ccache: 4.6.1::gentoo dev-util/cmake: 3.23.2::gentoo dev-util/meson: 0.62.2::gentoo sys-apps/baselayout: 2.8::gentoo sys-apps/openrc: 0.45.1::gentoo sys-apps/sandbox: 2.29::gentoo sys-devel/autoconf: 2.13-r2::gentoo, 2.71-r1::gentoo sys-devel/automake: 1.16.5::gentoo sys-devel/binutils: 2.38-r2::gentoo sys-devel/binutils-config: 5.4.1::gentoo sys-devel/clang: 14.0.5::gentoo sys-devel/gcc: 11.3.0::gentoo sys-devel/gcc-config: 2.5-r1::gentoo sys-devel/libtool: 2.4.7::gentoo sys-devel/lld: 14.0.5::gentoo sys-devel/llvm: 14.0.5::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.18-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.35-r7::gentoo Repositories: gentoo location: /mnt/nfs/portage/repositories/gentoo sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-extra-opts: sync-rsync-verify-max-age: 24 sync-rsync-verify-jobs: 1 sync-rsync-verify-metamanifest: no crossdev location: /mnt/nfs/portage/repositories/crossdev masters: gentoo flussence flussence location: /mnt/nfs/portage/repositories/flussence masters: gentoo steam-overlay location: /mnt/nfs/portage/repositories/steam-overlay masters: gentoo Installed sets: @mine-desktop ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=znver2 -mtune=znver2 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtls-dialect=gnu2 -floop-interchange -floop-nest-optimize -ftree-vectorize" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt" 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 /etc/terminfo" CXXFLAGS="-O2 -pipe -march=znver2 -mtune=znver2 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtls-dialect=gnu2 -floop-interchange -floop-nest-optimize -ftree-vectorize" DISTDIR="/mnt/nfs/portage/cache/distfiles" EMERGE_DEFAULT_OPTS="--unordered-display --alert --jobs=8 --load=22 --jobs=24 --load=12" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live cgroup compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" INSTALL_MASK=" /usr/share/locale -/usr/share/locale/en_GB /usr/share/man/* -/usr/share/man/man* /usr/share/wine-*/man -/usr/share/wine-*/man/man* /usr/share/gcc-data/*/*/locale /usr/share/binutils-data/*/*/locale /var/db/repos/ /usr/share/git-core/templates/*" LANG="en_GB.utf8" LDFLAGS="-Wl,-O1,--sort-common,--hash-style=gnu,--as-needed,-z,combreloc,-z,relro,-z,now" MAKEOPTS="-j24 -l24" PKGDIR="/mnt/nfs/portage/pkgdir/x86_64-pc-linux-gnu" PORTAGE_COMPRESS="" PORTAGE_COMPRESS_FLAGS="" 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" RUSTFLAGS="-C target-cpu=znver2" SHELL="/bin/bash" USE="amd64 bzip2 caps cli crypt dri egl fortran iconv ipv6 libglvnd libtirpc linguas_en_GB multilib ncurses nls nptl opencl openmp pcre readline seccomp split-usr ssl unicode verify-sig vulkan wayland xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2020" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache 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 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-GB" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" RUBY_TARGETS="ruby27" USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS ================================================================= Package Settings ================================================================= dev-python/requests-2.28.0::gentoo was built with the following: USE="-socks5 -test" ABI_X86="(64)" PYTHON_TARGETS="python3_10 -pypy3 -python3_11 -python3_8 -python3_9" FEATURES="fixlafiles userfetch unmerge-orphans unknown-features-warn usersync news compressdebug binpkg-docompress qa-unresolved-soname-deps distlocks binpkg-logs splitdebug merge-sync buildpkg-live network-sandbox protect-owned strict preserve-libs userpriv multilib-strict usersandbox ipc-sandbox cgroup sfperms config-protect-if-modified ebuild-locks xattr binpkg-dostrip unmerge-logs pid-sandbox assume-digests sandbox parallel-fetch binpkg-multi-instance"
Please emerge --sync and do an upgrade: >dev-python/requests-2.28.0::gentoo Newer requests should sort this out. Thanks! *** This bug has been marked as a duplicate of bug 853247 ***
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e1e27390394fa64b6c44e87a8c3e737ce9ef2e4 commit 7e1e27390394fa64b6c44e87a8c3e737ce9ef2e4 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-11-25 07:10:42 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-11-25 07:10:42 +0000 dev-python/certifi: use importlib This avoids breaking arbitrary packages on the system because they happen to use certifi, as certifi will pick up if any other packages on the system have an unsatisfied requirement - which is often bogus. Bug: https://bugs.gentoo.org/826874 Bug: https://bugs.gentoo.org/854294 Bug: https://bugs.gentoo.org/878035 Closes: https://bugs.gentoo.org/878045 Signed-off-by: Sam James <sam@gentoo.org> dev-python/certifi/certifi-3021.3.16-r3.ebuild | 55 +++++++ .../files/certifi-3021.3.16-use-importlib.patch | 164 +++++++++++++++++++++ 2 files changed, 219 insertions(+)