Chokes on GETPPID

Ben Ocean zope at thewebsons.com
Fri Feb 2 09:18:11 EST 2001


At 09:59 AM 2/2/2001 +0000, you wrote:
>Ben Ocean wrote:
> > I'm trying to install Zope and it chokes in this block:
> >  >>>
> > if not READ_ONLY:
> >      pf = open(PID_FILE, 'w')
> >      pid=str(os.getpid())
> >      try: pid=str(os.getppid())+' '+pid
> >      except: pass
> >      pf.write(pid)
> >      pf.close()
> > <<<
> > It specifically identified the *try* statement as the choke-point.
> > How do I trouble-shoot this?
>
>I assume "choke" means that it stopped and printed a
>traceback message?  how about posting that traceback?

...with traceback...
 >>>
Traceback (innermost last):
   File "/apache/Zope-2.2.4-linux2-x86/z2.py", line 710, in ?
     pf = open(PID_FILE, 'w')
IOError: [Errno 13] Permission denied: 
'/apache/Zope-2.2.4-linux2-x86/var/Z2.pid
'<<<

></F>
>
>
>--
>http://mail.python.org/mailman/listinfo/python-list





More information about the Python-list mailing list