Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 48756 - "glsa-check --list" has an ImportError; related to xml
Summary: "glsa-check --list" has an ImportError; related to xml
Status: RESOLVED DUPLICATE of bug 47528
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-22 22:04 UTC by Anthony de Almeida Lopes
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 Anthony de Almeida Lopes 2004-04-22 22:04:24 UTC
running "glsa-check --list" or "glsa-check --fix all" it gives a bunch of errors pretaning to xml and ends in ImportError: dynamic module does not define init function (initpyexpat)
see below for full error output

Reproducible: Always
Steps to Reproduce:
1. chrooted into new install
2. emerge rsync; emerge world
3. glsa-check --list

Actual Results:  
frozen / # glsa-check --fix all
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.
 
Traceback (most recent call last):
  File "/usr/bin/glsa-check", line 154, 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: dynamic module does not define init function (initpyexpat)
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2004-04-22 22:58:06 UTC
remove pyxml and try again.
Comment 2 Anthony de Almeida Lopes 2004-04-23 12:48:26 UTC
okay that worked, but there's why should i be forced not to have pyxml installed to do this. this is still a bug.
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2004-04-23 19:38:38 UTC
Sure, just wanted to confirm that it's caused by pyxml, nearly all (technical) problems with glsa-check are caused by it.
Python people, any clue if that package is broken or am I doing something wrong in glsa.py?
Comment 4 Marius Mauch (RETIRED) gentoo-dev 2004-08-21 11:55:33 UTC

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