Summary: | x11-libs/libxcb-1.1.90.1 - ImportError: No module named _elementtree | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | J M W <ultip> |
Component: | [OLD] Library | Assignee: | Gentoo X packagers <x11> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | adam.walker, emitrax, jonas, lists, steffen.weber |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
J M W
2008-08-25 05:46:04 UTC
Does /usr/lib/python2.5/lib-dynload/_elementtree.so exist? No it doesn't. Do I have a borked setup? If you tell me what package that belongs to, I'll tell you whether my system thinks I have it or not. Libxcb doesn't appear to depend on anything python related, according to the ebuild, so is it a portage problem or what? remerged dev-python/elementtree, checked carefully to see if it created an _elementtree.so, which it did not. I then tried again to emerge libxcb and it failed again. It looks to me like this file is supposed to be created during the build process or something, or else there is some sort of script I need to run to get it to be created... Are you on python 2.4 or 2.5? /usr/lib/python2.5/lib-dynload/_elementtree.so is supposed to be built into python2.5, so you do have a python problem -- not an X11 problem. This may have been a quirk of python-2.5.2-r5 http://forums.gentoo.org/viewtopic-t-701259-highlight-python+elementtree.html so try upgrading your python2.5 (I've got -r6, and the elementtree module built fine) Emerged python-2.5-r6 and the _elementtree.so built. Emerged libxcb-1.1.90.1 with no problem. Thanks Wormo! Closing as wfm since we didn't actually make any changes to fix it. (In reply to comment #7) > Closing as wfm since we didn't actually make any changes to fix it. > Guys, i tried to emerge net-p2p/azureus and emerge fails with same error ImportError: No module named _elementtree, python-2.5.2-r8 here. I discovered that during dev-lang/python emerge module _elementtree fails with several errors, including: building '_elementtree' extension i686-pc-linux-gnu-gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -O2 -march=athlon-xp -pipe -fwrapv -DUSE_PYEXPAT_CAPI -I/usr/include -I. -I/var/tmp/portage/dev-lang/python-2.5.2-r8/work/Python-2.5.2/./Include -I. -IInclude -I./Include -I/usr/local/include -I/var/tmp/portage/dev-lang/python-2.5.2-r8/work/Python-2.5.2/Include -I/var/tmp/portage/dev-lang/python-2.5.2-r8/work/Python-2.5.2 -c -DUSE_PYEXPAT_CAPI -I/usr/include -I. -I/var/tmp/portage/dev-lang/python-2.5.2-r8/work/Python-2.5.2/./Include -I. -IInclude -I./Include -I/usr/local/include -I/var/tmp/portage/dev-lang/python-2.5.2-r8/work/Python-2.5.2/Include -I/var/tmp/portage/dev-lang/python-2.5.2-r8/work/Python-2.5.2 -c /var/tmp/portage/dev-lang/python-2.5.2-r8/work/Python-2.5.2/Modules/_elementtree.c -o build/temp.linux-i686-2.5/var/tmp/portage/dev-lang/python-2.5.2-r8/work/Python-2.5.2/Modules/_elementtree.o In file included from /var/tmp/portage/dev-lang/python-2.5.2-r8/work/Python-2.5.2/Modules/_elementtree.c:1833: /var/tmp/portage/dev-lang/python-2.5.2-r8/work/Python-2.5.2/./Include/pyexpat.h:19: error: expected specifier-qualifier-list before 'XML_Size' /var/tmp/portage/dev-lang/python-2.5.2-r8/work/Python-2.5.2/Modules/_elementtree.c: In function 'expat_default_handler': /var/tmp/portage/dev-lang/python-2.5.2-r8/work/Python-2.5.2/Modules/_elementtree.c:1998: error: 'struct PyExpat_CAPI' has no member named 'GetErrorLineNumber' /var/tmp/portage/dev-lang/python-2.5.2-r8/work/Python-2.5.2/Modules/_elementtree.c:1999: error: 'struct PyExpat_CAPI' has no member named 'GetErrorColumnNumber' /var/tmp/portage/dev-lang/python-2.5.2-r8/work/Python-2.5.2/Modules/_elementtree.c: In function 'xmlparser': /var/tmp/portage/dev-lang/python-2.5.2-r8/work/Python-2.5.2/Modules/_elementtree.c:2252: error: 'struct PyExpat_CAPI' has no member named 'ParserCreate_MM' /var/tmp/portage/dev-lang/python-2.5.2-r8/work/Python-2.5.2/Modules/_elementtree.c:2265: error: 'struct PyExpat_CAPI' has no member named 'ParserFree' /var/tmp/portage/dev-lang/python-2.5.2-r8/work/Python-2.5.2/Modules/_elementtree.c:2285: error: 'struct PyExpat_CAPI' has no member named 'SetUserData' /var/tmp/portage/dev-lang/python-2.5.2-r8/work/Python-2.5.2/Modules/_elementtree.c:2286: error: 'struct PyExpat_CAPI' has no member named 'SetElementHandler' /var/tmp/portage/dev-lang/python-2.5.2-r8/work/Python-2.5.2/Modules/_elementtree.c:2291: error: 'struct PyExpat_CAPI' has no member named 'SetDefaultHandlerExpand' /var/tmp/portage/dev-lang/python-2.5.2-r8/work/Python-2.5.2/Modules/_elementtree.c:2295: error: 'struct PyExpat_CAPI' has no member named 'SetCharacterDataHandler' /var/tmp/portage/dev-lang/python-2.5.2-r8/work/Python-2.5.2/Modules/_elementtree.c:2300: error: 'struct PyExpat_CAPI' has no member named 'SetCommentHandler' /var/tmp/portage/dev-lang/python-2.5.2-r8/work/Python-2.5.2/Modules/_elementtree.c:2305: error: 'struct PyExpat_CAPI' has no member named 'SetProcessingInstructionHandler' /var/tmp/portage/dev-lang/python-2.5.2-r8/work/Python-2.5.2/Modules/_elementtree.c:2310: error: 'struct PyExpat_CAPI' has no member named 'SetUnknownEncodingHandler' /var/tmp/portage/dev-lang/python-2.5.2-r8/work/Python-2.5.2/Modules/_elementtree.c: In function 'xmlparser_dealloc': /var/tmp/portage/dev-lang/python-2.5.2-r8/work/Python-2.5.2/Modules/_elementtree.c:2324: error: 'struct PyExpat_CAPI' has no member named 'ParserFree' /var/tmp/portage/dev-lang/python-2.5.2-r8/work/Python-2.5.2/Modules/_elementtree.c: In function 'expat_parse': /var/tmp/portage/dev-lang/python-2.5.2-r8/work/Python-2.5.2/Modules/_elementtree.c:2350: error: 'struct PyExpat_CAPI' has no member named 'Parse' /var/tmp/portage/dev-lang/python-2.5.2-r8/work/Python-2.5.2/Modules/_elementtree.c:2359: error: 'struct PyExpat_CAPI' has no member named 'GetErrorLineNumber' /var/tmp/portage/dev-lang/python-2.5.2-r8/work/Python-2.5.2/Modules/_elementtree.c:2360: error: 'struct PyExpat_CAPI' has no member named 'GetErrorColumnNumber' /var/tmp/portage/dev-lang/python-2.5.2-r8/work/Python-2.5.2/Modules/_elementtree.c: In function 'xmlparser_setevents': /var/tmp/portage/dev-lang/python-2.5.2-r8/work/Python-2.5.2/Modules/_elementtree.c:2520: error: 'struct PyExpat_CAPI' has no member named 'SetNamespaceDeclHandler' /var/tmp/portage/dev-lang/python-2.5.2-r8/work/Python-2.5.2/Modules/_elementtree.c:2529: error: 'struct PyExpat_CAPI' has no member named 'SetNamespaceDeclHandler' And thats the reason because the module is not found after emerge. The solution i found is reemerging dev-python/pyxml (contains some pyexpat code iirc) and dev-lang/python after that, module _elementtree compiled fine and that solved the problem. I hope this can be useful for anyone having the same issue. Regards, Martin Same problem here while emerging netbeans. Python~2.5.2-r8. i have the same problem, recompiling pyxml, python and elementtree does not resolve the issue. ****************************************** Traceback (most recent call last): File "./c_client.py", line 2, in <module> from xml.etree.cElementTree import * File "/usr/lib64/python2.5/xml/etree/cElementTree.py", line 3, in <module> Traceback (most recent call last): File "./c_client.py", line 2, in <module> from xml.etree.cElementTree import * File "/usr/lib64/python2.5/xml/etree/cElementTree.py", line 3, in <module> Traceback (most recent call last): File "./c_client.py", line 2, in <module> Traceback (most recent call last): from xml.etree.cElementTree import * File "/usr/lib64/python2.5/xml/etree/cElementTree.py", line 3, in <module> File "./c_client.py", line 2, in <module> from xml.etree.cElementTree import * File "/usr/lib64/python2.5/xml/etree/cElementTree.py", line 3, in <module> Traceback (most recent call last): File "./c_client.py", line 2, in <module> from xml.etree.cElementTree import * File "/usr/lib64/python2.5/xml/etree/cElementTree.py", line 3, in <module> from _elementtree import * ImportError: No module named _elementtree make[1]: *** [xc_misc.h] Error 1 make[1]: *** Waiting for unfinished jobs.... from _elementtree import * ImportError: No module named _elementtree make[1]: *** [xproto.h] Error 1 from _elementtree import * from _elementtree import * ImportErrorImportError: : No module named _elementtreeNo module named _elementtree make[1]: *** [bigreq.h] Error 1 from _elementtree import * make[1]: *** [composite.h] Error 1 ImportError: No module named _elementtree make[1]: *** [damage.h] Error 1 make[1]: Leaving directory `/var/tmp/portage/x11-libs/libxcb-1.1.90.1/work/libxcb-1.1.90.1/src' make: *** [all-recursive] Error 1 * * ERROR: x11-libs/libxcb-1.1.90.1 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3009: Called x-modular_src_compile * environment, line 3779: Called x-modular_src_make * environment, line 3815: Called die * The specific snippet of code: * emake || die "emake failed" * The die message: * emake failed * * 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/x11-libs/libxcb-1.1.90.1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/x11-libs/libxcb-1.1.90.1/temp/environment'. * >>> Failed to emerge x11-libs/libxcb-1.1.90.1, Log file: >>> '/var/tmp/portage/x11-libs/libxcb-1.1.90.1/temp/build.log' * Messages for package x11-libs/libxcb-1.1.90.1: * * ERROR: x11-libs/libxcb-1.1.90.1 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3009: Called x-modular_src_compile * environment, line 3779: Called x-modular_src_make * environment, line 3815: Called die * The specific snippet of code: * emake || die "emake failed" * The die message: * emake failed * * 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/x11-libs/libxcb-1.1.90.1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/x11-libs/libxcb-1.1.90.1/temp/environment'. * ************************************************************** emerge --info *************************************************************** Portage 2.1.6 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r0, 2.6.27-gentoo-r5 x86_64) ================================================================= System uname: Linux-2.6.27-gentoo-r5-x86_64-Intel-R-_Core-TM-2_Quad_CPU_@_2.40GHz-with-glibc2.2.5 Timestamp of tree: Tue, 09 Dec 2008 11:02:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p48 dev-java/java-config: 1.3.7-r1, 2.1.6-r1 dev-lang/python: 2.4.4-r13, 2.5.2-r8 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r8 dev-util/cmake: 2.6.2 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.3.0-r1 sys-apps/sandbox: 1.2.18.1-r3 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.19 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=nocona -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distcc distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="C" LDFLAGS="-Wl,-O1" MAKEOPTS="-j5" 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="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acl alsa amd64 apache2 avahi bash-completion berkdb bzip2 cairo cjk cli cracklib crypt cups device-mapper directfb dri dvdr dvdread encode fasttrack fat fbcon ffmpeg flac fontconfig fortran fuse gd gdbm glade glitz glut gnome gnomecanvas gnutella gnutls gpm gtk hal iconv ipv6 isdnlog java jpeg latex libnotify lua midi mmx mp3 mudflap multilib mysql ncurses nls nptl nptlonly ntfs opengl openmp pam pcre perl png pppd python readline reflection samba sdl session sndfile sourceview spell spl sqlite sse sse2 ssl svg sysfs tcpd threads tiff tk truetype unicode vcd vim-syntax xcb xinerama xml xorg xpm 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 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY *************************************************** I was havving the same problem and was running python 2.5.2-r8, upon looking at my build logs I noticed on the failure to build the elementtree module a complaint about not having pyexpat, so I enabled the expat flag on dev-lang/python, and it solved the problem, I now have the _elementtree.so file. Hope this helps someone. (In reply to comment #11) > I was havving the same problem and was running python 2.5.2-r8, upon looking at > my build logs I noticed on the failure to build the elementtree module a > complaint about not having pyexpat, so I enabled the expat flag on > dev-lang/python, and it solved the problem, I now have the _elementtree.so > file. > > Hope this helps someone. > Having same trouble with emerging x11-libs/libxcb Installing dev-python/celementtree dev-python/elementtree didn't help. Enabling expat flag and rebuilding dev-lang/python helped. Thx. (In reply to comment #12) > (In reply to comment #11) > > I was havving the same problem and was running python 2.5.2-r8, upon looking at > > my build logs I noticed on the failure to build the elementtree module a > > complaint about not having pyexpat, so I enabled the expat flag on > > dev-lang/python, and it solved the problem, I now have the _elementtree.so > > file. > > > > Hope this helps someone. > > I am having the same problem running Python 2.5.4-r2. There is no expat use flag in this version. Is there some other way to build in the functionality in this release? > > Having same trouble with emerging x11-libs/libxcb > Installing dev-python/celementtree dev-python/elementtree didn't help. Enabling > expat flag and rebuilding dev-lang/python helped. Thx. > (In reply to comment #13) > (In reply to comment #12) > > (In reply to comment #11) > > > I was havving the same problem and was running python 2.5.2-r8, upon looking at > > > my build logs I noticed on the failure to build the elementtree module a > > > complaint about not having pyexpat, so I enabled the expat flag on > > > dev-lang/python, and it solved the problem, I now have the _elementtree.so > > > file. > > > > > > Hope this helps someone. > > > > > I am having the same problem running Python 2.5.4-r2. There is no expat use > flag in this version. Is there some other way to build in the functionality in > this release? > > > > Having same trouble with emerging x11-libs/libxcb > > Installing dev-python/celementtree dev-python/elementtree didn't help. Enabling > > expat flag and rebuilding dev-lang/python helped. Thx. > > > I may have made a bit of a deal with the devil on this one. Unmasked Python 2.6.1 and emerged. There was still no expat flag, but after emerge the _elementtree.so showed up. Initially tried python 2.6-r5, but that did not help. libxcb now emerges fine (In reply to comment #14) > (In reply to comment #13) > > (In reply to comment #12) > > > (In reply to comment #11) > > > > I was havving the same problem and was running python 2.5.2-r8, upon looking at > > > > my build logs I noticed on the failure to build the elementtree module a > > > > complaint about not having pyexpat, so I enabled the expat flag on > > > > dev-lang/python, and it solved the problem, I now have the _elementtree.so > > > > file. > > > > > > > > Hope this helps someone. > > > > > > > > I am having the same problem running Python 2.5.4-r2. There is no expat use > > flag in this version. Is there some othePython 2.5.4-r2r way to build in the functionality in > > this release? > > > > > > Having same trouble with emerging x11-libs/libxcb > > > Installing dev-python/celementtree dev-python/elementtree didn't help. Enabling > > > expat flag and rebuilding dev-lang/python helped. Thx. > > > > > > > I may have made a bit of a deal with the devil on this one. Unmasked Python > 2.6.1 and emerged. There was still no expat flag, but after emerge the > _elementtree.so showed up. Initially tried python 2.6-r5, but that did not > help. libxcb now emerges fine > just enable the xml flag on the Python 2.5.4-r2 version and it creates it. (In reply to comment #15) > (In reply to comment #14) > > (In reply to comment #13) > > > (In reply to comment #12) > > > > (In reply to comment #11) > > > > > I was havving the same problem and was running python 2.5.2-r8, upon looking at > > > > > my build logs I noticed on the failure to build the elementtree module a > > > > > complaint about not having pyexpat, so I enabled the expat flag on > > > > > dev-lang/python, and it solved the problem, I now have the _elementtree.so > > > > > file. > > > > > > > > > > Hope this helps someone. > > > > > > > > > > > I am having the same problem running Python 2.5.4-r2. There is no expat use > > > flag in this version. Is there some othePython 2.5.4-r2r way to build in the functionality in > > > this release? > > > > > > > > Having same trouble with emerging x11-libs/libxcb > > > > Installing dev-python/celementtree dev-python/elementtree didn't help. Enabling > > > > expat flag and rebuilding dev-lang/python helped. Thx. > > > > > > > > > > > I may have made a bit of a deal with the devil on this one. Unmasked Python > > 2.6.1 and emerged. There was still no expat flag, but after emerge the > > _elementtree.so showed up. Initially tried python 2.6-r5, but that did not > > help. libxcb now emerges fine > > > just enable the xml flag on the Python 2.5.4-r2 version and it creates it. All of my Python emerges were performed with the XML flag on.That did not create it. (In reply to comment #16) > (In reply to comment #15) > > (In reply to comment #14) > > > (In reply to comment #13) > > > > (In reply to comment #12) > > > > > (In reply to comment #11) > > > > > > I was havving the same problem and was running python 2.5.2-r8, upon looking at > > > > > > my build logs I noticed on the failure to build the elementtree module a > > > > > > complaint about not having pyexpat, so I enabled the expat flag on > > > > > > dev-lang/python, and it solved the problem, I now have the _elementtree.so > > > > > > file. > > > > > > > > > > > > Hope this helps someone. > > > > > > > > > > > > > > I am having the same problem running Python 2.5.4-r2. There is no expat use > > > > flag in this version. Is there some othePython 2.5.4-r2r way to build in the functionality in > > > > this release? > > > > > > > > > > Having same trouble with emerging x11-libs/libxcb > > > > > Installing dev-python/celementtree dev-python/elementtree didn't help. Enabling > > > > > expat flag and rebuilding dev-lang/python helped. Thx. > > > > > > > > > > > > > > > I may have made a bit of a deal with the devil on this one. Unmasked Python > > > 2.6.1 and emerged. There was still no expat flag, but after emerge the > > > _elementtree.so showed up. Initially tried python 2.6-r5, but that did not > > > help. libxcb now emerges fine > > > > > just enable the xml flag on the Python 2.5.4-r2 version and it creates it. > > All of my Python emerges were performed with the XML flag on.That did not > create it. > I had the same problem and resolved it by upgrading dev-libs/expat-1.95.8 to dev-libs/expat-2.0.1. I'd say this is still a bug as compiling libxcb didn't work until I added the +expat USE flag and recompiled python. Also, the 2.6 version of python doesn't show the expat USE flag as being used yet once I added that USE flag and recompiled python 2.6, libxcb built with no problems. There should be at least a USE flag dependency on libxcb (for +expat on python), because otherwise nobody will know why libxcb is failing to build (unless they look at this bug :-). Could the owner of this bug please reopen? Pretty please? :-) _elementtree.so does not exist on my system just /usr/lib/python2.6/lib-dynload/_elementtree_failed.so. This is probably a python bug and not really related to xcb. Please reopen and possibly reassign. I have the same problem on a fresh install dev-lang/python-2.6.4-r1 x11-libs/libxcb adding expat to USE doesn't help. Downgrading python to 2.6.4 doesn't either. Don't know how to build libxcb (In reply to comment #20) > I have the same problem on a fresh install dev-lang/python-2.6.4-r1 > x11-libs/libxcb > > adding expat to USE doesn't help. Downgrading python to 2.6.4 doesn't either. > Don't know how to build libxcb > Please check USE flag on dev-lang/python. If "build" flag is selected, "xml" flag does not become valid. --------- # less /var/db/pkg/dev-lang/python-2.6.4-r1/python-2.6.4-r1.ebuild ---- src_configure() { # Disable extraneous modules with extra dependencies. if use build; then export PYTHON_DISABLE_MODULES="dbm _bsddb gdbm _curses _curses_p anel readline _sqlite3 _tkinter _elementtree pyexpat" export PYTHON_DISABLE_SSL="1" else # dbm module can be linked against berkdb or gdbm. # Defaults to gdbm when both are enabled, #204343. local disable use berkdb || use gdbm || disable+=" dbm" use berkdb || disable+=" _bsddb" use gdbm || disable+=" gdbm" use ncurses || disable+=" _curses _curses_panel" use readline || disable+=" readline" use sqlite || disable+=" _sqlite3" use ssl || export PYTHON_DISABLE_SSL="1" use tk || disable+=" _tkinter" use xml || disable+=" _elementtree pyexpat" # _elementtree uses pyexpat. export PYTHON_DISABLE_MODULES="${disable}" ----- /etc/portage/package.use : dev-lang/python -* -berkdb doc gdbm ipv6 ncurses readline ssl threads wide-u nicode xml build examples sqlite tk -wininst After I emerge python-2.6.4-r1 then # ls -l /usr/lib/python2.6/lib-dynload/_elementtree* ls: cannot access /usr/lib/python2.6/lib-dynload/_elementtree*: No such file or directory /etc/portage/package.use : dev-lang/python -* -berkdb doc gdbm ipv6 ncurses readline ssl threads wide-u nicode xml -build examples sqlite tk -wininst After I emerge python-2.6.4-r1 then # ls -l /usr/lib/python2.6/lib-dynload/_elementtree* -rwxr-xr-x 1 root root 43668 Apr 27 23:48 /usr/lib/python2.6/lib-dynload/_elementtree.so I just don't want to create new bug. dev-libs/gobject-introspection-0.10.8 doesn't install without dev-python/elementtree. When I tried to update dev-libs/gobject-introspection from 0.10.0 version to 0.10.8, I saw "ImportError: No module named _elementtree". Emerge isn't check installed dev-python/elementtree or not. Got the same problem with the same package. This time it is: x11-libs/libxcb-1.10 dev-lang/python-2.7.5-r3 This version of python does not have expat use flag. I don't have build use flag in my make.conf. Emerging dev-python/pyxml doesn't help. My python is built with xml use flag. Emerged dev-python/elementtree - still no effect... "eselect python set python3.3" solved my problem. |