Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dev-java/commons-codec-1.3-r2 no _elementtree [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
houtworm
Guru
Guru


Joined: 08 Mar 2003
Posts: 391
Location: Den Haag, Netherlands

PostPosted: Mon Jul 21, 2008 10:35 pm    Post subject: dev-java/commons-codec-1.3-r2 no _elementtree [solved] Reply with quote

While updating commons-codec:

Code:
>>> Source unpacked.
>>> Compiling source in /mnt/data/tmp/portage/dev-java/commons-codec-1.3-r2/work ...
cElementTree rewriter
Traceback (most recent call last):
  File "/usr/lib/javatoolkit/bin/build-xml-rewrite", line 4, in <module>
    import xml.etree.cElementTree as et
  File "/usr/lib/python2.5/xml/etree/cElementTree.py", line 3, in <module>
    from _elementtree import *
ImportError: No module named _elementtree
 *
 * ERROR: dev-java/commons-codec-1.3-r2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3953:  Called java-pkg-2_src_compile
 *             environment, line 2153:  Called eant 'jar' '-f' 'build.xml'
 *             environment, line  798:  Called java-ant_bsfix
 *             environment, line 1969:  Called java-ant_bsfix_files './build.xml'
 *             environment, line 2009:  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";
 *  The die message:
 *   build-xml-rewrite failed
 *

I have used python-updater, deleted python 2.4, revdep-rebuild says all is ok, but error does not go away,
emerged python again (2.5.2-r5), error stays
Tried /dev/python/celementtree
..but still the error does not go away.

any hints what I can try?


--Kees
_________________
niemand is onbekwamer, dan een timmerman zonder hamer

Kees


Last edited by houtworm on Sun Sep 20, 2009 4:31 am; edited 1 time in total
Back to top
View user's profile Send private message
migol
n00b
n00b


Joined: 20 Jan 2008
Posts: 56
Location: Gdansk, Poland

PostPosted: Mon Jul 21, 2008 11:15 pm    Post subject: Reply with quote

looks like _elementtree have been removed/changed in python 2.5
Back to top
View user's profile Send private message
houtworm
Guru
Guru


Joined: 08 Mar 2003
Posts: 391
Location: Den Haag, Netherlands

PostPosted: Mon Jul 21, 2008 11:26 pm    Post subject: Reply with quote

migol wrote:
looks like _elementtree have been removed/changed in python 2.5


but /usr/lib/python2.5/xml/etree has still a
cElementTree.py
containing
Code:
from _elementtree import *

When I comment that out, I get another error:
Code:
>>> Source unpacked.
>>> Compiling source in /mnt/data/tmp/portage/dev-java/commons-codec-1.3-r2/work ...
cElementTree rewriter
Traceback (most recent call last):
  File "/usr/lib/javatoolkit/bin/build-xml-rewrite", line 20, in <module>
    gcp_sub = et.Element('classpath', path=gcp_str)
AttributeError: 'module' object has no attribute 'Element'

so I think that the module _elementtree is still needed
_________________
niemand is onbekwamer, dan een timmerman zonder hamer

Kees
Back to top
View user's profile Send private message
Arfrever
Bodhisattva
Bodhisattva


Joined: 29 Apr 2006
Posts: 2463
Location: 異世界

PostPosted: Tue Jul 22, 2008 2:30 am    Post subject: Reply with quote

Post the output of:
Code:
emerge --info
emerge -ptv python
Back to top
View user's profile Send private message
houtworm
Guru
Guru


Joined: 08 Mar 2003
Posts: 391
Location: Den Haag, Netherlands

PostPosted: Tue Jul 22, 2008 6:50 pm    Post subject: Reply with quote

emerge -ptv python:
Code:

# emerge -ptv python
WARNING: repository at /usr/portage is missing a repo_name entry

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild   R   ] dev-lang/python-2.5.2-r5  USE="berkdb gdbm ipv6 ncurses readline ssl threads -bootstrap -build -doc -examples -sqlite -tk -ucs2 -wininst" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB


emerge --info:
Code:

# emerge --info
WARNING: repository at /usr/portage is missing a repo_name entry
Portage 2.2_rc1 (default/linux/x86/2008.0, gcc-4.2.4, glibc-2.8_p20080602-r0, 2.6.25-gentoo-r6 i686)
=================================================================
System uname: Linux-2.6.25-gentoo-r6-i686-AMD_Athlon-TM-_XP_2200+-with-glibc2.0
Timestamp of tree: Mon, 21 Jul 2008 17:45:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -msse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /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/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -msse"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://mirror.scarlet-internet.nl/pub/gentoo/"
LANG="nl_NL@euro"
LDFLAGS="-Wl,-O1"
LINGUAS="nl"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"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="/mnt/data/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3now 3nowext X aalib acl alsa apache2 arts asf avi berkdb bitmap-fonts bzip2 cli cracklib crypt cups curl dbus dga dri encode fbcon ffmpeg font-server foomaticdb fortran gd gdbm gif gkrellm gphoto2 gpm gtk gtk2 iconv imlib ipv6 isdnlog java jpeg kde ldap libg++ libwww mad maildir mbox midi mmx mmxext motif mozilla mp3 mplayer mudflap mysql ncurses nls nptl nptlonly nsplugin nvidia ogg openmp pam pcre pdf pdflib perl png pop3d povray ppds pppd python qt quicktime readline reflection samba sasl sdl session speex spl sse ssl svga tcpd tiff truetype truetype-fonts type1-fonts unicode usb vorbis win32codecs wmv x86 xine xorg xvid zlib"
ALSA_CARDS="cs46xx"
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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"
KERNEL="linux"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"

LINGUAS="nl"
USERLAND="GNU"
VIDEO_CARDS="nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

_________________
niemand is onbekwamer, dan een timmerman zonder hamer

Kees
Back to top
View user's profile Send private message
migol
n00b
n00b


Joined: 20 Jan 2008
Posts: 56
Location: Gdansk, Poland

PostPosted: Wed Jul 23, 2008 11:08 am    Post subject: Reply with quote

let's see...

test number 1: post us result of "env | grep PYTHONPATH"
test number 2: run "python" and enter "from _elementtree import *" and post result (exit using Ctrl+D)
Back to top
View user's profile Send private message
houtworm
Guru
Guru


Joined: 08 Mar 2003
Posts: 391
Location: Den Haag, Netherlands

PostPosted: Thu Jul 24, 2008 12:23 am    Post subject: Reply with quote

Code:
# env | grep PYTHONPATH
#


nothing..


Code:
# python
Python 2.5.2 (r252:60911, Jul 17 2008, 09:07:27)
[GCC 4.2.4 (Gentoo 4.2.4 p1.0)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from _elementtree import *
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named _elementtree
>>>

_________________
niemand is onbekwamer, dan een timmerman zonder hamer

Kees
Back to top
View user's profile Send private message
houtworm
Guru
Guru


Joined: 08 Mar 2003
Posts: 391
Location: Den Haag, Netherlands

PostPosted: Thu Jul 31, 2008 10:26 pm    Post subject: Reply with quote

today python was upgraded to 2.5.2-r7 but it makes no difference.

The same error when upgrading libxcb:
Code:
[...]
ln -s -f /usr/share/xcb/xv.xml xv.xml
ln -s -f /usr/share/xcb/xvmc.xml xvmc.xml
/usr/bin/python ./c_client.py -p /usr/lib/python2.5/site-packages /usr/share/xcb/xproto.xml
/usr/bin/python ./c_client.py -p /usr/lib/python2.5/site-packages /usr/share/xcb/bigreq.xml
Traceback (most recent call last):
  File "./c_client.py", line 2, in <module>
    from xml.etree.cElementTree import *
  File "/usr/lib/python2.5/xml/etree/cElementTree.py", line 3, in <module>
    from _elementtree import *
ImportError: No module named _elementtree


so where do I get a module named _elementtree?
It is not in dev-python/elementtree
_________________
niemand is onbekwamer, dan een timmerman zonder hamer

Kees
Back to top
View user's profile Send private message
jharvell
n00b
n00b


Joined: 16 May 2006
Posts: 32

PostPosted: Sun Apr 05, 2009 2:05 am    Post subject: Reply with quote

try re-emerging dev-lang/python with USE flag xml, then re-emerge failing package
Back to top
View user's profile Send private message
houtworm
Guru
Guru


Joined: 08 Mar 2003
Posts: 391
Location: Den Haag, Netherlands

PostPosted: Sun Sep 20, 2009 4:31 am    Post subject: Reply with quote

Problem solved!
In /usr/local/include was a file: expat.h
That was an old file from 2004 and caused all the trouble.
Removed it and the errors were gone :-)
_________________
niemand is onbekwamer, dan een timmerman zonder hamer

Kees
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum