Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 853247 - app-crypt/certbot-1.28.0 renew certs dies with dev-python/charset_normalizer-2.1.0
Summary: app-crypt/certbot-1.28.0 renew certs dies with dev-python/charset_normalizer-...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Matthew Thode ( prometheanfire )
URL:
Whiteboard:
Keywords:
: 854294 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-06-21 02:17 UTC by Aidan Marks
Modified: 2022-07-14 06:02 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aidan Marks 2022-06-21 02:17:02 UTC
app-crypt/certbot-1.28.0 is unhappy with dev-python/charset_normalizer-2.1.0.

Downgrade to charset_normalizer-2.0.12 fixes this (and even in the error output suggests that 2.0.x is required).

wumpyr ~ # equery l certbot*
 * Searching for certbot* ...
[IP-] [  ] app-crypt/certbot-1.28.0:0
[IP-] [  ] app-crypt/certbot-nginx-1.28.0:0
wumpyr ~ # equery l charset_normalizer
 * Searching for charset_normalizer ...
[IP-] [  ] dev-python/charset_normalizer-2.1.0:0
wumpyr ~ # /usr/bin/certbot renew --quiet --max-log-backups 100 --nginx-ctl /usr/sbin/nginx --deploy-hook '/etc/init.d/postfix restart'
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 581, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 909, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.9/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.9/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/lib/python-exec/python3.9/certbot", line 33, in <module>
    sys.exit(load_entry_point('certbot==1.28.0', 'console_scripts', 'certbot')())
  File "/usr/lib/python-exec/python3.9/certbot", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.9/importlib/metadata.py", line 86, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/usr/lib/python3.9/site-packages/certbot/main.py", line 6, in <module>
    from certbot._internal import main as internal_main
  File "/usr/lib/python3.9/site-packages/certbot/_internal/main.py", line 23, in <module>
    from acme import client as acme_client
  File "/usr/lib/python3.9/site-packages/acme/client.py", line 32, in <module>
    import requests
  File "/usr/lib/python3.9/site-packages/requests/__init__.py", line 147, in <module>
    from . import packages, utils
  File "/usr/lib/python3.9/site-packages/requests/utils.py", line 24, in <module>
    from . import certs
  File "/usr/lib/python3.9/site-packages/requests/certs.py", line 14, in <module>
    from certifi import where
  File "/usr/lib/python3.9/site-packages/certifi/__init__.py", line 1, in <module>
    from .core import contents, where
  File "/usr/lib/python3.9/site-packages/certifi/core.py", line 3, in <module>
    from certifi._patch import _verify_dist_info
  File "/usr/lib/python3.9/site-packages/certifi/_patch.py", line 4, in <module>
    import pkg_resources
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3260, in <module>
    def _initialize_master_working_set():
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3234, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3272, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 583, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 596, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib/python3.9/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
wumpyr ~ # 

Reproducible: Always
Comment 1 Aidan Marks 2022-06-21 02:20:17 UTC
# emerge --info
Portage 3.0.30 (python 3.9.13-final-0, default/linux/amd64/17.1, gcc-11.3.0, glibc-2.35-r7, 5.15.41-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-5.15.41-gentoo-x86_64-x86_64-Intel-R-_Xeon-R-_CPU_E31220L_@_2.20GHz-with-glibc2.35
KiB Mem:    16239840 total,   5471464 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of repository gentoo: Mon, 20 Jun 2022 13:45:01 +0000
Head commit of repository gentoo: b0c14cb78ec721354a0c848a9f5075e7472bf2bc
sh bash 5.1_p16
ld GNU ld (Gentoo 2.38 p4) 2.38
distcc 3.4 x86_64-pc-linux-gnu [disabled]
app-misc/pax-utils:        1.3.4::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-lang/perl:             5.36.0::gentoo
dev-lang/python:           2.7.18_p15::gentoo, 3.9.13::gentoo, 3.10.5::gentoo, 3.11.0_beta3::gentoo
dev-lang/rust:             1.61.0-r1::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-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.37_p1-r2::gentoo, 2.38-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           14.0.1-r1::gentoo
sys-devel/gcc:             10.3.1_p20211126::gentoo, 11.3.0::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/llvm:            13.0.1::gentoo, 14.0.5::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.35-r7::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.au.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 

local_overlay
    location: /usr/local/portage
    masters: gentoo
    priority: 0

qemu-init
    location: /var/lib/layman/qemu-init
    sync-type: laymansync
    sync-uri: git+ssh://git@git.gentoo.org/proj/kvm-tools.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n --quiet-build=n --backtrack=30"
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 buildpkg-live 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 strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_AU.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_GB it"
MAKEOPTS="-j5"
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="/nas/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi amd64 asf bash-completion bzip2 cli crypt cups dbus dri dts dvb dvd ffmpeg flac fortran gdbm iconv ipv6 jpeg libglvnd libtirpc live logrotate matroska mmx mmxext multilib ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf png readline real seccomp split-usr sse sse2 ssl svg theora tiff truetype type1-fonts unicode win32codecs wmf x264 xattr xinetd xulrunner xvid 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="avx mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 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" GRUB_PLATFORMS="pc efi-64" INPUT_DEVICES="evdev" KERNEL="linux" L10N="en-AU" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" QEMU_SOFTMMU_TARGETS="x86_64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="mga vesa" 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, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 2 Larry the Git Cow gentoo-dev 2022-06-21 22:58:05 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a75273025f7eb6434e1c847471f4a13a9f8345b

commit 2a75273025f7eb6434e1c847471f4a13a9f8345b
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-21 22:57:52 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-21 22:57:52 +0000

    dev-python/requests: fix pinned charset_normalize dep
    
    Bug: https://bugs.gentoo.org/853247
    Signed-off-by: Sam James <sam@gentoo.org>

 .../requests-2.28.0-unpin-charset-normalizer.patch | 33 ++++++++++++++++++++++
 ...sts-2.28.0.ebuild => requests-2.28.0-r1.ebuild} |  4 +++
 2 files changed, 37 insertions(+)
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-21 23:02:55 UTC
Let's call this fixed but we need to think about what to do with certifi's check here.
Comment 4 Larry the Git Cow gentoo-dev 2022-06-24 06:01:56 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eba4b4d9c051e426e2e61a5d6b44f6382a8ce98c

commit eba4b4d9c051e426e2e61a5d6b44f6382a8ce98c
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-24 06:01:47 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-24 06:01:47 +0000

    dev-python/requests: backport charset-normalizer dep fix to stable
    
    Closes: https://bugs.gentoo.org/853247
    Signed-off-by: Sam James <sam@gentoo.org>

 .../requests-2.27.1-unpin-charset-normalizer.patch | 25 ++++++++++++++++++++++
 .../requests-2.28.0-unpin-charset-normalizer.patch |  2 --
 ...-2.27.1-r1.ebuild => requests-2.27.1-r2.ebuild} |  4 ++++
 3 files changed, 29 insertions(+), 2 deletions(-)
Comment 5 Larry the Git Cow gentoo-dev 2022-06-25 02:24:09 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9accb2f9e19deab7e6d74d60e13a708bb33be6aa

commit 9accb2f9e19deab7e6d74d60e13a708bb33be6aa
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-25 02:23:46 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-25 02:23:46 +0000

    dev-embedded/platformio: unpin semantic_version
    
    Bug: https://bugs.gentoo.org/853247
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/platformio-5.2.5-fix-semantic-version-dep.patch    | 12 ++++++++++++
 ...platformio-5.2.5-r1.ebuild => platformio-5.2.5-r2.ebuild} |  4 ++++
 2 files changed, 16 insertions(+)
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-25 17:38:42 UTC
*** Bug 854294 has been marked as a duplicate of this bug. ***