[XML-SIG] pyexpat.c help

Martin v. Loewis Martin.v.Loewis@t-online.de
Sat, 20 Oct 2001 10:54:10 +0200


> I'm trying to get ParsedXML to work in Zope 2.4.1 with Python 2.1.  At
> the ParsedXML site at zope.org, there is a zipe file with the VC++
> project file to build pyexpat.pyd.

I strongly recommend to use the pyexpat that comes with Python
2.1. Depending on where you got Python 2.1 from, it should be
pre-built already. If not, you might consider downloading the Python
2.1 sources and building it yourself.

>    Creating library Debug/pyexpat.lib and object Debug/pyexpat.exp

The problem here certainly is that you are trying to create a Debug
binary. Don't do that unless you also make use of a Debug Python
installation (which you might not even have yet).

> pyexpat.obj : error LNK2001: unresolved external symbol _PyString_Type

That's strange. What version of the pythonXY.lib where you linking
with?

> Is this .c written for python1.5 only?  I put py2.1 files in the
> include/lib path.  Do I need a ver made to compile with 2.1?  Also, what
> is pyexpat.pyd's role in zope (what does it do/used for)?  

I don't know about the pyexpat.c that you can get from Zope; the
current one certainly works with all Python versions. pyexpat.pyd is
the module that interfaces to the Expat XML parser, which is in turn
used to parse XML.

Regards,
Martin