Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 297017 - dev-python/setuptools-0.6.6 emerge fails: A 0.7-series setuptools cannot be installed with distribute
Summary: dev-python/setuptools-0.6.6 emerge fails: A 0.7-series setuptools cannot be i...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-15 11:49 UTC by Markus Tacker
Modified: 2010-01-05 14:36 UTC (History)
0 users

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 Markus Tacker 2009-12-15 11:49:42 UTC
* Building of dev-python/setuptools-0.6.6 with Python 2.6...
python2.6 setup.py build -b build-2.6
Traceback (most recent call last):
  File "setup.py", line 42, in <module>
    from setuptools import setup, find_packages
  File "/var/tmp/portage/dev-python/setuptools-0.6.6/work/distribute-0.6.6/setuptools/__init__.py", line 2, in <module>
    from setuptools.extension import Extension, Library
  File "/var/tmp/portage/dev-python/setuptools-0.6.6/work/distribute-0.6.6/setuptools/extension.py", line 2, in <module>
    from setuptools.dist import _get_unpatched
  File "/var/tmp/portage/dev-python/setuptools-0.6.6/work/distribute-0.6.6/setuptools/dist.py", line 6, in <module>
    from setuptools.command.sdist import sdist
  File "/var/tmp/portage/dev-python/setuptools-0.6.6/work/distribute-0.6.6/setuptools/command/sdist.py", line 4, in <module>
    import os, re, sys, pkg_resources
  File "/var/tmp/portage/dev-python/setuptools-0.6.6/work/distribute-0.6.6/pkg_resources.py", line 2643, in <module>
    add_activation_listener(lambda dist: dist.activate())
  File "/var/tmp/portage/dev-python/setuptools-0.6.6/work/distribute-0.6.6/pkg_resources.py", line 638, in subscribe
    callback(dist)
  File "/var/tmp/portage/dev-python/setuptools-0.6.6/work/distribute-0.6.6/pkg_resources.py", line 2643, in <lambda>
    add_activation_listener(lambda dist: dist.activate())
  File "/var/tmp/portage/dev-python/setuptools-0.6.6/work/distribute-0.6.6/pkg_resources.py", line 2149, in activate
    self.insert_on(path)
  File "/var/tmp/portage/dev-python/setuptools-0.6.6/work/distribute-0.6.6/pkg_resources.py", line 2245, in insert_on
    "A 0.7-series setuptools cannot be installed "
ValueError: A 0.7-series setuptools cannot be installed with distribute

Reproducible: Always

Steps to Reproduce:




# emerge --info
Portage 2.1.6.13 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.24-gentoo-r8 i686)
=================================================================
System uname: Linux-2.6.24-gentoo-r8-i686-Intel-R-_Xeon-TM-_CPU_2.40GHz-with-gentoo-1.12.13
Timestamp of tree: Mon, 14 Dec 2009 04:30:01 +0000
app-shells/bash:     4.0_p35
dev-lang/python:     2.6.4
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.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -pipe -mmmx -msse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /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="-march=pentium4 -O3 -pipe -mmmx -msse"
DISTDIR="/home/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
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="   "
SYNC="rsync://angelina.krawall.de/gentoo-portage"
USE="acl apache2 bash-completion bcmath berkdb blas bzip2 caps cli cracklib crypt ctype curl curlwrappers cxx dba dri exif expat ffmpeg filter fortran ftp gd gdbm gif hash iconv imagemagick imap ipv6 jpeg jpeg2k json latin1 mmx modules mpm-prefork mudflap mysql mysqli ncurses nls no-suexec nptl nptlonly ntp openmp overload pam pcntl pcre pdo pear perl png posix pppd python raw readline reflection ruby sensord session sharedmem simplexml slang snmp soap sockets spell spl sqlite sse sse2 ssl sysfs sysvipc tcpd tiff tokenizer truetype unicode unzip x86 xml xmlrpc xorg zip 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so 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" RUBY_TARGETS="ruby18" USERLAND="GNU"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Markus Tacker 2009-12-15 11:50:29 UTC
Happens on multiple machines.
Comment 2 David Abbott (RETIRED) gentoo-dev 2009-12-16 00:28:31 UTC
Are all the machines using -O3?
Comment 3 Florian Gerlach 2009-12-16 15:57:27 UTC
(In reply to comment #2)
> Are all the machines using -O3?
> 

Happens also on Machines with -O2!
Comment 4 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-12-19 21:43:19 UTC
I can't reproduce this bug.
Anyway try with dev-python/setuptools-0.6.8-r1 or newer.
Comment 5 Markus Tacker 2010-01-05 14:29:21 UTC
(In reply to comment #4)
> I can't reproduce this bug.
> Anyway try with dev-python/setuptools-0.6.8-r1 or newer.

 # emerge dev-python/setuptools
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-python/setuptools-0.6.8-r1
 * distribute-0.6.8.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.8.tar.gz to /var/tmp/portage/dev-python/setuptools-0.6.8-r1/work
>>> Source unpacked in /var/tmp/portage/dev-python/setuptools-0.6.8-r1/work
>>> Preparing source in /var/tmp/portage/dev-python/setuptools-0.6.8-r1/work/distribute-0.6.8 ...
 * Applying setuptools-0.6_rc7-noexe.patch ...                                                                                                                                                           [ ok ]
 * Applying distribute-0.6.8-C_locale_tests.patch ...                                                                                                                                                    [ ok ]
 * Applying distribute-0.6.8-fix_tests.patch ...                                                                                                                                                         [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-python/setuptools-0.6.8-r1/work/distribute-0.6.8 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-python/setuptools-0.6.8-r1/work/distribute-0.6.8 ...
 * Building of dev-python/setuptools-0.6.8-r1 with Python 2.6...
python2.6 setup.py build -b build-2.6
Traceback (most recent call last):
  File "setup.py", line 36, in <module>
    exec(open(init_path).read(), d)
  File "<string>", line 8, in <module>
  File "/var/tmp/portage/dev-python/setuptools-0.6.8-r1/work/distribute-0.6.8/setuptools/__init__.py", line 2, in <module>
    from setuptools.extension import Extension, Library
  File "/var/tmp/portage/dev-python/setuptools-0.6.8-r1/work/distribute-0.6.8/setuptools/extension.py", line 2, in <module>
    from setuptools.dist import _get_unpatched
  File "/var/tmp/portage/dev-python/setuptools-0.6.8-r1/work/distribute-0.6.8/setuptools/dist.py", line 6, in <module>
    from setuptools.command.install import install
  File "/var/tmp/portage/dev-python/setuptools-0.6.8-r1/work/distribute-0.6.8/setuptools/command/__init__.py", line 8, in <module>
    from setuptools.command import install_scripts
  File "/var/tmp/portage/dev-python/setuptools-0.6.8-r1/work/distribute-0.6.8/setuptools/command/install_scripts.py", line 3, in <module>
    from pkg_resources import Distribution, PathMetadata, ensure_directory
  File "/var/tmp/portage/dev-python/setuptools-0.6.8-r1/work/distribute-0.6.8/pkg_resources.py", line 2656, in <module>
    add_activation_listener(lambda dist: dist.activate())
  File "/var/tmp/portage/dev-python/setuptools-0.6.8-r1/work/distribute-0.6.8/pkg_resources.py", line 647, in subscribe
    callback(dist)
  File "/var/tmp/portage/dev-python/setuptools-0.6.8-r1/work/distribute-0.6.8/pkg_resources.py", line 2656, in <lambda>
    add_activation_listener(lambda dist: dist.activate())
  File "/var/tmp/portage/dev-python/setuptools-0.6.8-r1/work/distribute-0.6.8/pkg_resources.py", line 2162, in activate
    self.insert_on(path)
  File "/var/tmp/portage/dev-python/setuptools-0.6.8-r1/work/distribute-0.6.8/pkg_resources.py", line 2258, in insert_on
    "A 0.7-series setuptools cannot be installed "
ValueError: A 0.7-series setuptools cannot be installed with distribute
 *
 * ERROR: dev-python/setuptools-0.6.8-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3432:  Called distutils_src_compile
 *             environment, line  792:  Called python_execute_function 'building'
 *             environment, line 2885:  Called die
 * The specific snippet of code:
 *                       die "${failure_message}";
 *  The die message:
 *   Building failed with Python 2.6 in building() 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.8-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/setuptools-0.6.8-r1/temp/environment'.
Comment 6 Markus Tacker 2010-01-05 14:36:23 UTC
Guys,

I just found the solution.

A locally installed version of setuptools was the reason.

Removing it's egg solved the problem.