Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 490482 - dev-python/requests-2.0.1 fails to build
Summary: dev-python/requests-2.0.1 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL: https://github.com/kennethreitz/reque...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-05 16:06 UTC by Paul Varner (RETIRED)
Modified: 2015-07-11 22:13 UTC (History)
0 users

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


Attachments
build.log (build.log,22.86 KB, text/plain)
2013-11-05 16:06 UTC, Paul Varner (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Varner (RETIRED) gentoo-dev 2013-11-05 16:06:05 UTC
dev-python/requests-2.0.1 fails to build with the following traceback:

Traceback (most recent call last):
  File "app_main.py", line 72, in run_toplevel
  File "setup.py", line 6, in <module>
    import requests
  File "/var/tmp/portage/dev-python/requests-2.0.1/work/requests-2.0.1/requests/__init__.py", line 53, in <module>
    from .packages.urllib3.contrib import pyopenssl
  File "/var/tmp/portage/dev-python/requests-2.0.1/work/requests-2.0.1/requests/packages/urllib3/contrib/pyopenssl.py", line 55, in <module>
    orig_connectionpool_ssl_wrap_socket = connectionpool.ssl_wrap_socket
AttributeError: 'module' object has no attribute 'ssl_wrap_socket'


Reproducible: Always

Steps to Reproduce:
1. emerge -v1 =dev-python/requests-2.0.1
2.
3.
Actual Results:  
build fails

Expected Results:  
emerge succeeds

# emerge --info dev-python/requests      
Portage 2.2.7 (default/linux/amd64/13.0/desktop, gcc-4.7.3, glibc-2.15-r3, 3.10.7-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.10.7-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_X5650_@_2.67GHz-with-gentoo-2.2
KiB Mem:     4054360 total,    932044 free
KiB Swap:    2097148 total,   2069856 free
Timestamp of tree: Tue, 05 Nov 2013 09:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-lang/python:          2.6.8-r3, 2.7.5-r4, 3.2.5-r3, 3.3.2-r2
dev-util/cmake:           2.8.12
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.12.6, 1.14
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.11 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo local
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /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="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --complete-graph=y --quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/local"
SYNC="rsync://rsync.ipv6.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm gtk iconv icu ipv6 jpeg lcms libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt3support qt4 readline sdl semantic-desktop session spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_6 python2_7 python3_2 python3_3 pypy2_0" RUBY_TARGETS="ruby20" USERLAND="GNU" VIDEO_CARDS="virtualbox vesa" 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"
USE_PYTHON="2.6 2.7 3.2 3.3 2.7-pypy-2.0"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

dev-python/requests-2.0.0 was built with the following:
USE="-test" PYTHON_TARGETS="pypy2_0 python2_6 python2_7 python3_2 python3_3"
Comment 1 Paul Varner (RETIRED) gentoo-dev 2013-11-05 16:06:57 UTC
Created attachment 362634 [details]
build.log
Comment 2 Dirkjan Ochtman (RETIRED) gentoo-dev 2013-11-09 10:34:24 UTC
I'm going to guess and say this is a problem with pypy only. Can you try with the pypy-2.0 target disabled?
Comment 3 Paul Varner (RETIRED) gentoo-dev 2013-11-10 07:09:38 UTC
(In reply to Dirkjan Ochtman from comment #2)
> I'm going to guess and say this is a problem with pypy only. Can you try
> with the pypy-2.0 target disabled?

It is not just pypy-2.0, it also fails with python2.6 and python2.7.  I was able to build it successfully only after removing all three of those targets.
Comment 4 Dirkjan Ochtman (RETIRED) gentoo-dev 2013-11-11 08:52:23 UTC
Okay, this is an upstream issue, it seems to only trigger if you have pyopenssl installed. Not sure we want to do a workaround here.

Also, I wonder if we should unbundle urllib3 from requests...
Comment 5 Mike Gilbert gentoo-dev 2013-11-11 17:00:21 UTC
(In reply to Dirkjan Ochtman from comment #4)
> Also, I wonder if we should unbundle urllib3 from requests...

We tried that once; it's a bit of a pain to maintain.
Comment 6 Patrice Clement gentoo-dev 2015-07-11 22:13:13 UTC
This package has been removed a while ago.

  23 Sep 2014; Dirkjan Ochtman <djc@gentoo.org> -requests-1.2.2.ebuild,
  -requests-2.0.0.ebuild, -requests-2.0.1.ebuild, -requests-2.1.0.ebuild,
  -requests-2.2.0.ebuild, -requests-2.2.1.ebuild:
  Remove a bunch of old versions

Current versions in the tree (2.6.x and 2.7.0) compile fine in my sandbox.

Closing this bug.