During merge of ZSI-2.0 on python2.6 this command: ${python} setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" build "$@" fails with this output: ImportError: <module 'setuptools.dist' from '/usr/lib64/python2.6/site-packages/setuptools/dist.pyc'> has no 'check_packages' attribute Reproducible: Always Steps to Reproduce: 1. emerge zsi Actual Results: >>> Emerging (1 of 1) dev-python/zsi-2.0 * ZSI-2.0.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking ZSI-2.0.tar.gz to /var/tmp/portage/dev-python/zsi-2.0/work >>> Source unpacked in /var/tmp/portage/dev-python/zsi-2.0/work >>> Compiling source in /var/tmp/portage/dev-python/zsi-2.0/work/ZSI-2.0 ... python setup.py build /usr/lib64/python2.6/site-packages/Pyrex/Compiler/Errors.py:17: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6 self.message = message Installed /var/tmp/portage/dev-python/zsi-2.0/work/ZSI-2.0/setuptools-0.6c11-py2.6.egg Traceback (most recent call last): File "setup.py", line 65, in <module> **additional_params File "/usr/lib64/python2.6/distutils/core.py", line 113, in setup _setup_distribution = dist = klass(attrs) File "/usr/lib64/python2.6/site-packages/setuptools/dist.py", line 224, in __init__ _Distribution.__init__(self,attrs) File "/usr/lib64/python2.6/distutils/dist.py", line 270, in __init__ self.finalize_options() File "/usr/lib64/python2.6/site-packages/setuptools/dist.py", line 257, in finalize_options ep.load()(self, ep.name, value) File "/usr/lib64/python2.6/site-packages/pkg_resources.py", line 1922, in load raise ImportError("%r has no %r attribute" % (entry,attr)) ImportError: <module 'setuptools.dist' from '/usr/lib64/python2.6/site-packages/setuptools/dist.pyc'> has no 'check_packages' attribute * * ERROR: dev-python/zsi-2.0 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3131: Called distutils_src_compile * environment, line 733: Called die * The specific snippet of code: * ${python} setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" build "$@" || die "Building failed"; * The die message: * Building failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/dev-python/zsi-2.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-python/zsi-2.0/temp/environment'. * Expected Results: successful merge dev-python/zsi-2.1_alpha1 fails with similar message nok ~ # emerge --info Portage 2.1.6.13 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30.3 x86_64) ================================================================= System uname: Linux-2.6.30.3-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T5870_@_2.00GHz-with-gentoo-1.12.13 Timestamp of tree: Fri, 06 Nov 2009 20:15:02 +0000 ccache version 2.4 [disabled] app-shells/bash: 4.0_p28 dev-java/java-config: 2.1.9-r1 dev-lang/python: 2.6.2-r1 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.6.4-r3 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.4_p6, 1.7.9-r1, 1.8.5-r3, 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="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=core2" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/init.d /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/udev/rules.d" CXXFLAGS="-O2 -pipe -march=core2" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.inode.at" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="en_US" MAKEOPTS="-j5" 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" PORTDIR_OVERLAY="/usr/local/portage/layman/kde-testing /usr/local/portage/mine" SYNC="rsync://gentoo.mirror.dkm.cz/gentoo-portage" USE="X a52 aac acpi alsa amd64 arts avi berkdb bluetooth bzip2 cdr cli cracklib crypt css cups dbus divx4linux dri dts dvd dvdr dvdread encode exif fortran gdbm gif gtk2 hal iconv icq imagemagick imap jabber jpeg kde lcms live matroska mmx modules mozilla mp3 mpeg mudflap multilib ncurses nls nptl nptlonly offensive opengl openmp pam pcre perl png pppd python qt qt3support quicktime readline reflection session spl sse sse2 ssl svg sysfs tcpd theora tiff truetype unicode usb vhosts vorbis wifi x264 xml2 xorg xv xvid zlib" 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" 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="rewrite authz_host dir mime" CAMERAS="canon ptp2" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US" USERLAND="GNU" VIDEO_CARDS="intel" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
try re-emerging setuptools
(In reply to comment #1) > try re-emerging setuptools Re-emerging of (currently stable version 0.6.4) did not help, but upgrading them to version 0.6.8 fixed the issue. Thanks!