[XML-SIG] minidom - PyUnicodeUCS4_Decode

Jean-Frederic Boisdet boisdet@csit.fsu.edu
Thu, 2 Jan 2003 12:52:01 -0800


This is a multi-part message in MIME format.

------=_NextPart_000_0027_01C2B25D.BEA08A10
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I have built pyXML 0.8.1 on my RedHat 7.3 by doing=20
python setup.py build
=20
Then I copied _xmlplus in the .resources directory you can see below and
symlinked it as xml/
The filesystem is on a debian. Both the RedHat and the Debian have
Python 2.2
=20
When I try to parse a file on the RedHat, everything works perfectly.
When I try it on the Debian, I got this message.
=20
=20
  File "./.resources/theXMLParser.py", line 9, in __init__
    self.root =3D minidom.parse(file)
  File "./.resources/xml/dom/minidom.py", line 1594, in parse
    from xml.dom import expatbuilder
  File "./.resources/xml/dom/expatbuilder.py", line 32, in ?
    from xml.parsers import expat
  File "./.resources/xml/parsers/expat.py", line 4, in ?
    from pyexpat import *
ImportError: ./.resources/xml/parsers/pyexpat.so: undefined symbol:
PyUnicodeUCS4_Decode

=20
I tried to rebuild PyXML on the Debian, I got this error message:
=20
~Python/PyXML-0.8.1/> python setup.py build
Traceback (most recent call last):
  File "setup.py", line 9, in ?
    from distutils.core import setup, Extension
ImportError: No module named distutils.core

Anything known to go wrong with debians ?
=20
Thanks and Happy New Year,
=20
Jean-Frederic Boisdet
=20
There are two rules for ultimate success in life.
1. Never tell everything you know.=20

J e a n - F r =E9 d =E9 r i c

=20

------=_NextPart_000_0027_01C2B25D.BEA08A10
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<TITLE>Message</TITLE>

<META content=3D"MSHTML 6.00.2800.1126" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D266044320-02012003>I have =
built pyXML=20
0.8.1 on my RedHat 7.3 by doing </SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D266044320-02012003><FONT=20
face=3DCourier>python setup.py build</FONT></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D266044320-02012003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D266044320-02012003>Then I =
copied=20
_xmlplus in the .resources directory you can see below and symlinked it =
as=20
xml/</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D266044320-02012003>The =
filesystem is on=20
a debian. Both the RedHat and the Debian have Python =
2.2</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D266044320-02012003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D266044320-02012003>When I =
try to parse=20
a file on the RedHat, everything works perfectly.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D266044320-02012003>When I =
try it on the=20
Debian, I got this message.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D266044320-02012003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D266044320-02012003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D266044320-02012003>&nbsp; =
File=20
"./.resources/theXMLParser.py", line 9, in =
__init__<BR>&nbsp;&nbsp;&nbsp;=20
self.root =3D minidom.parse(file)<BR>&nbsp; File=20
"./.resources/xml/dom/minidom.py", line 1594, in =
parse<BR>&nbsp;&nbsp;&nbsp;=20
from xml.dom import expatbuilder<BR>&nbsp; File=20
"./.resources/xml/dom/expatbuilder.py", line 32, in =
?<BR>&nbsp;&nbsp;&nbsp; from=20
xml.parsers import expat<BR>&nbsp; File =
"./.resources/xml/parsers/expat.py",=20
line 4, in ?<BR>&nbsp;&nbsp;&nbsp; from pyexpat import *<BR>ImportError: =

./.resources/xml/parsers/pyexpat.so: undefined symbol:=20
PyUnicodeUCS4_Decode<BR></DIV></SPAN></FONT>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D266044320-02012003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D266044320-02012003>I =
tried to rebuild=20
PyXML on the Debian, I got this error message:</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D266044320-02012003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2><SPAN=20
class=3D266044320-02012003>~Python/PyXML-0.8.1/&gt;&nbsp;python setup.py =

build<BR>Traceback (most recent call last):<BR>&nbsp; File "setup.py", =
line 9,=20
in ?<BR>&nbsp;&nbsp;&nbsp; from distutils.core import setup,=20
Extension<BR>ImportError: No module named =
distutils.core<BR></SPAN></FONT><FONT=20
face=3DArial size=3D2><SPAN =
class=3D266044320-02012003></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D266044320-02012003>Anything known to go=20
wrong with debians ?</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D266044320-02012003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D266044320-02012003>Thanks =
and Happy New=20
Year,</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D266044320-02012003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D266044320-02012003>Jean-Frederic=20
Boisdet</DIV></SPAN></FONT>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV align=3Dleft><FONT size=3D2>There are two rules for ultimate =
success in=20
life.<BR>1. Never tell everything you know.=20
<P>
<MARQUEE scrollAmount=3D3 scrollDelay=3D10 direction=3Dright =
behavior=3Dalternate=20
width=3D20><FONT color=3Dred>J</FONT></MARQUEE>
<MARQUEE scrollAmount=3D3 scrollDelay=3D10 direction=3Dright =
behavior=3Dalternate=20
width=3D15><FONT color=3Dblue>e</FONT></MARQUEE>
<MARQUEE scrollAmount=3D3 scrollDelay=3D10 direction=3Dright =
behavior=3Dalternate=20
width=3D10><FONT color=3Dgreen>a</FONT></MARQUEE>
<MARQUEE scrollAmount=3D3 scrollDelay=3D10 direction=3Dright =
behavior=3Dalternate=20
width=3D15><FONT color=3Dpurple>n</FONT></MARQUEE>
<MARQUEE scrollAmount=3D3 scrollDelay=3D10 direction=3Dright =
behavior=3Dalternate=20
width=3D20><FONT color=3Dblue>-</FONT></MARQUEE>
<MARQUEE scrollAmount=3D3 scrollDelay=3D10 direction=3Dright =
behavior=3Dalternate=20
width=3D15><FONT color=3Dblack>F</FONT></MARQUEE>
<MARQUEE scrollAmount=3D3 scrollDelay=3D10 direction=3Dright =
behavior=3Dalternate=20
width=3D10><FONT color=3Dred>r</FONT></MARQUEE>
<MARQUEE scrollAmount=3D3 scrollDelay=3D10 direction=3Dright =
behavior=3Dalternate=20
width=3D20><FONT color=3Dred>=E9</FONT></MARQUEE>
<MARQUEE scrollAmount=3D3 scrollDelay=3D10 direction=3Dright =
behavior=3Dalternate=20
width=3D15><FONT color=3Dblue>d</FONT></MARQUEE>
<MARQUEE scrollAmount=3D3 scrollDelay=3D10 direction=3Dright =
behavior=3Dalternate=20
width=3D10><FONT color=3Dgreen>=E9</FONT></MARQUEE>
<MARQUEE scrollAmount=3D3 scrollDelay=3D10 direction=3Dright =
behavior=3Dalternate=20
width=3D15><FONT color=3Dpurple>r</FONT></MARQUEE>
<MARQUEE scrollAmount=3D3 scrollDelay=3D10 direction=3Dright =
behavior=3Dalternate=20
width=3D20><FONT color=3Dblue>i</FONT></MARQUEE>
<MARQUEE scrollAmount=3D3 scrollDelay=3D10 direction=3Dright =
behavior=3Dalternate=20
width=3D15><FONT color=3Dblack>c</FONT></MARQUEE></P></FONT></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0027_01C2B25D.BEA08A10--