RE: Re: [Zope] How to get reportlab running and integrated with Zope
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 )
I had a similar problem with another program. I got past it by adding a "sys.path.insert....." statement with the path to the relevant program modules in z2.py in the section just after line 220 (with the other 'sys.path.insert...' statements) __________________________________________________________________ Jim Sanford . Database Engineer / \ / Accelerated Technology, Inc. / / 720 Oak Circle Drive East / / \ Mobile, AL 36609 / / \ Voice: 334-661-5770 fax: 334-661-5788 / \ E-Mail: jsanford@atinucleus.com Web: http://www.atinucleus.com Nucleus. All You NEED in an RTOS. Royalty Free __________________________________________________________________ ----- Original Message ----- From: dale w lance <dale.w.lance@mail.sprint.com> To: <chrism@digicool.com>; <d_lance@email.msn.com>; <tony.mcdonald@ncl.ac.uk> Cc: <zope@zope.org> Sent: Monday, May 08, 2000 11:12 AM Subject: [Zope] RE: Re: [Zope] How to get reportlab running and integrated with Zope 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 )
I've been searching through Amazon for books to help me with learning Python. Apparently there are mostly split descisions on the thoroughness and quality of the majority of these books. So I figured I'd bring it to the table here: What are or did you use or recommend that I use to successfully get a staert learning Python Programming. I am not a programmer. The best I can do is read perl and win cgi's, fix some broken code here and there and bat 100% at strangling apps until they run. But that's it. This is a serious question for me. Until I ran into ZOPE I've been feeling obligated to learn VB, ASP, ADO. I've recently purchased several of the WROX books on those subjects and one is coming out on Python in July. I would like to for go messing with the MS stuff for now. Where's the best place to get serious in the mean time? (Something I can hold in my hands aside from a mouse.) Thank you, hisnibs
J. Michael Mc Kay: I have bought the O'Reilly books "Learning Python" and "Programming Python" I have finished "Learning Python" and already feel much more akin to the Zen of Zope. Let me say that I too am not a programmer. Not formal programming experience/training other than my current project. Python is terrifc for types like us. I am a little more than 1/4 through the second book. Very clear stuff. Hope that helps, All my best,
I've been searching through Amazon for books to help me with learning Python. Apparently there are mostly split descisions on the thoroughness and quality of the majority of these books. So I figured I'd bring it to the table here: What are or did you use or recommend that I use to successfully get a staert learning Python Programming. I am not a programmer. The best I can do is read perl and win cgi's, fix some broken code here and there and bat 100% at strangling apps until they run. But that's it. This is a serious question for me. Until I ran into ZOPE I've been feeling obligated to learn VB, ASP, ADO. I've recently purchased several of the WROX books on those subjects and one is coming out on Python in July. I would like to for go messing with the MS stuff for now. Where's the best place to get serious in the mean time? (Something I can hold in my hands aside from a mouse.)
Thank you,
hisnibs
_______________________________________________ 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 )
Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats.
// What are or did you use or recommend that I use to // successfully get a staert learning Python Programming. I am a programmer that's new to Python and Zope. I bought "The Quick Python Book," read it cover to cover and was very happy with it. There is even a section on Zope. Although I think the Zope section might be a bit dated, it opened my eyes to some of the "Zope Zen" that you read about here on the mailing list. You may want to peruse this one before you buy to make sure that you are comfortable with the skill level.
I have several Python books, but the one that I use time and time again is "Python Essential Reference" by David M. Beazley. "J. Michael Mc Kay" wrote:
I've been searching through Amazon for books to help me with learning Python. Apparently there are mostly split descisions on the thoroughness and quality of the majority of these books. So I figured I'd bring it to the table here: What are or did you use or recommend that I use to successfully get a staert learning Python Programming. I am not a programmer. The best I can do is read perl and win cgi's, fix some broken code here and there and bat 100% at strangling apps until they run. But that's it. This is a serious question for me. Until I ran into ZOPE I've been feeling obligated to learn VB, ASP, ADO. I've recently purchased several of the WROX books on those subjects and one is coming out on Python in July. I would like to for go messing with the MS stuff for now. Where's the best place to get serious in the mean time? (Something I can hold in my hands aside from a mouse.)
Thank you,
hisnibs
_______________________________________________ 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 )
-- Peter Kropf Codesmith VEReCOMM Corp. 2475 Augustine Drive, Suite 102 Santa Clara, CA 95054 408-919-3107; Fax 408-969-0688 peter@verecomm.com
Another good book with a lot of code examples is "Python Annotated Archives" by Brown published by Osborne/McGraw Hill. In addition, I would recommend http://www.bookpool.com they have really LOW prices and a great selection of technical books. Jeff Peterson Software Engineer The Bridge/Befera Interactive Cablenet -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of J. Michael Mc Kay Sent: Monday, May 08, 2000 4:50 PM To: zope@zope.org Subject: [Zope] Python Books - your opinions please. I've been searching through Amazon for books to help me with learning Python. Apparently there are mostly split descisions on the thoroughness and quality of the majority of these books. So I figured I'd bring it to the table here: What are or did you use or recommend that I use to successfully get a staert learning Python Programming. I am not a programmer. The best I can do is read perl and win cgi's, fix some broken code here and there and bat 100% at strangling apps until they run. But that's it. This is a serious question for me. Until I ran into ZOPE I've been feeling obligated to learn VB, ASP, ADO. I've recently purchased several of the WROX books on those subjects and one is coming out on Python in July. I would like to for go messing with the MS stuff for now. Where's the best place to get serious in the mean time? (Something I can hold in my hands aside from a mouse.) Thank you, hisnibs _______________________________________________ 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 )
Thanks to all who helped me make this descision. Not that it was life threatening or anything. :) It really instills some confidence to have some other people who have been there help out. I ordered through bookpool.com Jeff is right, 44-45% off all Orielly books in stock. So I even managed to save some dollars and ordered "Learning Python" and "Essential Reference." I figured I would get going with these then look at Annotated Reference and in July see what WROX publishing is offering in their new release for Python. Thanks Again.... hisnibs J. Michael Mc Kay ----- Original Message ----- From: "Jeff Peterson" <jpeterso@the-bridge.net> To: "J. Michael Mc Kay" <admin@ihosts.net>; <zope@zope.org> Sent: Tuesday, May 09, 2000 12:35 PM Subject: RE: [Zope] Python Books - your opinions please.
Another good book with a lot of code examples is "Python Annotated Archives" by Brown published by Osborne/McGraw Hill. In addition, I would recommend http://www.bookpool.com they have really LOW prices and a great selection of technical books.
Jeff Peterson Software Engineer The Bridge/Befera Interactive Cablenet
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of J. Michael Mc Kay Sent: Monday, May 08, 2000 4:50 PM To: zope@zope.org Subject: [Zope] Python Books - your opinions please.
I've been searching through Amazon for books to help me with learning Python. Apparently there are mostly split descisions on the thoroughness and quality of the majority of these books. So I figured I'd bring it to the table here: What are or did you use or recommend that I use to successfully get a staert learning Python Programming. I am not a programmer. The best I can do is read perl and win cgi's, fix some broken code here and there and bat 100% at strangling apps until they run. But that's it. This is a serious question for me. Until I ran into ZOPE I've been feeling obligated to learn VB, ASP, ADO. I've recently purchased several of the WROX books on those subjects and one is coming out on Python in July. I would like to for go messing with the MS stuff for now. Where's the best place to get serious in the mean time? (Something I can hold in my hands aside from a mouse.)
Thank you,
hisnibs
_______________________________________________ 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 )
_______________________________________________ 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 )
participants (7)
-
dale w lance -
Eric L. Walstad -
J. Michael Mc Kay -
Jason Spisak -
Jeff Peterson -
Jim Sanford -
Peter Kropf