[XML-SIG] Running PyXML with debug build on Linux
Jed Burgess
jed@osafoundation.org
Mon, 2 Dec 2002 18:42:33 -0800
This is a multi-part message in MIME format.
------=_NextPart_000_0269_01C29A32.93A806A0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
PyXML works fine for me on Windows, and it works with a non-debug =
version on Linux, but when I try to use it with a debug build of Python =
on Linux, I get an import error. My own code fails in the same way as =
the test programs. I get the error:
File "perf_expatbuilder.py", line 18, in ?
from xml.dom import minidom, expatbuilder
File =
"/home/jed/osaf/debug/lib/python2.2/site-packages/_xmlplus/dom/expatbuild=
er.py", line 32, in ?
from xml.parsers import expat
File =
"/home/jed/osaf/debug/lib/python2.2/site-packages/_xmlplus/parsers/expat.=
py", line 4, in ?
from pyexpat import *
ImportError: =
/home/jed/osaf/debug/lib/python2.2/site-packages/_xmlplus/parsers/pyexpat=
.so: undefined symbol: Py_InitModule4
What can I do to fix this? Are there any special steps I have to take =
to get PyXML to work with the debug version of python on Linux?
Thanks,
Jed
------=_NextPart_000_0269_01C29A32.93A806A0
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=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2722.900" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>PyXML works fine for me on Windows, and =
it works=20
with a non-debug version on Linux, but when I try to use it with a debug =
build=20
of Python on Linux, I get an import error. My own code fails in =
the same=20
way as the test programs. I get the error:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> File "perf_expatbuilder.py", =
line 18, in=20
?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> from xml.dom import =
minidom,=20
expatbuilder</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> File=20
"/home/jed/osaf/debug/lib/python2.2/site-packages/_xmlplus/dom/expatbuild=
er.py",=20
line 32, in ?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> from xml.parsers =
import=20
expat</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> File=20
"/home/jed/osaf/debug/lib/python2.2/site-packages/_xmlplus/parsers/expat.=
py",=20
line 4, in ?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> from pyexpat import=20
*</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>ImportError:=20
/home/jed/osaf/debug/lib/python2.2/site-packages/_xmlplus/parsers/pyexpat=
.so:=20
undefined symbol: Py_InitModule4</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>What can I do to fix this? Are =
there any=20
special steps I have to take to get PyXML to work with the debug version =
of=20
python on Linux?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Jed</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV></BODY></HTML>
------=_NextPart_000_0269_01C29A32.93A806A0--