Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 238721 - dev-python/pyxml-0.8.4-r1 caused build errors with iso-codes, wlassistant and jedit
Summary: dev-python/pyxml-0.8.4-r1 caused build errors with iso-codes, wlassistant and...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-26 07:50 UTC by Ján Bednár
Modified: 2008-10-12 22:41 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ján Bednár 2008-09-26 07:50:57 UTC
since x86 stabilization of iso-codes-3.2 (on 20th Sep 2008, see bug #238185) can't get running stable version

Reproducible: Always

Steps to Reproduce:
1.emerge app-text/iso-codes-3.2
Actual Results:  
61 translated messages/usr/bin/msgfmt --verbose --check -o zh_CN.mo zh_CN.po
, 143 fuzzy translations, 244 untranslated messages.
/usr/bin/msgfmt --verbose --check -o zh_HK.mo zh_HK.po
448 translated messages.
392 translated messages/usr/bin/msgfmt --verbose --check -o zh_TW.mo zh_TW.po
, 22 fuzzy translations, 34 untranslated messages.
/usr/bin/msgfmt --verbose --check -o zu.mo zu.po
448 translated messages.
./iso3166tab.py iso_3166.xml > iso_3166.tab.new
61 translated messages, 143 fuzzy translations, 244 untranslated messages.
Traceback (most recent call last):
  File "./iso3166tab.py", line 45, in <module>
    p = make_parser()
  File "/usr/lib/python2.5/site-packages/_xmlplus/sax/sax2exts.py", line 37, in make_parser
    return XMLParserFactory.make_parser(parser_list)
  File "/usr/lib/python2.5/site-packages/_xmlplus/sax/saxexts.py", line 75, in make_parser
    sys.modules[parser_name].create_parser = _create_parser
KeyError: 'xml.sax.drivers2.drv_pyexpat'
make[2]: *** [iso_3166.tab] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-text/iso-codes-3.2/work/iso-codes-3.2/iso_3166'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-text/iso-codes-3.2/work/iso-codes-3.2/iso_3166'
make: *** [install-recursive] Error 1
 * 
 * ERROR: app-text/iso-codes-3.2 failed.
 * Call stack:
 * ebuild.sh, line   49:  Called src_install
 * environment, line 2516:  Called die
 * The specific snippet of code:
 * emake DESTDIR="${D}" install || die "Installation failed";
 * The die message:
 * Installation 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/app-text/iso-codes-3.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-text/iso-codes-3.2/temp/environment'.


Expected Results:  
build just fine

emerge --info
Portage 2.2_rc9 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.26-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.26-gentoo-r1-i686-Intel-R-_Core-TM-2_Duo_CPU_T8100_@_2.10GHz-with-glibc2.0
Timestamp of tree: Fri, 26 Sep 2008 01:45:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 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:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
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"
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/udev/rules.d"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.ynet.sk/pub http://ftp.fi.muni.cz/pub/linux/gentoo/ http://gentoo.mirror.dkm.cz/pub/gentoo http://mirror.yandex.ru/gentoo-distfiles/ ftp://mirror.yandex.ru/gentoo-distfiles/ http://mirror.switch.ch/ftp/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ "
LANG="sk_SK.UTF-8"
LC_ALL="sk_SK.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="sk"
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"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://mirror.gentoo.sk/gentoo-portage"
USE="X a52 aac acl acpi alsa apache2 bash-completion berkdb bluetooth bzip2 cddb cli cracklib crypt cups dbus dga dri drm dts dvd enca encode ffmpeg flac fortran ftp gdbm gif gnutls gpm gtk hal iconv id3tag isdnlog jpeg libnotify live lm_sensors lzo mad matroska midi mmx modplug mp2 mp3 mpeg mudflap musepack ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre perl png pppd python quicktime rar readline real reflection rtc samba session skins slang speex spl srt sse sse2 ssl ssse3 startup-notification svg svga sysfs taglib tcpd theora tiff truetype twolame unicode vorbis win32codecs wxwindows x264 x86 xml xorg xosd xpm xscreensaver xulrunner xv xvid xvmc zip zlib" ALSA_CARDS="hda-intel" 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="ncurses text" LINGUAS="sk" USERLAND="GNU" VIDEO_CARDS="i810 vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-09-26 15:26:26 UTC
which version of expat do you have ?
Comment 2 Ján Bednár 2008-09-26 15:33:45 UTC
(In reply to comment #1)
> which version of expat do you have ?
> 

I have dev-libs/expat-2.0.1 
Comment 3 Ján Bednár 2008-10-02 08:40:57 UTC
Hi,
I have runned emerge -e world and found 3 packages with similar errors:

1. app-text/iso-codes-3.2

./iso3166tab.py iso_3166.xml > iso_3166.tab.new
Traceback (most recent call last):
  File "./iso3166tab.py", line 45, in <module>
    p = make_parser()
  File "/usr/lib/python2.5/site-packages/_xmlplus/sax/sax2exts.py", line 37, in make_parser
    return XMLParserFactory.make_parser(parser_list)
  File "/usr/lib/python2.5/site-packages/_xmlplus/sax/saxexts.py", line 75, in make_parser
    sys.modules[parser_name].create_parser = _create_parser
KeyError: 'xml.sax.drivers2.drv_pyexpat'
make[2]: *** [iso_3166.tab] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-text/iso-codes-3.2/work/iso-codes-3.2/iso_3166'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-text/iso-codes-3.2/work/iso-codes-3.2/iso_3166'
make: *** [install-recursive] Error 1


2. net-wireless/wlassistant-0.5.7:

Checking for the qt includes      :  ok /usr/qt/3/include/ 
Checking for the kde includes     :  ok /usr/kde/3.5/include/ 
scons: Reading SConscript files ...
KeyError: 'xml.sax.drivers2.drv_pyexpat':
  File "/var/tmp/portage/net-wireless/wlassistant-0.5.7/work/wlassistant-0.5.7/SConstruct", line 29:
    env.xmlfile('config.bks')
  File "/var/tmp/portage/net-wireless/wlassistant-0.5.7/work/wlassistant-0.5.7/bksys/parser.py", line 135:
    parser = make_parser()
  File "/usr/lib/python2.5/site-packages/_xmlplus/sax/sax2exts.py", line 37:
    return XMLParserFactory.make_parser(parser_list)
  File "/usr/lib/python2.5/site-packages/_xmlplus/sax/saxexts.py", line 75:
    sys.modules[parser_name].create_parser = _create_parser
make: *** [all] Error 2


3. app-editors/jedit-4.2-r2:

ewriting attributes
Rewriting ./build.xml
Traceback (most recent call last):
  File "/usr/lib/javatoolkit/bin/xml-rewrite-3.py", line 240, in <module>
    outxml = processActions(options, f)
  File "/usr/lib/javatoolkit/bin/xml-rewrite-3.py", line 135, in processActions
    out_stream = doRewrite(rewriter, out_stream, rewriter.modify_elements)
  File "/usr/lib/javatoolkit/bin/xml-rewrite-3.py", line 95, in doRewrite
    rewriter.process(in_stream, callback, **kwargs)
  File "/usr/lib/python2.5/site-packages/javatoolkit/xml/SaxRewriter.py", line 130, in process
    parseString(in_stream, self)
  File "/usr/lib/python2.5/site-packages/_xmlplus/sax/__init__.py", line 41, in parseString
    parser = make_parser()
  File "/usr/lib/python2.5/site-packages/_xmlplus/sax/sax2exts.py", line 37, in make_parser
    return XMLParserFactory.make_parser(parser_list)
  File "/usr/lib/python2.5/site-packages/_xmlplus/sax/saxexts.py", line 75, in make_parser
    sys.modules[parser_name].create_parser = _create_parser
KeyError: 'xml.sax.drivers2.drv_pyexpat'



I have dev-libs/expat-2.0.1 installed.
Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-10-02 20:41:35 UTC
so is anyone going to try:

1) a newer expat
2) a newer XML-SAX

expat-2.0.1-r1 is supposed to have a fix for its python bindings iirc so you might want to test it.
Comment 5 Ján Bednár 2008-10-04 07:57:52 UTC
Hi,

I have found a solution for this bug.
Downgrading dev-python/pyxml from 0.8.4-r1 to 0.8.4 have solved build errors for iso-codes, wlassistant and jedit.

Can someone verify my results and contact pyxml maintainer?
Comment 6 Dror Levin (RETIRED) gentoo-dev 2008-10-11 16:45:08 UTC
I can confirm this - iso-codes-3.3 would not merge, failing in the installation stage due to access violations while attempting to remove files belonging to pyxml-0.8.4-r1.
Removing pyxml allowed iso-codes to merge successfully. I re-emerged pyxml after iso-codes was installed and now everything's fine.
Comment 7 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-10-12 20:28:37 UTC
please provide answers to comment #4, with/without pyxml-0.8.4-r1 doesn't make any difference on my systems.
Comment 8 Dror Levin (RETIRED) gentoo-dev 2008-10-12 22:41:19 UTC
I have expat-2.0.1-r1 and I don't have XML-SAX installed, yet I have this problem as I said in comment #6.