Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 712502 - dev-python/wheel-0.34.2: Download error on https://pypi.org/simple/setuptools/
Summary: dev-python/wheel-0.34.2: Download error on https://pypi.org/simple/setuptools/
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-14 14:58 UTC by Rolf Eike Beer
Modified: 2020-03-16 07:36 UTC (History)
1 user (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 Rolf Eike Beer archtester 2020-03-14 14:58:46 UTC
* Package:    dev-python/wheel-0.34.2
 * Repository: gentoo
 * Maintainer: python@gentoo.org
 * USE:        elibc_glibc kernel_linux python_targets_python2_7 python_targets_python3_6 sparc userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking wheel-0.34.2.gh.tar.gz to /var/tmp/portage/dev-python/wheel-0.34.2/work
>>> Source unpacked in /var/tmp/portage/dev-python/wheel-0.34.2/work
>>> Preparing source in /var/tmp/portage/dev-python/wheel-0.34.2/work/wheel-0.34.2 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-python/wheel-0.34.2/work/wheel-0.34.2 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-python/wheel-0.34.2/work/wheel-0.34.2 ...
 * python2_7: running distutils-r1_run_phase distutils-r1_python_compile
python2.7 setup.py build
Download error on https://pypi.org/simple/setuptools/: [Errno -3] Temporary failure in name resolution -- Some packages may not be found!
Download error on https://pypi.org/simple/: [Errno -3] Temporary failure in name resolution -- Some packages may not be found!
No local packages or working download links found for setuptools>=40.9.0
Traceback (most recent call last):
  File "setup.py", line 4, in <module>
    setup(maintainer=u'Alex Grönholm')
  File "/usr/lib/python2.7/site-packages/setuptools/__init__.py", line 144, in setup
    _install_setup_requires(attrs)
  File "/usr/lib/python2.7/site-packages/setuptools/__init__.py", line 139, in _install_setup_requires
    dist.fetch_build_eggs(dist.setup_requires)
  File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 724, in fetch_build_eggs
    replace_conflicting=True,
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 782, in resolve
    replace_conflicting=replace_conflicting
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1065, in best_match
    return self.obtain(req, installer)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1077, in obtain
    return installer(requirement)
  File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 791, in fetch_build_egg
    return cmd.easy_install(req)
  File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 673, in easy_install
    raise DistutilsError(msg)
distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('setuptools>=40.9.0')


Portage 2.3.84 (python 3.6.9-final-0, default/linux/sparc/17.0, gcc-9.2.0, glibc-2.30-r2, 5.5.7-sparc64 sparc64)
=================================================================
System uname: Linux-5.5.7-sparc64-sparc64-sun4v-with-gentoo-2.6
KiB Mem:    33079832 total,  11558456 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sat, 14 Mar 2020 01:15:01 +0000
Head commit of repository gentoo: 093d5cf9d38a16832f6ac6f8303e4f64710357c7
sh bash 5.0_p11
ld GNU ld (Gentoo 2.33.1 p2) 2.33.1
app-shells/bash:          5.0_p11::gentoo
dev-lang/perl:            5.30.1::gentoo
dev-lang/python:          2.7.16::gentoo, 3.5.7::gentoo, 3.6.9::gentoo
dev-util/cmake:           3.16.0::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/sandbox:         2.17::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.15.1-r2::gentoo
sys-devel/binutils:       2.33.1-r1::gentoo
sys-devel/gcc:            9.2.0-r3::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.30-r2::gentoo
Repositories:

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

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

ACCEPT_KEYWORDS="sparc ~sparc"
ACCEPT_LICENSE="@FREE"
CBUILD="sparc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=niagara2 -pipe -Wcast-align"
CHOST="sparc-unknown-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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -mcpu=niagara2 -pipe -Wcast-align"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN 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=""
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS=""
GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j20 -l40"
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="acl berkdb big-endian bzip2 cli crypt cxx dri fortran gdbm iconv ipv6 libtirpc ncurses nls nptl openmp pam pcre readline sparc split-usr ssl tcpd unicode xattr zlib" ADA_TARGET="gnat_2018" 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" 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 keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="fbdev glint mga r128 radeon dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 inactive 2020-03-14 15:09:25 UTC
I don't know if this matters or not, but I'm unable to dns resolve ftp.join.uni-muenster.de  The other hostnames are ok tho.

Can OP DNS-resolve pypi.org ? seems like not, for whatever reason.

I'm able to install dev-python/wheel-0.34.2 without issues. Here are my FEATURES:



FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg buildsyspkg ccache cgroup collision-protect config-protect-if-modified distlocks downgrade-backup ebuild-locks fakeroot fixlafiles force-mirror ipc-sandbox merge-sync multilib-strict network-sandbox news nostrip parallel-fetch pid-sandbox prelink-checksums preserve-libs qa-unresolved-soname-deps sandbox sfperms skiprocheck split-elog split-log strict suidctl unknown-features-warn unmerge-logs userpriv usersandbox"
Comment 2 Rolf Eike Beer archtester 2020-03-14 15:19:44 UTC
I found out I only had setuptools 40.8.0 installed, so there is probably just a version constraint missing for the ebuild so it would have done the update automatically.
Comment 3 inactive 2020-03-14 15:35:45 UTC
with that 40.8.0 version of setuptools, I can confirm the bug.
Workaround(tested) is emerging with FEATURES=-network-sandbox
otherwise (since it's in the compile phase, with network-sandbox)  pypi.org cannot be DNS-resolved! apparently:


>>> Compiling source in /var/tmp/portage/dev-python/wheel-0.34.2/work/wheel-0.34.2 ...
 * python3_6: running distutils-r1_run_phase distutils-r1_python_compile
python3.6 setup.py build -j 18
glibc64:../sysdeps/posix/getaddrinfo.c:2197/getaddrinfo: python3.6[106](full:'python3.6') for user portage(250(eff:portage(250))) 1of2 attempting to resolve (requested)hostname:
pypi.org
glibc64:../sysdeps/posix/getaddrinfo.c:2197/getaddrinfo: python3.6[106](full:'python3.6') for user portage(250(eff:portage(250))) 2of2 FAILed to resolve requested hostname 'pypi.org'(raw), which was not transformed(eg. 𝙵𝟢𝟢->f00) into:
pypi.org
Download error on https://pypi.org/simple/setuptools/: [Errno -3] Temporary failure in name resolution -- Some packages may not be found!
glibc64:../sysdeps/posix/getaddrinfo.c:2197/getaddrinfo: python3.6[106](full:'python3.6') for user portage(250(eff:portage(250))) 1of2 attempting to resolve (requested)hostname:
pypi.org
glibc64:../sysdeps/posix/getaddrinfo.c:2197/getaddrinfo: python3.6[106](full:'python3.6') for user portage(250(eff:portage(250))) 2of2 FAILed to resolve requested hostname 'pypi.org'(raw), which was not transformed(eg. 𝙵𝟢𝟢->f00) into:
pypi.org
Download error on https://pypi.org/simple/: [Errno -3] Temporary failure in name resolution -- Some packages may not be found!
No local packages or working download links found for setuptools>=40.9.0
Traceback (most recent call last):
  File "setup.py", line 4, in <module>
    setup(maintainer=u'Alex Grönholm')
  File "/usr/lib64/python3.6/site-packages/setuptools/__init__.py", line 144, in setup
    _install_setup_requires(attrs)
  File "/usr/lib64/python3.6/site-packages/setuptools/__init__.py", line 139, in _install_setup_requires
    dist.fetch_build_eggs(dist.setup_requires)
  File "/usr/lib64/python3.6/site-packages/setuptools/dist.py", line 724, in fetch_build_eggs
    replace_conflicting=True,
  File "/usr/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 782, in resolve
    replace_conflicting=replace_conflicting
  File "/usr/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 1065, in best_match
    return self.obtain(req, installer)
  File "/usr/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 1077, in obtain
    return installer(requirement)
  File "/usr/lib64/python3.6/site-packages/setuptools/dist.py", line 791, in fetch_build_egg
    return cmd.easy_install(req)
  File "/usr/lib64/python3.6/site-packages/setuptools/command/easy_install.py", line 673, in easy_install
    raise DistutilsError(msg)
distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('setuptools>=40.9.0')
 * ERROR: dev-python/wheel-0.34.2::gentoo failed (compile phase):
 *   (no error message)


^ based on some info from irc:

<Soap__> Dakon: network-sandbox?
...
<Dakon> portage fetches stuff all the time, but that above happend during the compile phase
Comment 4 Larry the Git Cow gentoo-dev 2020-03-16 07:36:01 UTC
The bug has been closed via the following commit(s):

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

commit 346c4e61fafcca09861df65bdcafd8a087695540
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2020-03-14 16:21:08 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2020-03-16 07:35:48 +0000

    distutils-r1.eclass: Align min. setuptools version to current stable
    
    Closes: https://bugs.gentoo.org/712502
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 eclass/distutils-r1.eclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)