dev-python/setuptools faild to build. 100%[=====================================================>] 527.816 442K/s in 1,2s 2009-11-03 11:13:12 (442 KB/s) - ûû/usr/portage/distfiles/distribute-0.6.6.tar.gzëë gespeichert [527816/527816] * distribute-0.6.6.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking distribute-0.6.6.tar.gz to /var/tmp/portage/dev-python/setuptools-0.6.6/work >>> Source unpacked in /var/tmp/portage/dev-python/setuptools-0.6.6/work >>> Preparing source in /var/tmp/portage/dev-python/setuptools-0.6.6/work/distribute-0.6.6 ... * Applying setuptools-0.6_rc7-noexe.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-python/setuptools-0.6.6/work/distribute-0.6.6 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-python/setuptools-0.6.6/work/distribute-0.6.6 ... * ERROR: dev-python/setuptools-0.6.6 failed: * 'python' doesn't respect EPYTHON variable * * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3131: Called distutils_src_compile * environment, line 761: Called python_execute_function 'building' * environment, line 2747: Called validate_PYTHON_ABIS * environment, line 3744: Called die * The specific snippet of code: * die "'python' doesn't respect EPYTHON variable"; * * If you need support, post the output of 'emerge --info =dev-python/setuptools-0.6.6', * the complete build log and the output of 'emerge -pqv =dev-python/setuptools-0.6.6'. * The complete build log is located at '/var/tmp/portage/dev-python/setuptools-0.6.6/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-python/setuptools-0.6.6/temp/environment'. * S: '/var/tmp/portage/dev-python/setuptools-0.6.6/work/distribute-0.6.6' >>> Failed to emerge dev-python/setuptools-0.6.6, Log file: >>> '/var/tmp/portage/dev-python/setuptools-0.6.6/temp/build.log' * Messages for package dev-python/setuptools-0.6.6: Reproducible: Always
I had 2 installed Python versions. Python 3.1.1, I have now unmerged, and now it work for me
Your problem is caused not by Python 3, but by broken /usr/bin/python symlink. It should be symlink to python-wrapper.
I've just run into this. What is the fix? lrwxrwxrwx 1 root root 14 2009-11-05 23:02 python -> python-wrapper lrwxrwxrwx 1 root root 9 2009-11-05 23:02 python2 -> python2.6 -rwxr-xr-x 1 root root 8464 2009-10-31 22:32 python2.6 lrwxrwxrwx 1 root root 9 2009-10-31 22:37 python3 -> python3.1 -rwxr-xr-x 1 root root 12632 2009-10-31 22:37 python3.1 -rwxr-xr-x 1 root root 209 2009-11-05 23:02 python-config -rwxr-xr-x 1 root root 1200 2009-10-31 22:32 python-config-2.6 -rwxr-xr-x 1 root root 1177 2009-10-31 22:36 python-config-3.1 -rwxr-xr-x 1 root root 12704 2009-10-31 22:30 python-wrapper zeus bin # eselect python list Available python interpreters: [1] python2.6 * [2] python3.1 Re-running "eselect python set 1" did not change anything.
Incidentally, on 11/01 setuptools-0.6.7 was emerged just fine, and was the last time I did updates.
This is probably bug 292095
Ran into this as well, what is the proposed fix? Updating dev-python/setuptools to 0.6.8? [ebuild R ] sys-apps/portage-2.2_rc49 USE="python3 -build -doc -epydoc (-selinux)" LINGUAS="-pl" Available python interpreters: [1] python2.6 * [2] python3.1 lrwxrwxrwx 1 root root 14 2009-11-15 18:10 /usr/bin/python -> python-wrapper lrwxrwxrwx 1 root root 9 2009-11-15 18:10 /usr/bin/python2 -> python2.6 -rwxr-xr-x 1 root root 6488 2009-11-05 23:00 /usr/bin/python2.6 lrwxrwxrwx 1 root root 9 2009-10-12 12:53 /usr/bin/python3 -> python3.1 -rwxr-xr-x 1 root root 9584 2009-10-12 12:52 /usr/bin/python3.1
(In reply to comment #6) > Ran into this as well, what is the proposed fix? Updating dev-python/setuptools to 0.6.8? Hm, that obviously does not work (trying to update from 0.6.6): * ERROR: dev-python/setuptools-0.6.8 failed: * 'python' doesn't respect EPYTHON variable
(In reply to comment #6) > Ran into this as well, what is the proposed fix? EPYTHON="python3" python -c 'from sys import version_info; print(".".join([str(x) for x in version_info[:2]]))' This seems to work, replying with "3.1". So either $PYTHON is not set to python3, or $PYTHON_ABI is not 3.1... The eclass uses the same $PYTHON for all $PYTHON_ABIS it iterates over (which should contain "3.1", determined by executing various script steps manually). That seems confusing atm.
(In reply to comment #6) > Ran into this as well, what is the proposed fix? Updating dev-python/setuptools > to 0.6.8? > > [ebuild R ] sys-apps/portage-2.2_rc49 USE="python3 -build -doc -epydoc > (-selinux)" LINGUAS="-pl" > > Available python interpreters: > [1] python2.6 * > [2] python3.1 > > lrwxrwxrwx 1 root root 14 2009-11-15 18:10 /usr/bin/python -> python-wrapper > lrwxrwxrwx 1 root root 9 2009-11-15 18:10 /usr/bin/python2 -> python2.6 > -rwxr-xr-x 1 root root 6488 2009-11-05 23:00 /usr/bin/python2.6 > lrwxrwxrwx 1 root root 9 2009-10-12 12:53 /usr/bin/python3 -> python3.1 > -rwxr-xr-x 1 root root 9584 2009-10-12 12:52 /usr/bin/python3.1 > Where is python-wrapper? Have you emerged the latest eselect-python and re-run 'eselect python set python2.6'?
(In reply to comment #9) > Where is python-wrapper? Have you emerged the latest eselect-python and re-run > 'eselect python set python2.6'? -rwxr-xr-x 1 root root 12048 2009-08-29 16:28 /usr/bin/python-wrapper [ebuild R ] app-admin/eselect-python-20090824 Ran "eselect python set 1" several times.
(In reply to comment #10) > (In reply to comment #9) > > Where is python-wrapper? Have you emerged the latest eselect-python and re-run > > 'eselect python set python2.6'? > -rwxr-xr-x 1 root root 12048 2009-08-29 16:28 /usr/bin/python-wrapper > > [ebuild R ] app-admin/eselect-python-20090824 > > Ran "eselect python set 1" several times. "eselect python set python2.6" has the same issue.
I just did an emerge --sync and this issue still presents itself. Add to that the fact that no solution appears to have been provided here, I'm thinking that we should re-open this one.
I can confirm this bug: I have reinstalled python 2.6 and 3.1.1 and eselect-python, ran "eselect python set python2.6", and every python package I tried(setuptools, pytz, pysqlite and sqlalchemy) fails with the same error - with portage and paludis.
My situation was resolved after bug 292095 was fixed, I sync'd, and re-emerged setuptools. I've sync'd at least twice since then, and just re-emerged world with no Python application problems. So, I'm not sure what issues you guys are running into, unless some issue just got introduced since I sync'd yesterday.
Created attachment 210364 [details] emerge --info Given that most of the comments on this bug are from today in the last few hours, I think that it's safe to assume that the problem was recently introduced to the tree. Here's my emerge --info:
emerge --info: Portage 2.2_rc49 (hardened/linux/ia64/10.0/server, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.31-hardened-r6 ia64) ================================================================= System uname: Linux-2.6.31-hardened-r6-ia64-31-with-gentoo-2.0.1 Timestamp of tree: Sun, 15 Nov 2009 18:45:02 +0000 app-shells/bash: 4.0_p28 dev-lang/python: 2.6.4, 3.1.1-r1 dev-python/pycrypto: 2.0.1-r8 dev-util/cmake: 2.6.4 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.5.2-r2 sys-apps/sandbox: 2.2 sys-devel/autoconf: 2.63-r1 sys-devel/automake: 1.7.9-r1, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.20 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="ia64" CBUILD="ia64-unknown-linux-gnu" CFLAGS="-pipe -mtune=mckinley -O2 -ftree-vectorize" CHOST="ia64-unknown-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /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 /etc/udev/rules.d" CXXFLAGS="-pipe -mtune=mckinley -O2 -ftree-vectorize" DISTDIR="/var/cache/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps y" FEATURES="assume-digests distlocks fixpackages metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" GENTOO_MIRRORS="http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="en_GB.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed" MAKEOPTS="-j3" PKGDIR="/var/cache/portage/packages" PORTAGE_COMPRESS="xz" PORTAGE_CONFIGROOT="/" [...] PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/var/cache/portage/gentoo" PORTDIR_OVERLAY="/var/cache/portage/layman/hardened-development /var/cache/portage/local" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" [...] Unset: CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS_FLAGS
Same error with: # eselect python list Available python interpreters: [1] python2.5 [2] python2.6 * # eix -e python ... Installed versions: 2.5.4-r3(2.5) ... 2.6.2-r1(2.6) ... # eix -e eselect-python ... Installed versions: 20090824(11:25:45 17.09.2009)
I recently synced and have had two machines suffer from this problem. I've never used python 3
# emerge --info Portage 2.1.6.13 (default/linux/x86/10.0/server, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r4 i686) ================================================================= System uname: Linux-2.6.30-gentoo-r4-i686-Pentium_III_-Coppermine-with-gentoo-1.12.13 Timestamp of tree: Sun, 15 Nov 2009 18:30:01 +0000 distcc 3.1 i686-pc-linux-gnu [enabled] ccache version 2.4 [enabled] app-shells/bash: 4.0_p28 dev-java/java-config: 2.1.9-r1 dev-lang/python: 2.4.4-r13, 2.5.4-r3, 2.6.2-r1 dev-python/pycrypto: 2.0.1-r8 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.63-r1 sys-devel/automake: 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distcc distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LDFLAGS="-Wl,-O1" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="acl apache2 berkdb bzip2 cli cracklib crypt cups dri dvb emacs fortran gdbm gpm iconv ipv6 ldap modules mudflap mysql ncurses nls nonfsv4 nptl nptlonly opengl openmp pam pcre perl pppd python readline reflection session snmp spl ssl svg sysfs tcpd truetype unicode x86 xml xorg zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="rage128 vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY I can also get from the other system experienceing this problem, but I didn't want to cloud the bz.
During the build I was upgraded to python 2.6, this is most likely part of the problem. I will be trying with python 2.5 and let you know how it goes.
(In reply to comment #9) > (In reply to comment #6) > > Ran into this as well, what is the proposed fix? Updating dev-python/setuptools > > to 0.6.8? > > Where is python-wrapper? Have you emerged the latest eselect-python and re-run > 'eselect python set python2.6'? > No combination of unmasking and updating setuptools, using python 2.5, or python 2.6, or reemerging eselect-python, made the problem go away for me 1258314758: Started emerge on: Nov 15, 2009 14:52:38 1258314758: *** emerge --deep --update world <snip> 1258325983: >>> emerge (63 of 84) dev-lang/python-2.6.2-r1 to / 1258325986: === (63 of 84) Cleaning (dev-lang/python-2.6.2-r1::/usr/portage/dev-lang/python/python-2.6.2-r1.ebuild) 1258325986: === (63 of 84) Compiling/Merging (dev-lang/python-2.6.2-r1::/usr/portage/dev-lang/python/python-2.6.2-r1.ebuild) 1258326658: === (63 of 84) Merging (dev-lang/python-2.6.2-r1::/usr/portage/dev-lang/python/python-2.6.2-r1.ebuild) 1258326671: >>> AUTOCLEAN: dev-lang/python:2.6 1258326689: === (63 of 84) Post-Build Cleaning (dev-lang/python-2.6.2-r1::/usr/portage/dev-lang/python/python-2.6.2-r1.ebuild) 1258326689: ::: completed emerge (63 of 84) dev-lang/python-2.6.2-r1 to /
Component should probably be changed to eclasses because it looks like something in python.eclass is at fault
This now works for me with the latest emerge --sync, performed just a minute ago
I agree with James -- I just resynced a minute or so ago (I'd done so earlier in the day when I first had issues) and setuptools just emerge'd successfully.
Probably fixed by http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/python.eclass?r1=1.78&r2=1.79 then.
Hello, I allready had this problem. I had python (and symlink) in /usr/local/bin/, and because of it - update/modify of symlink in /usb/bin was useless (bacause PATH env - /usr/local have higher priority: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.4 []) Petr N.