====================================================================== FAIL: test_all (test.test___all__.AllTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/tmp/portage/dev-lang/python-2.6.5-r2/work/Python-2.6.5/Lib/test/test___all__.py", line 103, in test_all self.check_all(modname) File "/var/tmp/portage/dev-lang/python-2.6.5-r2/work/Python-2.6.5/Lib/test/test___all__.py", line 39, in check_all modname, e.__class__.__name__, e)) AssertionError: __all__ failure in xml: AttributeError: 'module' object has no attribute 'xslt' ---------------------------------------------------------------------- Ran 1 test in 0.234s FAILED (failures=1) test test___all__ failed -- Traceback (most recent call last): File "/var/tmp/portage/dev-lang/python-2.6.5-r2/work/Python-2.6.5/Lib/test/test___all__.py", line 103, in test_all self.check_all(modname) File "/var/tmp/portage/dev-lang/python-2.6.5-r2/work/Python-2.6.5/Lib/test/test___all__.py", line 39, in check_all modname, e.__class__.__name__, e)) AssertionError: __all__ failure in xml: AttributeError: 'module' object has no attribute 'xslt' make: *** [test] Error 1 * ERROR: dev-lang/python-2.6.5-r2 failed: * make test failed * * Call stack: * ebuild.sh, line 54: Called src_test * environment, line 5413: Called die * The specific snippet of code: * EXTRATESTOPTS="-w" make test || die "make test failed"; * * If you need support, post the output of 'emerge --info =dev-lang/python-2.6.5-r2', * the complete build log and the output of 'emerge -pqv =dev-lang/python-2.6.5-r2'. * The complete build log is located at '/var/tmp/portage/dev-lang/python-2.6.5-r2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-lang/python-2.6.5-r2/temp/environment'. * S: '/var/tmp/portage/dev-lang/python-2.6.5-r2/work/Python-2.6.5' Reproducible: Always Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.10.1-r1, 2.6.32-gentoo-r7-stable x86_64) ================================================================= System uname: Linux-2.6.32-gentoo-r7-stable-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T8100_@_2.10GHz-with-gentoo-2.0.1 Timestamp of tree: Sat, 22 May 2010 17:45:02 +0000 app-shells/bash: 4.0_p37 dev-java/java-config: 2.1.10 dev-lang/python: 2.6.4-r1 dev-python/pycrypto: 2.1.0_beta1 dev-util/cmake: 2.6.4-r3 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.6.0-r1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.18-r3 sys-devel/gcc: 4.3.4 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 dlj-1.1 PUEL cadsoft skype-eula" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -O2 -pipe -msse4.1" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/bin/mygenkernel /usr/sbin/run-crons /usr/share/X11/xkb /usr/share/cairo-dock/plug-ins/wifi/wifi /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/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=core2 -O2 -pipe -msse4.1" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests collision-protect distlocks fixpackages multilib-strict news parallel-fetch protect-owned sandbox sfperms strict test unmerge-logs unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://de-mirror.org/distro/gentoo/ ftp://mirror.netcologne.de/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo" LANG="C" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,relro -Wl,-z,now" LINGUAS="en de" MAKEOPTS="-j5" PKGDIR="/home/ftp/binpkg/" PORTAGE_COMPRESS="" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--timeout=500" 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" PORTDIR_OVERLAY="/var/lib/layman/DuPol /var/lib/layman/alon-barlev /var/lib/layman/sping /var/lib/layman/science /var/lib/layman/sunrise /usr/local/portage/g-ctan /usr/local/portage/modified /usr/local/portage/own" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="X X509 Xaw3d a52 aac aalib accessibility acl acpi alsa amd64 amr amrnb amrr amrwb apm async audacious audiofile bash-completion battery berkdb bindist bl bluetooth branding bzip2 cairo cardbus cdaudio cdda cdinstall cjk cli consolekit cracklib crypt css ctype cups curl cxx dbus devil dga directfb dri dts dv dvd dvdr eds encode evo exchange exif fam fame fbcon fbcondecor fbsplash ffmpeg flac fontforge foomaticdb fortran ftp gd gdbm gif gimp git glade glitz gmp gphoto2 gs gsm gstreamer gtk gtkhtml guile hal hddtemp hdf5 iconv icq icu idn ieee1394 imagemagick imap imlib iproute2 jack java javascript jpeg jpeg2k kerberos keyscrub kino kpathsea lame lapack laptop latex lcms libcaca libnotify libsamplerate libsexy libv4l2 libwww live lm_sensors logrotate loop-aes lzma lzo mad memlimit mikmod mime mjpeg mmx mmxext mng modules mono motif mp2 mp3 mp4 mpeg mplayer mudflap multilib musepack ncurses nls nntp nowin nptl nptlonly nsplugin ntp nuv nvidia ods ogg opengl openmp opensslcrypt pam pch pcmcia pcre pda pdf perl plotutils png posix ppds pppd print python qt3support quicktime readline reflection rtsp ruby rubytests samba sasl schroedinger sdl server session simplexml slang sndfile soap sockets sou speex spell spl sse sse2 sse3 sse4.1 ssl ssse3 startup-notification stream subversion svg swat sysfs syslog system-sqlite tcpd tga theora threads tiff truetype unicode usb userlocales v4l v4l2 vcd vdpau vim-syntax vim-with-x vorbis wcwidth wifi winbind wma wmf wxwindows x264 xanim xcomposite xfce xinetd xls xml xmp xorg xpm xsl xterm-color xulrunner xv xvid xvmc zlib" ALSA_CARDS="hda-intel mpu401" 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" CAMERAS="fuji ptp2" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" 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, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS_FLAGS
Created attachment 232489 [details] Complete build log
Same failure on my two amd64 boxes (one multilib, another nomultilib).
You probably have dev-python/pyxml installed.
(In reply to comment #3) > You probably have dev-python/pyxml installed. > Yes, I do. It's a DEP of several packages (synce-sync-engine, layman, iso-codes, javatoolkit). What do you expect me to do? Is it known that tests fail in this case?
Please temporarily uninstall dev-python/pyxml and check if this bug still occur.
(In reply to comment #5) > Please temporarily uninstall dev-python/pyxml and check if this bug still > occur. After uninstalling pyxml the testsuite passes.
*** Bug 332827 has been marked as a duplicate of this bug. ***
So dev-lang/python should block the installation of dev-python/pyxml since pyxml causes python to fail. Do you want a separate bug report for that enhancement request?
I've fixed this by skipping the test for now (in 2.6.6-r1).
Is there a reason pyxml is not installing its xslt components? That would address this issue as well.
*** Bug 347935 has been marked as a duplicate of this bug. ***
This failure is still present in dev-lang/python-2.6.6-r2: test___all__ test test___all__ failed -- Traceback (most recent call last): File "/var/tmp/portage/dev-lang/python-2.6.6-r2/work/Python-2.6.6/Lib/test/test___all__.py", line 103, in test_all self.check_all(modname) File "/var/tmp/portage/dev-lang/python-2.6.6-r2/work/Python-2.6.6/Lib/test/test___all__.py", line 39, in check_all modname, e.__class__.__name__, e)) AssertionError: __all__ failure in xml: AttributeError: 'module' object has no attribute 'xslt'
Created attachment 287463 [details, diff] Patch to the pyxml ebuild to make the python test pass This still affects dev-lang/python-2.7.1-r1. But as comment #10 suggests, a simple patch to the pyxml ebuild (and a patch to the code that is then installed, as it apparently includes some sort of syntax error under Python 2.7), allow this test to pass. The patch to the ebuild is attached; I'll add the patch to the pyxml code momentarily.
Created attachment 287465 [details, diff] Fixes a syntax error in xslt/Stylesheet.py The "syntax error" that Portage complains about at the byte-compiling stage is that apparently "as" is a reserved word in Python 2.7, but Stylesheet.py had named a local variable that. This patch renames that variable.
hmm, I wonder if it's not too early to apply the patch to 2,6,5, after all this 2 years older........
test test_mhlib failed -- Traceback (most recent call last): just as in Bug 356019. ====================================================================== FAIL: test_isalnum (test.test_locale.TestStringMethods) ----------------------------------------------- ====================================================================== FAIL: test_listfolders (test.test_mhlib.MhlibTests) ---------------------------------------------------------------------- * The following tests have been skipped: * test_distutils.py * test_tcl.py * If you would like to run them, you may: * cd '/usr/lib64/python2.6/test' * and run the tests separately. * ERROR: dev-lang/python-2.6.7-r2 failed (test phase): NO SIGN OF THE REASON-FOR-BEING test___all__
Created attachment 292645 [details] ebuild patch
Created attachment 292647 [details, diff] fix by Arfrever
(In reply to comment #18) It's too early to apply this patch.
working version avail in overlay improvise
It's gone.