Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cài đặt xcb-proto ImportError: No module named _elementtree
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Languages
View previous topic :: View next topic  
Author Message
bdien
n00b
n00b


Joined: 01 Oct 2012
Posts: 18

PostPosted: Tue Nov 26, 2013 1:31 pm    Post subject: cài đặt xcb-proto ImportError: No module named _elementtree Reply with quote

Tìm kiếm trên rất nhiều rồi chưa sữa nó đươc. khi cài đặt đến packege xcb-proto và libxcb, tất cả điều bi lỗi
Đã thử chạy lênh "pyhton-updater" thêm flag "xml" vào, khi compile python thì phải thêm flag "build" mới thành công. Còn không thì compile python lỗi "expat".
bi lỗiImportError: No module named _elementtree
Tìm kiếm trên rất nhiều rồi nhưng chưa sữa nó đươc. khi cập nhất tới packege x11-proto/xcb-proto-1.9.3 và x11-libs/libxcb-1.9.3, tất cả điều bi lỗi
Quote:
/usr/bin/python2.7 /var/tmp/portage/x11-libs/libxcb-1.9.3/work/libxcb-1.9.3/src/c_client.py -p /usr/lib64/python2.7/site-packages /usr/share/xcb/damage.xml
Traceback (most recent call last):
File "/var/tmp/portage/x11-libs/libxcb-1.9.3/work/libxcb-1.9.3/src/c_client.py", line 2, in <module>
from xml.etree.cElementTree import *
File "/usr/lib64/python2.7/xml/etree/cElementTree.py", line 3, in <module>
Traceback (most recent call last):
File "/var/tmp/portage/x11-libs/libxcb-1.9.3/work/libxcb-1.9.3/src/c_client.py", line 2, in <module>
from xml.etree.cElementTree import *
File "/usr/lib64/python2.7/xml/etree/cElementTree.py", line 3, in <module>
Traceback (most recent call last):
File "/var/tmp/portage/x11-libs/libxcb-1.9.3/work/libxcb-1.9.3/src/c_client.py", line 2, in <module>
from xml.etree.cElementTree import *
File "/usr/lib64/python2.7/xml/etree/cElementTree.py", line 3, in <module>
from _elementtree import *
from _elementtree import *
ImportError: ImportError: No module named _elementtreeNo module named _elementtree

from _elementtree import *
ImportError: No module named _elementtree
Makefile:1278: recipe for target 'xproto.c' failed
make[1]: *** [xproto.c] Error 1
make[1]: *** Waiting for unfinished jobs....
Makefile:1278: recipe for target 'xc_misc.c' failed
make[1]: *** [xc_misc.c] Error 1
Traceback (most recent call last):
File "/var/tmp/portage/x11-libs/libxcb-1.9.3/work/libxcb-1.9.3/src/c_client.py", line 2, in <module>
from xml.etree.cElementTree import *
File "/usr/lib64/python2.7/xml/etree/cElementTree.py", line 3, in <module>
from _elementtree import *
ImportError: No module named _elementtree
Makefile:1278: recipe for target 'bigreq.c' failed
make[1]: *** [bigreq.c] Error 1
Makefile:1278: recipe for target 'composite.c' failed
make[1]: *** [composite.c] Error 1
Traceback (most recent call last):
File "/var/tmp/portage/x11-libs/libxcb-1.9.3/work/libxcb-1.9.3/src/c_client.py", line 2, in <module>
from xml.etree.cElementTree import *
File "/usr/lib64/python2.7/xml/etree/cElementTree.py", line 3, in <module>
from _elementtree import *
ImportError: No module named _elementtree
Makefile:1278: recipe for target 'damage.c' failed

Code:
emerge --info '=x11-libs/libxcb-1.9.3::gentoo

Quote:
Portage 2.2.7 (default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.8.2, glibc-2.17, 3.12.0-gentoo-1 x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-3.12.0-gentoo-1-x86_64-Intel-R-_Core-TM-_i3_CPU_M_330_@_2.13GHz-with-gentoo-2.2
KiB Mem: 1908312 total, 87176 free
KiB Swap: 2867196 total, 2867080 free
Timestamp of tree: Tue, 26 Nov 2013 02:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash: 4.2_p45
dev-java/java-config: 2.2.0
dev-lang/python: 2.7.5-r4, 3.2.5-r3, 3.3.3
dev-util/cmake: 2.8.12
dev-util/pkgconfig: 0.28
sys-apps/baselayout: 2.2
sys-apps/openrc: 0.12.4
sys-apps/sandbox: 2.6-r1
sys-devel/autoconf: 2.13, 2.69
sys-devel/automake: 1.11.6, 1.12.6, 1.13.4, 1.14
sys-devel/binutils: 2.23.2
sys-devel/gcc: 4.8.2
sys-devel/gcc-config: 1.8
sys-devel/libtool: 2.4.2
sys-devel/make: 4.0
sys-kernel/linux-headers: 3.11 (virtual/os-headers)
sys-libs/glibc: 2.17
Repositories: gentoo qt
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA Google-TOS'"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -O3 -march=corei7 -mno-movbe -mno-aes -mno-pclmul -mpopcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm -mno-avx -msse4.2 -msse4.1 -mno-rdrnd -mno-f16c -mno-fsgsbase --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=3072 -mtune=generic"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-pipe -O3 -march=corei7 -mno-movbe -mno-aes -mno-pclmul -mpopcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm -mno-avx -msse4.2 -msse4.1 -mno-rdrnd -mno-f16c -mno-fsgsbase --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=3072 -mtune=generic"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.iij.ad.jp/pub/linux/gentoo/ http://mirrors.163.com/gentoo/ http://ftp.daum.net/gentoo/ http://mirrors.sohu.com/gentoo/ http://mirrors.stuhome.net/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-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/qt"
USE="Broadcom Intel-SDP X a52 aac acl acpi alsa amd64 autoipd avahi berkdb binary bindist bluetooth branding bzip2 cairo cdda cdr cli colord connection-sharing crypt cxx dbus dconf dmx dri dts dvd dvdr eds emboss encode evo exif fam fbdev ffmpeg firefox flac fortran fpm g3dvl gd gdbm gif gles2 gmail gnome gnome-keyring gnome-online-accounts gpm gstreamer hscolour iconv icu imlib introspection ipv6 jabber jpeg lame laptop lcms ldap libnotify libsecret mad mmx mng modemmanager modules mp3 mp4 mpeg mudflap multicore multilib ncurses networkmanager nls nptl ntfsprogs ogg opengl openmp openvg pam pango pcre pdf pic png policykit ppds ppp profile pulseaudio qt4 readline savedconfig sdl session smp socialweb spell sse sse2 sse3 sse4.2 sse4_1 ssl ssse3 startup-notification svg systemd tcpd tiff truetype udev udisks unicode upcall upower usb vaapi vdpau vorbis wxwidgets x264 xa xcb xcomposite xml xv xvid xvmc yahoo zeroconf zlib" ABI_X86="64" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="dmraid lvm" 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 ublox ubx" GRUB_PLATFORMS="pc 32 coreboot multiboot efi-64" INPUT_DEVICES="evdev synaptics mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="vi en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="intel i965 vesa fbdev" 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"
USE_PYTHON="python2_7"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC
[/code]
Mọi người có cách nào không?
Back to top
View user's profile Send private message
bdien
n00b
n00b


Joined: 01 Oct 2012
Posts: 18

PostPosted: Fri Nov 29, 2013 1:54 am    Post subject: Reply with quote

Vấn đề của tôi đã được giải quyết bẳng cách thêm flag "build" vào khi compile python. cài đặt package dev-python/pip, sau đó cài các modules thiếu
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Languages 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