Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 573288 - app-portage/layman-2.3.0-r1 fails with python3.5
Summary: app-portage/layman-2.3.0-r1 fails with python3.5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Layman Overlay Manager project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-29 11:22 UTC by Alexey Shvetsov
Modified: 2016-07-10 22:28 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 Alexey Shvetsov archtester gentoo-dev 2016-01-29 11:22:37 UTC
app-portage/layman-2.3.0-r1 cannot be reemerged with python 3.5

>>> Emerging (1 of 1) app-portage/layman-2.3.0-r1::gentoo
 * layman-2.3.0.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                                                                                                                             [ ok ]
>>> Unpacking source...
>>> Unpacking layman-2.3.0.tar.gz to /var/tmp/portage/app-portage/layman-2.3.0-r1/work
>>> Source unpacked in /var/tmp/portage/app-portage/layman-2.3.0-r1/work
>>> Preparing source in /var/tmp/portage/app-portage/layman-2.3.0-r1/work/layman-2.3.0 ...
/usr/bin/python3.5 setup.py setup_plugins
!!! Layman API imports failed.Traceback (most recent call last):
  File "setup.py", line 12, in <module>
    from layman.version import VERSION
  File "./layman/__init__.py", line 13, in <module>
    from layman.api import LaymanAPI
  File "./layman/api.py", line 25, in <module>
    from layman.remotedb        import RemoteDB
  File "./layman/remotedb.py", line 46, in <module>
    from   sslfetch.connections     import Connector
  File "/usr/lib64/python3.5/site-packages/sslfetch/connections.py", line 40, in <module>
    import requests
  File "/usr/lib64/python3.5/site-packages/requests/__init__.py", line 58, in <module>
    from . import utils
  File "/usr/lib64/python3.5/site-packages/requests/utils.py", line 32, in <module>
    from .exceptions import InvalidURL, FileModeWarning
  File "/usr/lib64/python3.5/site-packages/requests/exceptions.py", line 10, in <module>
    from .packages.urllib3.exceptions import HTTPError as BaseHTTPError
ImportError: No module named 'requests.packages.urllib3.exceptions'

Installed version start failing after some upgrade
scc-106-02 ~ # layman
!!! Layman API imports failed.Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.5/layman", line 29, in <module>
    from   layman.argsparser     import ArgsParser
  File "/usr/lib64/python3.5/site-packages/layman/__init__.py", line 13, in <module>
    from layman.api import LaymanAPI
  File "/usr/lib64/python3.5/site-packages/layman/api.py", line 25, in <module>
    from layman.remotedb        import RemoteDB
  File "/usr/lib64/python3.5/site-packages/layman/remotedb.py", line 46, in <module>
    from   sslfetch.connections     import Connector
  File "/usr/lib64/python3.5/site-packages/sslfetch/connections.py", line 40, in <module>
    import requests
  File "/usr/lib64/python3.5/site-packages/requests/__init__.py", line 58, in <module>
    from . import utils
  File "/usr/lib64/python3.5/site-packages/requests/utils.py", line 32, in <module>
    from .exceptions import InvalidURL, FileModeWarning
  File "/usr/lib64/python3.5/site-packages/requests/exceptions.py", line 10, in <module>
    from .packages.urllib3.exceptions import HTTPError as BaseHTTPError
ImportError: No module named 'requests.packages.urllib3.exceptions'



Reproducible: Always
Comment 1 Robert Cabrera 2016-02-03 19:28:37 UTC
I'm getting hit with this bug too, with exactly the same output as mentioned.
My emerge --info:
Portage 2.2.27 (python 3.5.1-final-0, default/linux/amd64/13.0/desktop/kde, gcc-5.3.0, glibc-2.22-r1, 4.2.0-pf3 x86_64)                                                                                    
=================================================================                                                                                                                                          
System uname: Linux-4.2.0-pf3-x86_64-Intel-R-_Core-TM-2_CPU_T7200_@_2.00GHz-with-gentoo-2.2                                                                                                                
KiB Mem:     3333536 total,     45264 free                                                                                                                                                                 
KiB Swap:    4200960 total,   4200920 free                                                                                                                                                                 
Timestamp of repository gentoo: Wed, 03 Feb 2016 04:45:01 +0000                                                                                                                                            
sh bash 4.3_p42-r1                                                                                                                                                                                         
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1                                                                                                                                                                      
app-shells/bash:          4.3_p42-r1::gentoo                                                                                                                                                               
dev-java/java-config:     2.2.0::gentoo                                                                                                                                                                    
dev-lang/perl:            5.22.1::gentoo                                                                                                                                                                   
dev-lang/python:          2.7.11-r2::gentoo, 3.4.3-r7::gentoo, 3.5.1-r2::gentoo                                                                                                                            
dev-util/cmake:           3.4.3::gentoo                                                                                                                                                                    
dev-util/pkgconfig:       0.29::gentoo                                                                                                                                                                     
sys-apps/baselayout:      2.2::gentoo                                                                                                                                                                      
sys-apps/openrc:          0.20.4::gentoo                                                                                                                                                                   
sys-apps/sandbox:         2.10-r1::gentoo                                                                                                                                                                  
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo                                                                                                                                                    
sys-devel/automake:       1.11.6-r2::gentoo, 1.14.1-r1::gentoo, 1.15-r1::gentoo                                                                                                                            
sys-devel/binutils:       2.25.1-r1::gentoo                                                                                                                                                                
sys-devel/gcc:            5.3.0::gentoo                                                                                                                                                                    
sys-devel/gcc-config:     1.8-r1::gentoo                                                                                                                                                                   
sys-devel/libtool:        2.4.6-r1::gentoo                                                                                                                                                                 
sys-devel/make:           4.1-r1::gentoo                                                                                                                                                                   
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)                                                                                                                                                 
sys-libs/glibc:           2.22-r1::gentoo
Repositories:

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

my_local_overlay
    location: /usr/local/portage
    masters: gentoo
    priority: 1

sunrise
    location: /var/lib/layman/sunrise
    sync-type: git
    sync-uri: git://anongit.gentoo.org/proj/sunrise-reviewed.git
    masters: gentoo
    priority: 50

Installed sets: @android, @nicefonts, @toolchain, @xorgupdate
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
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/splash /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=3 --with-bdeps=y --keep-going --complete-graph"
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 strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=native"
GENTOO_MIRRORS="http://gentoo.netnitco.net http://gentoo.osuosl.org/ http://gentoo.mirrors.tds.net/gentoo http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://gentoo.wetzlmayr.com/ http://osmirrors.cerias.purdue.edu/pub/gentoo/ http://www.cyberuse.com/gentoo/ http://gentoo.mirrors.hoobly.com/ ftp://gentoo.imj.fr/pub/gentoo/ http://130.59.10.35/ftp/mirror/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3 -s"
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="S3TC X a52 aac aacplus aacs aalib acl acpi alsa amd64 amr avahi berkdb bidi bluetooth bluray branding btrfs bzip2 cairo cdda cddb cdio cdparanoia cdr cli consolekit cracklib crypt cups curl cvs cxx dbus declarative device-mapper dirac djvu dri dts dv dvd dvdr emboss encode evdev exif extraengine faac fam fat ffmpeg firefox flac fontconfig fortran gdbm gif git glamor google gphoto2 gtk iconv idn ieee1394 imagemagick ipv6 java jbig joystick jpeg jpeg2k kde kipi lame lastfm lcms ldap libass libkms libnotify libsamplerate live lto lua lzma lzo mad matroska mime mjpeg mms mmx mmxext mng modplug modules mp3 mp4 mpeg multilib musepack musicbrainz ncurses netlink nls nptl nsplugin ntfs ntp ogg openal openexr opengl openmp pam pango pcre pdf phonon plasma png policykit postproc ppds qalculate qt3support qt4 quicktime rar readline samba scanner schroedinger sdl seccomp semantic-desktop session smp sndfile sox speex spell sse sse2 sse3 ssl ssse3 startup-notification subversion svg symlink taglib tcpd telepathy theora tiff truetype twolame udev udisks unicode upower usb vcd vcdx vlm vnc vorbis vpx wavpack wmf wxwidgets x264 xa xattr xcb xcomposite xinerama xml xscreensaver xv xvid xvmc zeroconf zlib" ABI_X86="64 32" ALSA_CARDS="hda-intel" 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" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3" 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 ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev keyboard mouse synaptics joystick" 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_7 python3_4 python3_5" RUBY_TARGETS="ruby20 ruby21" SANE_BACKENDS="epson epson2" USERLAND="GNU" VIDEO_CARDS="nouveau" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 2 Vadim A. Misbakh-Soloviov (mva) gentoo-dev 2016-03-08 07:03:45 UTC
I think, bug is actually not against layman, but against dev-python/requests.
I "fixed" (in a bad way, but anyway) layman installation with python3.5 like this:

>  grep -rl '.packages.urllib3' /usr/lib64/python3.5/site-packages/requests/ | xargs sed -e 's#.packages.urllib3#urllib3#g' -i

So, as far, as I understand, it is either `urllib3` should be bumped or `requests` fixed...
Comment 3 Brian Dolbec (RETIRED) gentoo-dev 2016-03-08 07:33:39 UTC
hmm, strange, I installed and tested layman with 3.5 before adding 3.5 compat to the ebuild.

But now that Vadim has made his comment.  I believe I remember reading that requests does not need it's internal urllib3, but just the native python one for 3.5.

I'll have to do more checking on that.
Comment 4 Devan Franchini (RETIRED) gentoo-dev 2016-07-10 22:28:51 UTC
This was resolved with 2.4.0, thank you for reporting it.