[Zope] RE: Re: [Zope] How to get reportlab running and integrated with Zope

dale w lance dale.w.lance@mail.sprint.com
Mon, 8 May 2000 11:12:49 -0500


--openmail-part-1fb89f78-00000001
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Thanks guys,
However ...
Neither suggestion has done what I am expecting.
I am using a binary version of Zope and the only python 
is the one that came with it.
I have tried it under the Product directory,lib/python1.5 directory,
/usr/local/Zope/lib/python/site-packages/ directory. All give me the 
same error.
I believe I might have an environment variable issue here. I have tried
setting them i.e. the start script and setting them as per the 
instructions 
(README) from reportlab but it still can't find module 
reportlab.pdfgen. Shouldn't 
I be able to run this under the python environ that came with Zope? 

Dale
p.s. all info/updates I garner will of course be cordially sent to the 
list

-----Original Message-----
From: tony.mcdonald [mailto:tony.mcdonald@ncl.ac.uk]
Sent: Monday, May 08, 2000 4:47 AM
To: chrism; d.lance
Cc: tony.mcdonald; zope
Subject: FW: Re: [Zope] How to get reportlab running and integrated with
Zope


At 5:17 pm -0400 7/5/00, Chris McDonough wrote:
>Dale, I've never used reportlab, but if you change the import statement
>to:
>
>from Products.reportlab import reporlab.pdfgen
>
>It might work.
>
>Dale Lance wrote:
>>
>>  Hi all,
>>
>>  I have downloaded Reportlab to my linux box and am trying to go 
through the
>>  install
>>  procedure. I un-tarred into /usr/local/Zope/lib/python/Products 
making the
>>  reportlab product
>>  underneath. This looks good in Zope ... (shows up as product under
>>  management screen)
>>  However running the test script (testpdfgen.py) under
>>  ...reportlab/pdfgen/test/testpdfgen.py
>>  gives me a module not found error when it tries to import 
reportlab.pdfgen.
>>  Any clues as to what I haven't set up?
>>  Anyone tried this yet?
>>
>>  lost in Zen
>  > Dale

Dale,
If you're running a binary version of Zope, you need to put reportlab 
into lib/python1.5 in your Zope installation.

If you're using a source version of Zope, put it in something like 
/usr/local/lib/python/site-packages/ instead.

I think there's some confusion over Zope Products and python 
packages. AFAIK, you'll need to write some external methods or 
PythonMethods to access the reportlab functions....

Please let the list know how you get on with reportlab and Zope - 
I've used it standalone and it's a beautiful package!

Tone out.
------
Dr Tony McDonald,  FMCC, Networked Learning Environments Project 
http://nle.ncl.ac.uk/
The Medical School, Newcastle University Tel: +44 191 222 5888
Fingerprint: 3450 876D FA41 B926 D3DD  F8C3 F2D0 C3B9 8B38 18A2

_______________________________________________
Zope maillist  -  Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )


--openmail-part-1fb89f78-00000001--