[reportlab-users] PDF creation, z3c.rml and TOCs...

Yuan HOng hongyuan1306 at gmail.com
Tue May 19 03:08:07 EDT 2009


On Tue, Apr 21, 2009 at 12:03 AM, Ken Corey <ken at kencorey.com> wrote:


> Hi All,

>

> I've spent a very interesting day reading through the documentation

> regarding z3c.rml, (and the rml examples from reportlab once I found them),

> and then trying to get z3c.rml working standalone.

>

> I checked out z3c.rml, Zope, zope.event, zope.i18nmessageid,

> zope.interface, zope.schema. I changed all the references to lxml to

> xml.etree.ElementTree, so that it might work on Google AppEngine. I set up

> pythonpath to point the the (seemingly) appropriate places, and then tried

> several times running rml2pdf.py with this command line:

>

> C:\Temp\z3c.rml\src\z3c\rml>python rml2pdf.py tests\input\simple-layout.rml

> Traceback (most recent call last):

> File "rml2pdf.py", line 25, in <module>

> import document, interfaces

> File "C:\Temp\z3c.rml\src\z3c\rml\document.py", line 26, in <module>

> from z3c.rml import attr, directive, interfaces, occurence

> File "c:\temp\z3c.rml\src\z3c\rml\attr.py", line 36, in <module>

> from z3c.rml import interfaces

> File "c:\temp\z3c.rml\src\z3c\rml\interfaces.py", line 138, in <module>

> class IDeprecatedDirective(zope.interface.interfaces.IInterface):

> AttributeError: 'module' object has no attribute 'interfaces'

>

> Do you know what that error means? All this 'Interface' stuff has me more

> than a little bemused as a complete Python newbie.

>

> I think your zope.interface module is not installed properly. Try to

install it use easy_install, like:

c:\>easy_install zope.interface

In fact, you'd better install all the zope packages using easy_install,
including z3c.rml.

--
Hong Yuan

大管家网上建材超市
装修装潢建材一站式购物
http://www.homemaster.cn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20090519/7609be30/attachment.html>


More information about the reportlab-users mailing list