Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 585146

Summary: dev-python/six-1.10.0 fails to install with PYTHON_TARGETS="python3_4"
Product: Gentoo Linux Reporter: Dmitri Bogomolov <4glitch>
Component: [OLD] DevelopmentAssignee: Python Gentoo Team <python>
Status: RESOLVED FIXED    
Severity: normal CC: sping
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=574002
https://bugs.gentoo.org/show_bug.cgi?id=595028
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emerge --info

Description Dmitri Bogomolov 2016-06-06 08:17:08 UTC
Created attachment 436602 [details]
build.log

The message is:

ImportError: This package should not be accessible on Python 3. Either you are trying to run from the python-future src folder or your installation of python-future is corrupted.

# emerge -pqv '=dev-python/six-1.10.0::gentoo'
[binary   R   ] dev-python/six-1.10.0  USE="-doc {-test}" PYTHON_TARGETS="python2_7 python3_4* (-pypy) (-pypy3) -python3_3 (-python3_5)"
Comment 1 Michael Palimaka (kensington) gentoo-dev 2016-06-09 09:35:19 UTC
Please also add emerge --info.
Comment 2 Dmitri Bogomolov 2016-06-09 09:40:35 UTC
Created attachment 436940 [details]
emerge --info
Comment 3 Mike Gilbert gentoo-dev 2016-06-09 15:49:19 UTC
This is an odd one. It seems that portage is running the pkg_preinst phase from /usr/lib64/python2.7/site-packages, which seems a bit dangerous. It certainly does weird things to sys.path.
Comment 4 Mike Gilbert gentoo-dev 2016-06-09 16:21:06 UTC
This should fix it (I think).

commit 81fc70f986e26243b0d85c32700cab3157f2dd07
Author: Mike Gilbert <floppym@gentoo.org>
Date:   Thu Jun 9 12:01:39 2016 -0400

    dev-python/six: run pkg_preinst from /

    Bug: https://bugs.gentoo.org/585146

    Package-Manager: portage-2.3.0_rc1_p20

 dev-python/six/six-1.10.0.ebuild   | 1 +
 dev-python/six/six-1.9.0-r1.ebuild | 1 +
 2 files changed, 2 insertions(+)
Comment 5 Mike Gilbert gentoo-dev 2017-05-04 18:00:51 UTC
*** Bug 573168 has been marked as a duplicate of this bug. ***