I was trying to emerge dev-python/lxml-2.2.2 (for inkscape) and got build error shown below. I had dev-python/setuptools-0.6.4 previously installed. It seems dev-python/lxml-2.2.2 requires dev-python/setuptools>=0.6.5. However the ebuild does not require it. Work around: emerge =dev-python/setuptools-0.6.6; emerge dev-python/lxml Reproducible: Always Steps to Reproduce: 1. emerge =dev-python/setuptools-0.6.4 2. emerge =dev-python/lxml-2.2.2 3. Actual Results: * Building of dev-python/lxml-2.2.2 with Python 2.6... python2.6 setup.py build -b build-2.6 Traceback (most recent call last): File "setup.py", line 14, in <module> pkg_resources.require("setuptools>=0.6c5") File "/usr/lib64/python2.6/site-packages/pkg_resources.py", line 621, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib64/python2.6/site-packages/pkg_resources.py", line 519, in resolve raise DistributionNotFound(req) # XXX put more info here pkg_resources.DistributionNotFound: setuptools>=0.6c5 * * ERROR: dev-python/lxml-2.2.2 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3503: Called distutils_src_compile * environment, line 857: Called python_execute_function 'building' * environment, line 3050: Called die * The specific snippet of code: * die "${failure_message}"; * The die message: * Building failed with Python 2.6 in building() function Expected Results: dev-python/lxml should have installed properly Portage 2.1.6.13 (default/linux/amd64/10.0/desktop, gcc-4.1.2, glibc-2.9_p20081201-r2, 2.6.30-ralph-r5 x86_64) ================================================================= System uname: Linux-2.6.30-ralph-r5-x86_64-Intel-R-_Pentium-R-_D_CPU_3.00GHz-with-gentoo-1.12.13 Timestamp of tree: Thu, 19 Nov 2009 04:15:01 +0000 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 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.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="-march=nocona -O2 -pipe -fomit-frame-pointer" CHOST="x86_64-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="-march=nocona -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/" LDFLAGS="-Wl,-O1" LINGUAS="en" 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" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 berkdb branding bzip2 cairo cdr cli consolekit cracklib crypt dbus dri dts dvd dvdr emboss encode evo exif fam firefox flac fortran gdbm gif gstreamer gtk hal iconv imap ipv6 jpeg ldap libnotify mad matroska mikmod mmx modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl plotutils png postscript ppds pppd python qt3support qt4 quicktime readline reflection scanner sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd thunar tiff truetype unicode usb vim-syntax vim-with-x vorbis wmf x264 xml xorg xulrunner 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="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" CAMERAS="canon ptp2" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" LIRC_DEVICES="serial" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="intel vesa fbdev radeon" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
0.6c5 means 0.6_rc5. Only 0.6.4 might have a bug. You should use 'emerge -uDN world'.