When trying to (indirectly) emerge dev-python/feedparser-5.1 (via emerge gwibber), feedparser fails with: * Building of dev-python/feedparser-5.1 with CPython 3.2... python3.2 setup.py build -b build Traceback (most recent call last): File "setup.py", line 1, in <module> from setuptools import setup ImportError: No module named setuptools Reproducible: Always Steps to Reproduce: 1.emerge gwibber 2. 3. Actual Results: [...] * Building of dev-python/feedparser-5.1 with CPython 3.2... python3.2 setup.py build -b build Traceback (most recent call last): File "setup.py", line 1, in <module> from setuptools import setup ImportError: No module named setuptools * ERROR: dev-python/feedparser-5.1 failed (compile phase): * Building failed with CPython 3.2 in distutils_building() function * * Call stack: * ebuild.sh, line 85: Called src_compile * environment, line 5085: Called distutils_src_compile * environment, line 1266: Called python_execute_function '-s' 'distutils_building' Portage 2.1.10.49 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.14.1-r2, 3.2.6-gentoo x86_64) ================================================================= System uname: Linux-3.2.6-gentoo-x86_64-Intel-R-_Core-TM-_i7-2600_CPU_@_3.40GHz-with-gentoo-2.1 Timestamp of tree: Fri, 24 Feb 2012 21:15:01 +0000 app-shells/bash: 4.2_p20 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.2-r3, 3.2.2 dev-util/cmake: 2.8.7-r3 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.1 sys-apps/openrc: 0.9.9 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.3 sys-devel/binutils: 2.22-r1 sys-devel/gcc: 4.5.3-r2 sys-devel/gcc-config: 1.5-r2 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r3 sys-kernel/linux-headers: 3.2 (virtual/os-headers) sys-libs/glibc: 2.14.1-r2 Repositories: gentoo scrill ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr" FFLAGS="" GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.mneisen.org/ http://de-mirror.org/distro/gentoo/ ftp://de-mirror.org/distro/gentoo/ http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ ftp://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://mirror.jamit.de/gentoo/ http://mirror.netcologne.de/gentoo/ ftp://mirror.netcologne.de/gentoo/ " LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="de en" MAKEOPTS="-j9" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/scrill" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X a52 aac aalib acl acpi aim alsa amd64 apng audiofile bash-completion bcmath berkdb blas bluetooth branding bzip2 cairo calendar cdb cdda cddb cdinstall cdparanoia cdr cli consolekit cracklib crypt css cups curl curlwrappers cvs cxx dbus djvu dri dts dv dvb dvd dvdr eds encode enscript evo exif expat fam ffmpeg fftw firefox flac fontconfig foomaticdb fortran ftp gd gdbm gdu geoip gif gimp git glut gmp gnome gnome-keyring gnome-online-accounts gnuplot gnutls gphoto2 gpm gps graphviz gsl gsm gstreamer gtk gtk3 gtkhtml gudev gzip handbook hbci hddtemp hdf5 iconv icq icu idn imagemagick imap imlib ipv6 jabber jack java java6 javascript jbig jingle joystick jpeg jpeg2k kde lame lapack lash latex lcms ldap libcaca libedit libffi libnotify libsamplerate libwww lm_sensors lua lzma lzo mad maildir matroska memlimit mercurial mhash mikmod milter mime mmap mms mmx mng modplug modules mp3 mp4 mpeg mpi mplayer msn mtp mudflap multilib musepack musicbrainz mysql mysqli nas ncurses netcdf nls nntp nocd nptl nptlonly nsplugin ocr odbc offensive ofx ogg openal openexr opengl openmp osc oscar pam pcntl pcre pda pdf php plasma plotutils png policykit postgres ppds pppd pulseaudio python qt3support qt4 quicktime raw rdesktop readline recode rss samba sasl scanner sdl semantic-desktop session sharedmem shorten slang slp smp sndfile snmp soap sockets sound sox speex spell sqlite sqlite3 sse sse2 sse3 ssl startup-notification subversion suid svg sysfs syslog szip taglib tcl tcpd themes theora threads tiff timidity tk tokenizer truetype unicode usb v4l vala vcd videos vim-syntax vnc vorbis vpn vpnc wavpack webkit wmf wxwidgets x264 xattr xcb xcomposite xface xft xine xinerama xml xmlrpc xmp xmpp xorg xosd xpm xscreensaver xsl xulrunner xv xvid yahoo yaz zeitgeist zeroconf 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 303121 [details] build.log build.log
Could not replicate; localhost dev-python # e Available Python interpreters: -------------------------------- [3] python2.7 [4] python3.1 * [5] python3.2 localhost dev-python # emerge gwibber >>> Emerging (1 of 9) dev-python/gnome-python-desktop-base-2.32.0 >>> Emerging (2 of 9) dev-python/python-distutils-extra-2.31 from progress >>> Emerging (3 of 9) dev-python/feedparser-5.1 --------------------------------------------------------- >>> Installing (3 of 9) dev-python/feedparser-5.1 localhost dev-python # e5 (eselect python set 5) python-3.2 globally localhost dev-python # emerge feedparser ------------------------------------------------- >>> Verifying ebuild manifests >>> Emerging (1 of 1) dev-python/feedparser-5.1 >>> Jobs: 0 of 1 complete, 1 running Load avg: 0.22, 0.40, >>> Installing (1 of 1) dev-python/feedparser-5.1 In the ebuild DEPEND="dev-python/setuptools" I don't know what you've done but it's pretty cunning. It's not a progress overlay dev-python/feedparser-5.1. Only thing not retried out is your eselected python and the ebuilds should take of that as well. Most odd
Hmm, I haven't got python 3.1 installed and python 2.7 selected: eselect python list Available Python interpreters: [1] python2.7 * [2] python3.2 Might this be the problem?
well no, The problem seems to be that setuptools hasn't been installed into the python3.2 dir under site-packages. I would think if you eselected python3.2 and emerged setuptools, then emerged feedparser it will be happy. Holes like this the python team would prefer to close
(In reply to comment #4) > well no, The problem seems to be that setuptools hasn't been installed into > the python3.2 dir under site-packages. I would think if you eselected > python3.2 and emerged setuptools, then emerged feedparser it will be happy. > Holes like this the python team would prefer to close Yes, that did the trick - eselecting python to 3.2, emerge -1 setuptools and changing back to 2.7, now it's compiling just fine.
Mark: I suggest you run python-updater to ensure that your python modules are installed consistently for both of your installed versions of python.
*** Bug 434836 has been marked as a duplicate of this bug. ***