[reportlab-users] how to use in plone

Robin Becker reportlab-users@reportlab.com
Fri, 28 May 2004 10:01:20 +0100


Albert Lee.K.W wrote:
> Hi,
> 
> When I run reportlab/test/test_renderSVG.py ,it show
> 
.....
> packages/_xmlplus/dom/expatbuilder.py", line 158, in getParser
>     self._parser = self.createParser()
>   File "/usr/local/lib/python2.3/site-
> packages/_xmlplus/dom/expatbuilder.py", line 728, in createParser
>     parser = expat.ParserCreate(namespace_separator=" ")
> AttributeError: 'module' object has no attribute 'ParserCreate'
> 
> How can I do with it ?
> 
> And if I use reportlab in Plone, does this error make any effects?
> 
> albert
....
Albert, we're of the opinion that you have the pyXML version of expat on the
path before the now standard xml library package. When I run this in a
Python-2.3 environment not containing pyXML I get no error. A coleague tells me
that pyXML is supposed to be equivalent, but perhaps you have an older version
or maybe in this area it clashes.
-- 
Robin Becker