| Summary: | ImportError: No module named _elementtree : emerge failed on dev-java/commons-codec-1.4 because of Python | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | carlino <del_carlino> |
| Component: | [OLD] Development | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | AMD64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | log emerge downgrade python | ||
|
Description
carlino
2010-05-30 16:01:59 UTC
(In reply to comment #0) > Hello, > running a regular and ordinary " emerge -Du world", I'm bumping into this ugly > failure : > more /var/log/portage/dev-java:commons-codec-1.4:20100530-152826.log > * CPV: dev-java/commons-codec-1.4 > * REPO: gentoo > * USE: amd64 build elibc_glibc kernel_linux multilib source userland_GNU > * Using: icedtea6-bin > >>> Unpacking source... > >>> Unpacking commons-codec-1.4-src.tar.gz to /var/tmp/portage/dev-java/commons-codec-1.4/work > tar: A lone zero block at 1804 > >>> Source unpacked in /var/tmp/portage/dev-java/commons-codec-1.4/work > >>> Preparing source in /var/tmp/portage/dev-java/commons-codec-1.4/work/commons-codec-1.4-src ... > >>> Source prepared. > >>> Configuring source in /var/tmp/portage/dev-java/commons-codec-1.4/work/commons-codec-1.4-src ... > cElementTree rewriter > Traceback (most recent call last): > File "/usr/lib64/javatoolkit/bin/build-xml-rewrite", line 4, in <module> > import xml.etree.cElementTree as et > File "/usr/lib64/python2.6/xml/etree/cElementTree.py", line 3, in <module> > from _elementtree import * > ImportError: No module named _elementtree > * ERROR: dev-java/commons-codec-1.4 failed: > * build-xml-rewrite failed > * > * Call stack: > * ebuild.sh, line 54: Called src_configure > * environment, line 4406: Called java-ant-2_src_configure > * environment, line 2207: Called java-ant_bsfix > * environment, line 2229: Called java-ant_bsfix_files './build.xml' > * environment, line 2269: Called die > * The specific snippet of code: > * ${rewriter4} ${gcp} ${enc} -c "${JAVA_PKG_BSFIX_SOURCE_TAGS}" > source ${want_source} -c "${JAVA_PKG_BSFIX_TARGET_TAGS}" target ${want_target} > "${@}" || die "build-xml-rewrite failed > "; > > emerge --info =dev-java/commons-codec-1.4 > Portage 2.1.8.3 (default/linux/amd64/10.0/desktop, gcc-4.4.3, glibc-2.10.1-r1, > 2.6.32-gentoo-r7 x86_64) > ================================================================= > System Settings > ================================================================= > System uname: > Linux-2.6.32-gentoo-r7-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9400_@_2.66GHz-with-gentoo-1.12.13 > Timestamp of tree: Fri, 28 May 2010 22:00:01 +0000 > distcc 3.1 x86_64-pc-linux-gnu [enabled] > app-shells/bash: 4.0_p37 > dev-java/java-config: 2.1.10 > dev-lang/python: 2.6.5-r2, 3.1.2-r3 > 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.65 > sys-devel/automake: 1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.1 > sys-devel/binutils: 2.18-r3 > sys-devel/gcc: 4.3.4, 4.4.3-r2 > sys-devel/gcc-config: 1.4.1 > sys-devel/libtool: 2.2.6b > virtual/os-headers: 2.6.30-r1 > ACCEPT_KEYWORDS="amd64" > ACCEPT_LICENSE="* -@EULA Q3AEULA dlj-1.1 sun-bcla-java-vm" > CBUILD="x86_64-pc-linux-gnu" > CFLAGS="-O2 -march=nocona -pipe" > 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 /var/lib/hsqldb" > CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ > /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" > CXXFLAGS="-O2 -march=nocona -pipe" > DISTDIR="/usr/portages/packages" > FEATURES="assume-digests distcc distlocks fixpackages news parallel-fetch > protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" > GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ > http://213.186.33.37/gentoo-distfiles/ ftp://213.186.33.38/gentoo-distfiles/ > ftp://213.186.33.37/gentoo-distfiles/ http://mirror.qubenet.net/mirror/gentoo/" > LANG="fr_FR@euro" > LDFLAGS="-Wl,-O1" > LINGUAS="fr fr_FR" > 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" > SYNC="rsync://rsync.gentoo.org/gentoo-portage" > USE="3dnow 3dnowext 64bit X a52 aac abiword accessibility acl acpi alisp alsa > amazon amd64 antlr apache2 arts asyncns bcel berkdb bitmap-fonts bluetooth > branding bsf build bzip2 cairo caps cdda cdr cli clucene commonslogging > commonsnet community consolekit corefonts cracklib crypt css ctype cups cxx > dbus devfs-compat device-mapper dlloader dri dso dts dvd dvdr dvdread eds > embedded emboss encode esd exif external-fuse extras fam fbcondecor ffmpeg > firefox flac fltk fortran fts3 gcrypt gd gdbm gdu gecko gif gnome gpm gstreamer > gtk hal handbook hardcoded-tables iconv ipv6 isdnlog jack java javamail jce > jdepend jpeg jsch kde kdrive kerberos lcms ldap libburn libclamav libg++ > libnotify libsamplerate lirc log4j mad midi mikmod mmx mmxext mng modplug > modules mp3 mp4 mpeg mudflap multilib musepack mysql ncurses nls nptl nptlonly > nsplugin oav ogg opengl openmp oro oss pam pango pcre pdf perl pg-intdatetime > png policykit poppler-data postgres ppds pppd pulseaudio python qt3 qt3support > qt4 quicktime raptor readline reflection regexp resolver samba sasl sdl > semantic-desktop session sha512 sndfile source speex spell spl sqlite sse sse2 > ssl ssse3 startup-notification svg swat sysfs tcpd theora threads threadsafe > tiff truetype truetype-fonts udev unicode usb utils v4l video vorbis wav > wavpack webdav-neon webmin-minimal x264 xcb xine xml xorg xpdf-headers > xscreensaver 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 copy dshare dsnoop empty extplug file > hooks ioplug ladspa lfloat linear meter mulaw multi null plug rate route share > shm" 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" ELIBC="glibc" > INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk > hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr fr_FR" > RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon vesa vga" > 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, FFLAGS, INSTALL_MASK, LC_ALL, > PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, > PORTDIR_OVERLAY > > # python -c 'import xml.etree.ElementTree' doesn't return nothing > > # python -c 'import xml.etree.cElementTree' > Traceback (most recent call last): > File "<string>", line 1, in <module> > File "/usr/lib64/python2.6/xml/etree/cElementTree.py", line 3, in <module> > from _elementtree import * > ImportError: No module named _elementtree > > It looks like Bugzilla Bug 235650, but couldn't fix my problem from it > > Reproducible: Always > > Steps to Reproduce: > 1.emerge dev-java/commons-codec > 2. > 3. > > Actual Results: > Traceback (most recent call last): > File "/usr/lib64/javatoolkit/bin/build-xml-rewrite", line 4, in <module> > import xml.etree.cElementTree as et > File "/usr/lib64/python2.6/xml/etree/cElementTree.py", line 3, in <module> > from _elementtree import * > ImportError: No module named _elementtree > * ERROR: dev-java/commons-codec-1.4 failed: > * build-xml-rewrite failed > * > * Call stack: > * ebuild.sh, line 54: Called src_configure > * environment, line 4406: Called java-ant-2_src_configure > * environment, line 2207: Called java-ant_bsfix > * environment, line 2229: Called java-ant_bsfix_files './build.xml' > * environment, line 2269: Called die > * The specific snippet of code: > * ${rewriter4} ${gcp} ${enc} -c "${JAVA_PKG_BSFIX_SOURCE_TAGS}" > source ${want_source} -c "${JAVA_PKG_BSFIX_TARGET_TAGS}" target ${want_target} > "${@}" || die "build-xml-rewrite failed > "; > > > Expected Results: > compilation fine of dev-java/commons-codec > > [ebuild R ] dev-lang/python-3.1.2-r3 USE="build gdbm ipv6 ncurses readline > sqlite ssl threads (wide-unicode) xml -doc -examples -tk -wininst" > /usr/lib/python2.6/lib-dynload/_elementtree.so does not exist Reinstall dev-lang/python:2.6 and attach build log of dev-lang/python:2.6. Created attachment 233537 [details]
log emerge downgrade python
there's also a dev-lang:python-2.6.5-r2:20100530-164830.log built at the very same time
(In reply to comment #3) > Created an attachment (id=233537) [details] > log emerge downgrade python > > there's also a dev-lang:python-2.6.5-r2:20100530-164830.log built at the very > same time > I've downgraded python to 2.6.5, re-emerged -pvDu world, and this time, I could emerged all packages nicely ! But python 3 was not available anymore |