Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 826874 - dev-python/more-itertools-8.11.0: pkg_resources.DistributionNotFound: The 'idna<3,>=2.5' distribution was not found and is required by requests
Summary: dev-python/more-itertools-8.11.0: pkg_resources.DistributionNotFound: The 'id...
Status: RESOLVED DUPLICATE of bug 787584
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-23 14:41 UTC by Yarda
Modified: 2022-11-25 07:14 UTC (History)
2 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 Yarda 2021-11-23 14:41:24 UTC
There is currently only the dev-python/idna-3.3, so the request is not fullfilled and the package cannot be merged.

>>> Emerging (1 of 9) dev-python/more-itertools-8.11.0::gentoo
 * Fetching files in the background.
 * To view fetch progress, run in another terminal:
 * tail -f /var/log/emerge-fetch.log
 * more-itertools-8.11.0.tar.gz BLAKE2B SHA512 size ;-) ...                                                                     [ ok ]
>>> Unpacking source...
>>> Unpacking more-itertools-8.11.0.tar.gz to /var/tmp/portage/dev-python/more-itertools-8.11.0/work
>>> Source unpacked in /var/tmp/portage/dev-python/more-itertools-8.11.0/work
>>> Preparing source in /var/tmp/portage/dev-python/more-itertools-8.11.0/work/more-itertools-8.11.0 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-python/more-itertools-8.11.0/work/more-itertools-8.11.0 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-python/more-itertools-8.11.0/work/more-itertools-8.11.0 ...
 * python3_9: running distutils-r1_run_phase distutils-r1_python_compile
python3.9 setup.py build -j 4
running build
running build_py
creating /var/tmp/portage/dev-python/more-itertools-8.11.0/work/more-itertools-8.11.0-python3_9/lib/more_itertools
copying more_itertools/recipes.py -> /var/tmp/portage/dev-python/more-itertools-8.11.0/work/more-itertools-8.11.0-python3_9/lib/more_itertools
copying more_itertools/__init__.py -> /var/tmp/portage/dev-python/more-itertools-8.11.0/work/more-itertools-8.11.0-python3_9/lib/more_itertools
copying more_itertools/more.py -> /var/tmp/portage/dev-python/more-itertools-8.11.0/work/more-itertools-8.11.0-python3_9/lib/more_itertools
copying more_itertools/py.typed -> /var/tmp/portage/dev-python/more-itertools-8.11.0/work/more-itertools-8.11.0-python3_9/lib/more_itertools
copying more_itertools/more.pyi -> /var/tmp/portage/dev-python/more-itertools-8.11.0/work/more-itertools-8.11.0-python3_9/lib/more_itertools
copying more_itertools/__init__.pyi -> /var/tmp/portage/dev-python/more-itertools-8.11.0/work/more-itertools-8.11.0-python3_9/lib/more_itertools
copying more_itertools/recipes.pyi -> /var/tmp/portage/dev-python/more-itertools-8.11.0/work/more-itertools-8.11.0-python3_9/lib/more_itertools
warning: build_py: byte-compiling is disabled, skipping.

 * Using python3.9 in global scope
 * python3_9: running distutils-r1_run_phase python_compile_all
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 568, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 886, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 777, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (idna 3.3 (/usr/lib/python3.9/site-packages), Requirement.parse('idna<3,>=2.5'), {'requests'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.9/sphinx-build", line 33, in <module>
    sys.exit(load_entry_point('Sphinx==3.5.2', 'console_scripts', 'sphinx-build')())
  File "/usr/lib/python-exec/python3.9/sphinx-build", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.9/importlib/metadata.py", line 77, 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/sphinx/cmd/build.py", line 25, in <module>
    from sphinx.application import Sphinx
  File "/usr/lib/python3.9/site-packages/sphinx/application.py", line 26, in <module>
    from docutils.parsers.rst import Directive, roles
  File "/usr/lib/python3.9/site-packages/docutils/parsers/rst/__init__.py", line 75, in <module>
    from docutils.parsers.rst import roles, states
  File "/usr/lib/python3.9/site-packages/docutils/parsers/rst/roles.py", line 78, in <module>
    from docutils.utils.code_analyzer import Lexer, LexerError
  File "/usr/lib/python3.9/site-packages/docutils/utils/code_analyzer.py", line 12, in <module>
    from pkg_resources import DistributionNotFound as ResourceError
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3243, in <module>
    def _initialize_master_working_set():
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3226, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3255, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 570, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 583, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 772, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'idna<3,>=2.5' distribution was not found and is required by requests
 * ERROR: dev-python/more-itertools-8.11.0::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  127:  Called src_compile
 *   environment, line 2863:  Called distutils-r1_src_compile
 *   environment, line 1175:  Called _distutils-r1_run_common_phase 'python_compile_all'
 *   environment, line  486:  Called multibuild_foreach_variant 'distutils-r1_run_phase' 'python_compile_all'
 *   environment, line 2041:  Called _multibuild_run 'distutils-r1_run_phase' 'python_compile_all'
 *   environment, line 2039:  Called distutils-r1_run_phase 'python_compile_all'
 *   environment, line 1163:  Called python_compile_all
 *   environment, line 2298:  Called sphinx_compile_all
 *   environment, line 2859:  Called build_sphinx 'docs'
 *   environment, line  989:  Called die
 * The specific snippet of code:
 *       sphinx-build -b html -d "${dir}"/_build/doctrees "${dir}" "${dir}"/_build/html || die;
 * 
 * If you need support, post the output of `emerge --info '=dev-python/more-itertools-8.11.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/more-itertools-8.11.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-python/more-itertools-8.11.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/more-itertools-8.11.0/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-python/more-itertools-8.11.0/work/more-itertools-8.11.0'
 * S: '/var/tmp/portage/dev-python/more-itertools-8.11.0/work/more-itertools-8.11.0'

>>> Failed to emerge dev-python/more-itertools-8.11.0, Log file:

>>>  '/var/tmp/portage/dev-python/more-itertools-8.11.0/temp/build.log'


# emerge --info
Portage 3.0.20 (python 3.9.7-final-0, default/linux/amd64/17.1/desktop, gcc-9.3.0, glibc-2.33-r7, 5.4.80-gentoo-r1 x86_64)
=================================================================
System uname: Linux-5.4.80-gentoo-r1-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_6400+-with-glibc2.33
KiB Mem:     8160220 total,   2949092 free
KiB Swap:   17407996 total,  17407996 free
Timestamp of repository gentoo: Tue, 23 Nov 2021 09:45:01 +0000
Head commit of repository gentoo: a9c787d623526c3dbeb6aaefe3f83f86b1839578
sh bash 5.0_p18
ld GNU gold (Gentoo 2.37_p1 p0 2.37) 1.16
distcc 3.3.3 x86_64-pc-linux-gnu [disabled]
ccache version 4.2 [enabled]
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          3.7.12_p1::gentoo, 3.8.12_p1::gentoo, 3.9.7_p1::gentoo
dev-lang/rust:            1.47.0-r2::gentoo
dev-util/ccache:          4.2::gentoo
dev-util/cmake:           3.20.5::gentoo
sys-apps/baselayout:      2.7-r3::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.25::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.4::gentoo
sys-devel/binutils:       2.37_p1::gentoo
sys-devel/gcc:            9.3.0-r2::gentoo, 10.2.0-r5::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r7::gentoo
Repositories:

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

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

fedora
    location: /var/lib/layman/fedora
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    masters: gentoo
    priority: 50

Installed sets: @system
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CC="gcc"
CFLAGS="-O2 -march=athlon64 -mtune=athlon64 -pipe -fstack-protector"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXX="g++"
CXXFLAGS="-O2 -march=athlon64 -mtune=athlon64 -pipe -fstack-protector"
DISTDIR="/usr/portage/distfiles"
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 ccache config-protect-if-modified distlocks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install 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 ftp://ftp.sh.cvut.cz/MIRRORS/gentoo/gentoo"
LANG="cs_CZ.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="cs en"
MAKEOPTS="-j4 -l2.0"
PKGDIR="/usr/portage/packages"
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"
USE="3dnow 3dnowext 7zip X X509 a52 aac aalib acl acpi additions afterimage aio alsa amd64 amr amrnb amrwb apache2 apng artswrappersuid authfile auto-hinter bash-completion blender-game bluetooth branding bzip2 cairo ccache cdda cddb cdio cdr cdrom cdsound cgi chroot clamav clamd clamdtop clang cli cmdsubmenu crypt cscope cuda cups custom-cflags custom-optimization dbus declarative dedicated device-mapper dia directfb doc down-root dri dts dv dvb dvd dvdnav dvdr dynload elogind emboss emerald enca encode exif extensions extra fat fbcon ffmpeg fftw flac flash fontconfig fortran freetts ftp fts3 fuse g3dvl gallium games gbm gd gdbm gdu geoip gif glitz glut gmp gold gpm graphics gstreamer gtk gudev gui harfbuzz hddtemp hpn humanities iconv icq icu ident iptv ipv6 irc jabber jadetex jamu java javafx javascript jit joystick jpeg kdrive kerberos kpathsea laptop lcms libglvnd libnotify libsamplerate libtirpc lirc lm_sensors logrotate logwatch lzma lzo mad mainmenuhooks math mbrola md5sum mikmod minizip mmxext mng mod mouse mozdevelop mp2 mp3 mp4 mpeg mpeg2 mpeg3 mplayer msn multilib multislot multiuser music mysql mysqli nas ncurses nls nptl nsplugin ntfs ntfsprogs nvidia nvram ogg opencl opengl openmp pam pango pcre pda pdf php pixbuf png policykit ppds pstricks publishers python qt5 rar rdesktop readline rss rtc rtsp samba sasl savedconfig science screen sdl seamonkey seccomp sensord setup setup-plugin sip sipim slang smime sound sounds sox spell split-usr srt sse3 ssl startup-notification stream submenu subtitles subversion suid svg sysfs syslog system-cairo system-icu system-jpeg system-sqlite tex4ht theora threads threadsafe tiff timercmd timerinfo tk truetype ttxtsubs udev udisks unicode unsupported upnp upower usb uvm v4l2 vcd vdpau vdr vim-syntax vim-with-x vlc vnc volctrl vorbis wav wifi wmf wxwidgets wxwindows x264 x265 xattr xcb xcomposite xetex xft xine xinerama xml xosd xplanet xpm xscreensaver xv xvid xvmc zip zlib" ABI_X86="64" ADA_TARGET="gnat_2019" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_core authn_dbd authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info lbmethod_byrequests lbmethod_bytraffic lbmethod_bybusyness lbmethod_heartbeat log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif slotmem_shm so socache_shmcb 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="3dnow 3dnowext mmx mmxext sse sse2 sse3" 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="evdev libinput" KERNEL="linux" L10N="cs en" 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-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27" SANE_BACKENDS="epson2 epson2" USERLAND="GNU" VIDEO_CARDS="nvidia" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS


Reproducible: Always

Steps to Reproduce:
1. emerge -1 =dev-python/more-itertools-8.11.0
2.
3.
Actual Results:  
Build failure

Expected Results:  
It builds

The same for the currently stable dev-python/more-itertools-8.10.0.
Comment 1 Jonas Stein gentoo-dev 2021-11-23 14:59:20 UTC
Thank you. 
please *attach* the log next time.
Comment 2 Yarda 2021-11-23 15:03:57 UTC
After adding =dev-python/idna-2.10 into the local portage overlay it merged OK.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-11-23 15:16:38 UTC
What version of requests do you have installed and how?  requests-2.26.0 (the only version remaining in ::gentoo) declare the dependecy on idna<4 while your version has <3.
Comment 4 Yarda 2021-11-23 15:23:34 UTC
I am upgrading the system, it's still compiling, currently there is:

[U] dev-python/requests
     Available versions:  2.26.0^t {socks5 test PYTHON_TARGETS="pypy3 python3_10 python3_8 python3_9"}
     Installed versions:  2.25.1-r1^t(10:18:50 15.4.2021)(-socks5 -test PYTHON_TARGETS="python3_7 python3_8 python3_9 -pypy3")
     Homepage:            https://requests.readthedocs.io/
     Description:         HTTP library for human beings

Unfortunately, portage didn't pick the requests update first.
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-11-23 15:28:08 UTC
Unfortunately, you hit a buggy version -- the idna dependency was fixed in -r2.  I'm afraid there's nothing we can really do at this point -- the best way forward is to update dev-python/requests.

*** This bug has been marked as a duplicate of bug 787584 ***
Comment 6 Larry the Git Cow gentoo-dev 2022-11-25 07:14:28 UTC
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(+)