Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 48593 - glsa-check from app-portage/gentoolkit fails with "undefined symbol: PyUnicodeUCS2_DecodeUTF8"
Summary: glsa-check from app-portage/gentoolkit fails with "undefined symbol: PyUnicod...
Status: RESOLVED DUPLICATE of bug 47528
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-21 12:57 UTC by Stuart Shelton
Modified: 2005-07-17 13:06 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 Stuart Shelton 2004-04-21 12:57:46 UTC
Running "glsa-check -l" fails.  I know that this used to work, but I think that I've updated gentoolkit since then...

Is this simply a missing dependancy issue?  Or should Python be installed with the UCS2 option (which warns of breakage if used)?

$ emerge -pv python expat pyxml
[ebuild   R   ] dev-lang/python-2.3.3  +X +berkdb -bootstrap -build -doc +gdbm +ipv6 +ncurses +readline +ssl +tcltk -ucs2
[ebuild   R   ] dev-libs/expat-1.95.6-r1
[ebuild   R   ] dev-python/pyxml-0.8.3

$ glsa-check -l
WARNING: This tool is completely new and not very tested, so it should not be
used on production systems. It's mainly a test tool for the new GLSA release
and distribution system, it's functionality will later be merged into emerge
and equery.
Please read http://www.gentoo.org/proj/en/portage/glsa-integration.xml
before using this tool AND before reporting a bug.

[A] means this GLSA was already applied,
[U] means the system is not affected and
[N] indicates that the system might be affected.

Traceback (most recent call last):
  File "/usr/bin/glsa-check", line 132, in ?
    myglsa = Glsa(myid, glsaconfig)
  File "/usr/lib/gentoolkit/pym/glsa.py", line 371, in __init__
    self.read()
  File "/usr/lib/gentoolkit/pym/glsa.py", line 389, in read
    self.parse(urllib.urlopen(myurl))
  File "/usr/lib/gentoolkit/pym/glsa.py", line 403, in parse
    self.DOM = xml.dom.minidom.parse(myfile)
  File "/usr/lib/python2.3/site-packages/_xmlplus/dom/minidom.py", line 1907, in parse
    from xml.dom import expatbuilder
  File "/usr/lib/python2.3/site-packages/_xmlplus/dom/expatbuilder.py", line 32, in ?
    from xml.parsers import expat
  File "/usr/lib/python2.3/site-packages/_xmlplus/parsers/expat.py", line 4, in ?
    from pyexpat import *
ImportError: /usr/lib/python2.3/site-packages/_xmlplus/parsers/pyexpat.so: undefined symbol: PyUnicodeUCS2_DecodeUTF8

Any ideas?

Reproducible: Always
Steps to Reproduce:
Invoke "glsa-check -l"

(Also fails for all other options than "glsa-check --help")
Actual Results:  
undefined symbol: PyUnicodeUCS2_DecodeUTF8

Expected Results:  
Security Advisories should have been listed...

Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.25-gentoo-r2)
=================================================================
System uname: 2.4.25-gentoo-r2 i686 Intel(R) Pentium(R) M processor 1700MHz
Gentoo Base System version 
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium4 -mfpmath=sse -msse2 -fprefetch-loop-arrays -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config
/usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -mfpmath=sse -msse2 -fprefetch-loop-arrays -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache fixpackages sandbox userpriv usersandbox"
GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/
http://ftp.heanet.ie/pub/gentoo/
ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
ftp://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X X509 Xaw3d aalib acl acpi acpi4linux adns alsa apache2 apm arts
artswrappersuid atlas avantgo avi berkdb bonobo caps cdr crypt cscope cups curl
dga directfb dvd encode esd ethereal evo fam fastcgi fbcon firebird flac flash
foomaticdb freetds gb gd gdbm ggi gif gnome gnutls gphoto2 gpm gstreamer gtk
gtk2 gtkhtml guile icc icc-pgo imap imlib informix innodb intel8x0 ipv6 jack
jack-tmpfs java javascript joystick jpeg junit kde kerberos krb4 ladcca lcms
ldap libg++ libgda libwww mad maildir mbox mcal memlimit mikmod mmx motif
mozilla mpeg mpi mysql nas ncurses nls oci8 odbc oggvorbis opengl oss pam pcmcia
pdflib perl physfs pic plotutils png pnp postgres ppds prelude python qt
quicktime radeon readline samba sasl scanner sdl skey slang slp snmp socks5
speex spell sse ssl svga tcltk tcpd tiff truetype unicode usb video_cards_radeon
wmf wxwindows x86 xface xinerama xml xml2 xmms xosd xv zeo zlib"
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2004-04-21 17:05:47 UTC
Try to remove pyxml and see if that fixes it.
Comment 2 Stuart Shelton 2004-04-22 11:02:56 UTC
Yep - removed pyxml, and it works as expected!

Is pyxml an old Python 2.2 package that's not needed with Python 2.3, or are other things likely to break by not having pyxml installed?
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2004-04-22 22:56:12 UTC
I don't know what's wrong here exactly. In theory pyxml provides additional XML functionality to python, but for glsa.py it either hides bugs in python2.2 or introduces new problems. The recommended platform for glsa.py is just python2.3 without pyxml.
@Python people: maybe you have an idea what's going on here.
Comment 4 Lukasz Strzygowski (RETIRED) gentoo-dev 2004-04-30 03:33:41 UTC
reemerging pyxml should help.
Comment 5 Stuart Shelton 2004-04-30 04:28:51 UTC
Odd - I re-emerged pyxml before and I still had the problem.

I've just done it again and the problem has gone away.  Perhaps some other package I've merged since fixed it?

Oh, well. I guess that unless anyone else has seen the problem it can be closed.

Strange...
Comment 6 Marius Mauch (RETIRED) gentoo-dev 2004-08-21 11:55:50 UTC

*** This bug has been marked as a duplicate of 47528 ***