Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 292094 - dev-python/setuptools-0.6.4 fails during src_install()
Summary: dev-python/setuptools-0.6.4 fails during src_install()
Status: RESOLVED DUPLICATE of bug 292095
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-06 14:05 UTC by Laurento Frittella (mrfree)
Modified: 2009-11-06 17:49 UTC (History)
4 users (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 Laurento Frittella (mrfree) 2009-11-06 14:05:43 UTC
I've tried with 0.6.4  0.6.6  0.6.8 and all fails with

>>> Install setuptools-0.6.6 into /var/tmp/portage/dev-python/setuptools-0.6.6/image/ category dev-python
 * Installation of dev-python/setuptools-0.6.6 with Python 2.6...
python2.6 setup.py build -b build-2.6 install --root=/var/tmp/portage/dev-python/setuptools-0.6.6/image/ --no-compile
Traceback (most recent call last):
  File "setup.py", line 92, in <module>
    from distribute_setup import _before_install
ImportError: cannot import name _before_install
 * 
 * ERROR: dev-python/setuptools-0.6.6 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_install
 *             environment, line 3168:  Called distutils_src_install
 *             environment, line  784:  Called python_execute_function 'installation'
 *             environment, line 2819:  Called die
 * The specific snippet of code:
 *                       die "${failure_message}";
 *  The die message:
 *   Installation failed with Python 2.6 in installation() function
 * 
 * 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/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'.
 *
Comment 1 Martin Gebert 2009-11-06 14:53:46 UTC
Same problem here with 0.6.4.
Comment 2 Daniel Nilsson 2009-11-06 15:25:16 UTC
Same problem here too, upgrading from 0.6-r1 to 0.6.4.
My emerge info:

Portage 2.1.6.13 (default/linux/amd64/10.0/desktop, gcc-4.3.4, glibc-2.9_p200812
01-r2, 2.6.30-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r4-x86_64-Intel-R-_Core-TM-2_Quad_CPU_@_2.40GH
z-with-gentoo-1.12.11.1
Timestamp of tree: Fri, 06 Nov 2009 03:25:01 +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-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 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="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/lib/hsqldb"
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 /et
c/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/var/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms str
ict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.gentoo.se ftp://ftp.ing.umu.se/linux/gentoo ftp://
trumpetti.atm.fi/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j5"
PKGDIR="/var/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress 
--force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclu
de=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/portage"
PORTDIR_OVERLAY="/var/overlays/local"
SYNC="rsync://rsync.se.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac alsa amd64 apache2 bash-completion berkdb branding bzip2 ca
iro cdr cli cracklib cups dbus dri dts dvd dvdr emboss encode evo exif fam firef
ox flac fortran gdbm gif gtk hddtemp iconv java java6 jpeg lcms lzma mad mmx mod
ules mp3 mp4 mpeg mudflap multilib ncurses nptl nptlonly offensive ogg opengl op
enmp pam pcre perl png ppds pppd python qt3support quicktime readline reflection
 sdl session source spl sse sse2 ssl ssse3 startup-notification svg sysfs thunar
 tiff timidity truetype unicode usb vim-syntax vorbis wma xinerama xml xorg xulr
unner xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x c
a0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 int
el8x0m 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_anon authn_dbm authn_d
efault 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 expir
es ext_filter file_cache filter headers include info log_config logio mem_cache 
mime mime_magic negotiation rewrite setenvif speling status unique_id userdir us
ertrack vhost_alias" APACHE2_MPMS="prefork" ELIBC="glibc" FOO2ZJS_DEVICES="hpp10
05" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfon
tz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAN
D="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PO
RTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Armando Di Cianno 2009-11-06 17:47:36 UTC
I can't seem to change the 'assigned to' field, so adding python@gentoo.org to CC to get this on their radar.  Also, I tried changing severity to blocker, since the bug is stopping me from bootstrapping a system, but I cannot due to Bugzilla permissions.

I also tried 0.6.4, 0.6.6, and 0.6.8 as the original poster.  No change.

I did some debugging, and here's what I found.

distutils.eclass distutils_src_prepare() overwrites a package's distribute_setup.py, making it basically an empty, do-nothing file so that packages don't use their own distribute_setup.py.  However, the setup.py for all versions of setuptools I've tried explicitly tries to import a method (_before_install) that was in the original file.  This makes setuptools fail, consistently.

Help!  I'm only recently new to Python (literally 1 week), otherwise I'd probably be able to submit a patch as well.

bug #292095 is undoubtedly a duplicate of this.
Comment 4 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-11-06 17:49:47 UTC

*** This bug has been marked as a duplicate of bug 292095 ***