Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 640372 - app-portage/gs-pypi - HTTP request sent, awaiting response... 403 SSL is required
Summary: app-portage/gs-pypi - HTTP request sent, awaiting response... 403 SSL is requ...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Brian Dolbec
URL:
Whiteboard: Pending removal: 2018-12-11
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2017-12-09 13:58 UTC by Didier Colle
Modified: 2018-12-11 13:35 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 Didier Colle 2017-12-09 13:58:30 UTC
Recently, I have some python packages that are scheduled to be updated (hyde and its dependencies such as commando, fswrap, etc). Not sure why portage wants to update them since then (recently, a couple of weeks ago???)

gs-pypi (running over g-sorcery) is responsible for handling these packages.
While connecting to pypi.python.org, a 403 error is raised (SSL required).
Should the gs-pypi package therefore not depend on the required package(s), such that it can use SSL?
I have on my system already following packages:
* dev-python/pyopenssl
* dev-libs/openssl (featuring the openssl command)

running layman -s pypi did not help either.

build.log for python package commando:
 * Package:    dev-python/commando-0.3.4
 * Repository: pypi
 * Maintainer: jauhien@gentoo.org
 * USE:        abi_x86_32 elibc_glibc kernel_linux python_targets_python2_7 userland_GNU x86
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
--2017-12-08 11:44:24--  http://pypi.python.org/packages/source/c/commando/commando-0.3.4.tar.gz
Resolving pypi.python.org... 151.101.36.223, 2a04:4e42:9::223
Connecting to pypi.python.org|151.101.36.223|:80... connected.
HTTP request sent, awaiting response... 403 SSL is required
2017-12-08 11:44:24 ERROR 403: SSL is required.

 * ERROR: dev-python/commando-0.3.4::pypi failed (unpack phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  124:  Called src_unpack
 *   environment, line 3651:  Called g-sorcery_src_unpack
 *   environment, line 1519:  Called g-sorcery_fetch
 *   environment, line 1512:  Called die
 * The specific snippet of code:
 *           $GSORCERY_FETCH_CMD ${REPO_URI}${SOURCEFILE} || die;
 * 
 * If you need support, post the output of `emerge --info '=dev-python/commando-0.3.4::pypi'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/commando-0.3.4::pypi'`.
 * The complete build log is located at '/var/tmp/portage/dev-python/commando-0.3.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/commando-0.3.4/temp/environment'.
 * Working directory: '/usr/portage/distfiles'
 * S: '/var/tmp/portage/dev-python/commando-0.3.4/work/commando-0.3.4'

output emerge --info:
Portage 2.3.13 (python 2.7.14-final-0, default/linux/x86/13.0/desktop/gnome/systemd, gcc-6.4.0, glibc-2.25-r9, 4.12.12-gentoo i686)
=================================================================
System uname: Linux-4.12.12-gentoo-i686-Intel-R-_Celeron-R-_CPU_N2930_@_1.83GHz-with-gentoo-2.4.1
KiB Mem:     1031792 total,    144568 free
KiB Swap:     524284 total,    507124 free
Timestamp of repository gentoo: Sat, 09 Dec 2017 13:00:01 +0000
Head commit of repository gentoo: 2d68ae83d2261d58130a3168bb661736e091ee7f
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-lang/perl:            5.24.3::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.4.5-r1::gentoo, 3.5.4-r1::gentoo
dev-util/cmake:           3.8.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            6.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r9::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 

crossdev
    location: /usr/local/portage-crossdev
    masters: gentoo
    priority: 10

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

ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-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="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=" --buildpkg --usepkg"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://ftp.heanet.ie/pub/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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="X a52 aac acl acpi alsa apm berkdb bluetooth branding bzip2 cairo cdda cdr cli colord cracklib crypt cups cxx dbus dri dts dvd dvdr eds emacs emboss encode evo exif fam firefox flac fortran g-sorcery gdbm gif glamor gnome gnome-keyring gpm gstreamer gtk iconv introspection ipv6 jpeg lcms ldap libnotify libsecret mad mng modules mp3 mp4 mpeg nautilus ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support qt5 readline sdl seccomp session spell ssl startup-notification svg systemd tcpd tiff tracker truetype udev udisks unicode upower usb vorbis wxwidgets x264 x86 xattr xcb xml xv xvid zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock 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="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa 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, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Tor Rune Skoglund 2017-12-11 12:56:24 UTC
I can confirm this. I filed the following to the github pypi repo, although it seems that there is not much being handled there. So it would be great if it could be handled by Gentoo then.

-----

pypi.pyhton.org now requires https for download. The link produced in the ebuilds are using http, which means that downloading code when emerging now does not work.

Testing with wget to confirm problem:

Testing with http:

wget http://pypi.python.org/packages/source/g/geographiclib/geographiclib-1.45.tar.gz
--2017-12-08 15:19:18-- http://pypi.python.org/packages/source/g/geographiclib/geographiclib-1.45.tar.gz
Slår opp vertsnavn pypi.python.org (pypi.python.org) … 151.101.0.223, 151.101.64.223, 151.101.128.223, ...
Kobler til pypi.python.org (pypi.python.org)|151.101.0.223|:80 …tilkoblet.
HTTP-forespørsel sendt. Venter på svar … 403 SSL is required
2017-12-08 15:19:18 PROGRAMFEIL 403: SSL is required.


Testing with https: 

wget https://pypi.python.org/packages/source/g/geographiclib/geographiclib-1.45.tar.gz
--2017-12-08 15:19:26-- https://pypi.python.org/packages/source/g/geographiclib/geographiclib-1.45.tar.gz
Slår opp vertsnavn pypi.python.org (pypi.python.org) … 151.101.0.223, 151.101.64.223, 151.101.128.223, ...
Kobler til pypi.python.org (pypi.python.org)|151.101.0.223|:443 …tilkoblet.
HTTP-forespørsel sendt. Venter på svar … 200 OK
Lengde: 28859 (28K) [application/octet-stream]
Lagrer til: «geographiclib-1.45.tar.gz»

geographiclib-1.45.tar.gz 100%[=======================================================

2017-12-08 15:19:27 (930 KB/s) - «geographiclib-1.45.tar.gz» lagret [28859/28859]
Comment 2 Didier Colle 2018-02-17 22:32:02 UTC
anyone taking care of this issue?
It appears a pull request was already proposed on github: see https://github.com/jauhien/gs-pypi/pull/15 ...
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-12-11 13:35:52 UTC
Removing wrt #659414.