Problems with External Methods when starting Zope at boot time, Mac OS X
Hallo, I have so far successfully installed Python 2.1.3 and Zope 2.5.0 on Mac OS X.1.3 (each from src). My zope app makes use of an external method (located in the Extensions dir) which in turn makes use of the reportlab (pdf) library. (I unpacked the lib in /opt/reportlab which actually make a structure of /opt/reportlab/reportlab/...) When I start zope by hand with /opt/python2.1.3/bin/python.exe /opt/zope/Zope-2.5.0-src/z2.py -u reuleaux -w 9090 -f 9021 & everything works fine, including the above mentioned external method. However I wanted to start zope at boot time. I was lucky in the first place to discover the daemonic pkg from the fink project. I created an xml-file zope.xml in /sw/etc/daemons as follows <service> <description>Zope server</description> <message>Zope server</message> <daemon name="zope"> <executable background="yes">/opt/python2.1.3/bin/python.exe</executable> <parameters>/opt/zope/Zope-2.5.0-src/z2.py -u reuleaux -w 9090 -f 9021</parameters> </daemon> </service> and did a sudo daemonic enable zope this creates a startup item /Library/StartupItems/daemonic-zope/daemonic-zope with effectivly the same line as above for starting by hand ... if [ -x /opt/python2.1.3/bin/python.exe ]; then # run the daemon /opt/python2.1.3/bin/python.exe /opt/zope/Zope-2.5.0-src/z2.py -u reuleaux -w 9090 -f 9021 & ... and actually starts zope at boot time. Everything works except for my external method by the way: simple hello external methods work too, but my method can't even import some names from the reportlab lib here is an extract (I reduced it to what was absolutely neccessary): I get: Errror Type: Import Error Error Value: cannot import name BaseDocTemplate --- import sys sys.path.append('/opt/reportlab') import reportlab.platypus.doctemplate from reportlab.platypus.doctemplate import BaseDocTemplate class MyDocTempl(BaseDocTemplate): pass def doc(story, fs, sB=0): doc=MyDocTempl('/tmp/ettiketten.pdf', pagesize=A4, showBoundary=sB) def ettikettenKlein(adrs): # return 'hello' Any help is appreciated, thanks in advance, Andreas
On Sun, Apr 21, 2002 at 06:04:02PM +0200, Andreas Reuleaux wrote:
I have so far successfully installed Python 2.1.3 and Zope 2.5.0 on Mac OS X.1.3 (each from src).
However I wanted to start zope at boot time. I was lucky in the first place to discover the daemonic pkg from the fink project. I created an xml-file zope.xml in /sw/etc/daemons as follows
hi, actually i can't answer your original problem. but i wanted to notify you that i just created a fink (http://fink.sf.net) package for zope 2.5.0. i adopted the start/stop script from the debian distribution and also added support for daemonic. python is also availabe as a fink package. although the package is not yet tested by other people, it works fine for me. maybe, you want to give it a try? i would apreciate any feedback very much! cheers, kilian
Sure I will have a look at your pkg, sounds great. I actually had installed pyhton from fink, too (i.e. python2.2) could not use it for zope though, because that requires python2.1 to compile , I wonder how you did it. I will see. Thanks. On Mon, Apr 22, 2002 at 12:01:08AM +0200, Kilian Koepsell wrote:
On Sun, Apr 21, 2002 at 06:04:02PM +0200, Andreas Reuleaux wrote:
I have so far successfully installed Python 2.1.3 and Zope 2.5.0 on Mac OS X.1.3 (each from src).
However I wanted to start zope at boot time. I was lucky in the first place to discover the daemonic pkg from the fink project. I created an xml-file zope.xml in /sw/etc/daemons as follows
hi,
actually i can't answer your original problem.
but i wanted to notify you that i just created a fink (http://fink.sf.net) package for zope 2.5.0. i adopted the start/stop script from the debian distribution and also added support for daemonic. python is also availabe as a fink package.
although the package is not yet tested by other people, it works fine for me. maybe, you want to give it a try?
i would apreciate any feedback very much!
cheers, kilian
_______________________________________________ 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 finally solved my problem: I had reportlab installed but not pil, which gave me warnings, these where acceptable when starting zope by hand but not when starting at boot time installing pil solved the problem. the zope pkg from fink (which uses python2.1 from fink unstable as you privately mailed me) works great by the way thanks again Andreas On Mon, Apr 22, 2002 at 12:01:08AM +0200, Kilian Koepsell wrote:
On Sun, Apr 21, 2002 at 06:04:02PM +0200, Andreas Reuleaux wrote:
I have so far successfully installed Python 2.1.3 and Zope 2.5.0 on Mac OS X.1.3 (each from src).
However I wanted to start zope at boot time. I was lucky in the first place to discover the daemonic pkg from the fink project. I created an xml-file zope.xml in /sw/etc/daemons as follows
hi,
actually i can't answer your original problem.
but i wanted to notify you that i just created a fink (http://fink.sf.net) package for zope 2.5.0. i adopted the start/stop script from the debian distribution and also added support for daemonic. python is also availabe as a fink package.
although the package is not yet tested by other people, it works fine for me. maybe, you want to give it a try?
i would apreciate any feedback very much!
cheers, kilian
_______________________________________________ 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 )
On Tue, Apr 23, 2002 at 05:38:18AM +0200, Andreas Reuleaux wrote:
To: zope@zope.org Subject: Re: [Zope] Problems with External Methods when starting Zope at boot time, Mac OS X
the zope pkg from fink (which uses python2.1 from fink unstable as you privately mailed me) works great by the way
thank you for the feedback. it will make it's way into the binary distro soon... cheers, kilian
participants (2)
-
Andreas Reuleaux -
Kilian Koepsell