[reportlab-users] how to use in plone
Albert Lee.K.W
reportlab-users@reportlab.com
Sat, 29 May 2004 13:01:13 +0800
I need to remove the _xmlplus in the python/site-packet then
I pass the test of test_renderSVG.py. Thanks
But in Plone, I use CMFReportTool which is reportlab dependence.
It shows the following traceback :
Traceback (innermost last):
Module ZPublisher.Publish, line 100, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 40, in call_object
Module Products.CMFCore.FSPythonScript, line 104, in __call__
Module Shared.DC.Scripts.Bindings, line 306, in __call__
Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
Module Products.CMFCore.FSPythonScript, line 160, in _exec
Module None, line 18, in asPDF
<FSPythonScript at /mlm/asPDF used for /mlm/hello>
Line 18
Module Products.CMFReportTool.ReportTool, line 214, in renderPDF
Module Products.CMFReportTool.RenderPDF.Parser, line 167, in __call__
Module Products.CMFReportTool.RenderPDF.Parser, line 500, in _create
Module Products.CMFReportTool.RenderPDF.Parser, line 322, in _createObject
AttributeError: 'module' object has no attribute 'open'
Display traceback as text
Does it something wrong in create pdf of reportlab
Albert
On Fri, 28 May 2004 10:01:20 +0100, Robin Becker wrote
> 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
> _______________________________________________
> reportlab-users mailing list
> reportlab-users@reportlab.com
> http://two.pairlist.net/mailman/listinfo/reportlab-users