Hello, After messing around for a long time, I am finally beginning to develop my website. :) I am having problems starting Zope. I've never had problems starting Zope. RH 7.1 I have an updated cvs Zope installed. I have an updated cvs Python installed. It is the cvs Python which is called on the commandline or via /usr/local/bin/python. Installing Zope via wo_pcgi.py and then starting Zope via ./z2.py gives me this: the -h output ... -W port The WebDAV: command not found ./z2.py: line 288: syntax error near unexpected token `sys.path.insert(0,' ./z2.py: line 288: ` sys.path.insert(0, '%s/lib/python' % swhome)' I don't know if I've encountered a bug or did something wrong. Any suggestions appreciated. Thanks, Jimmie Houchin
Jimmie Houchin writes:
Installing Zope via wo_pcgi.py and then starting Zope via ./z2.py gives me this:
the -h output .... -W port The WebDAV: command not found ../z2.py: line 288: syntax error near unexpected token `sys.path.insert(0,' ../z2.py: line 288: ` sys.path.insert(0, '%s/lib/python' % swhome)' Someone broke the code near line 288 of "z2.py".
Look at it. You should be especially worried about indentation. Convert <tab> to spaces and see whether the indentation is right. Dieter
Thanks Dieter for the reply. Sorry for the delay in the reply. The problem was on my home machine and I've been at work. I don't know that anyone broke code, other than Netscape breaking my lines in the message. :) I duplicated the message by typing it into Netscape. Look at the reply to myself for more info. I still don't know where there error is but it doesn't work with the cvs Python. Thanks again. Jimmie Houchin Dieter Maurer wrote:
Jimmie Houchin writes:
Installing Zope via wo_pcgi.py and then starting Zope via ./z2.py gives me this:
the -h output .... -W port The WebDAV: command not found ../z2.py: line 288: syntax error near unexpected token `sys.path.insert(0,' ../z2.py: line 288: ` sys.path.insert(0, '%s/lib/python' % swhome)' Someone broke the code near line 288 of "z2.py".
Look at it. You should be especially worried about indentation. Convert <tab> to spaces and see whether the indentation is right.
Dieter
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Updating my previous message. The problem must be in the cvs version of Python. I downloaded the tarball of 2.1, compiled. Recompiled Zope. ./start Up and running. :) In addition to the error below when doing ./z2.py I got this when doing ./start with the cvs Python: ./start /usr/local/lib/python2.2/FCNTL.py:7: DeprecationWarning: ... (don't want to type it all) ditto... ----- 2001-07-06... PANIC(300) z2 Startup exception Traceback ... (Object: ZLogger) File /usr/local/zope/Zope2/lib/python/Zope/__init__.py, line 95, in ? ... (Object: Transformer) ... File /usr/local/zope/Zope2/lib/python/RestrictedPython/compiler/transformer.py, line 695, in com_node KeyError: 313 Lots not included. Hopefully it is enough. I can duplicate if necessary to provide more information. Does anyone have a way to copy text from a GnomeTerminal window? Or is there a better way that I can do this to be able to provide accurate information? Anything I can do to assist better, I would be happy to do. Thanks again. Jimmie Houchin Jimmie Houchin wrote:
Hello,
After messing around for a long time, I am finally beginning to develop my website. :) I am having problems starting Zope. I've never had problems starting Zope.
RH 7.1 I have an updated cvs Zope installed. I have an updated cvs Python installed. It is the cvs Python which is called on the commandline or via /usr/local/bin/python.
Installing Zope via wo_pcgi.py and then starting Zope via ./z2.py gives me this:
the -h output ... -W port The WebDAV: command not found ./z2.py: line 288: syntax error near unexpected token `sys.path.insert(0,' ./z2.py: line 288: ` sys.path.insert(0, '%s/lib/python' % swhome)'
I don't know if I've encountered a bug or did something wrong. Any suggestions appreciated.
Thanks,
Jimmie Houchin
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Zope 2.4 will not (yet) run with Python 2.2 because there is a byte-code related problem. Please use Python 2.1 instead. Andreas ----- Original Message ----- From: "Jimmie Houchin" <jhouchin@texoma.net> To: <zope-dev@zope.org> Sent: Friday, July 06, 2001 7:03 PM Subject: Re: [Zope-dev] Problem starting Zope
Updating my previous message.
The problem must be in the cvs version of Python. I downloaded the tarball of 2.1, compiled. Recompiled Zope. ./start Up and running. :)
In addition to the error below when doing ./z2.py I got this when doing ./start with the cvs Python:
./start /usr/local/lib/python2.2/FCNTL.py:7: DeprecationWarning: ... (don't want to type it all) ditto... ----- 2001-07-06... PANIC(300) z2 Startup exception Traceback ... (Object: ZLogger) File /usr/local/zope/Zope2/lib/python/Zope/__init__.py, line 95, in ? ... (Object: Transformer) ... File /usr/local/zope/Zope2/lib/python/RestrictedPython/compiler/transformer.py, line 695, in com_node KeyError: 313
Lots not included.
Hopefully it is enough. I can duplicate if necessary to provide more information.
Does anyone have a way to copy text from a GnomeTerminal window? Or is there a better way that I can do this to be able to provide accurate information? Anything I can do to assist better, I would be happy to do.
Thanks again.
Jimmie Houchin
Jimmie Houchin wrote:
Hello,
After messing around for a long time, I am finally beginning to develop my website. :) I am having problems starting Zope. I've never had problems starting Zope.
RH 7.1 I have an updated cvs Zope installed. I have an updated cvs Python installed. It is the cvs Python which is called on the commandline or via /usr/local/bin/python.
Installing Zope via wo_pcgi.py and then starting Zope via ./z2.py gives me this:
the -h output ... -W port The WebDAV: command not found ./z2.py: line 288: syntax error near unexpected token `sys.path.insert(0,' ./z2.py: line 288: ` sys.path.insert(0, '%s/lib/python' % swhome)'
I don't know if I've encountered a bug or did something wrong. Any suggestions appreciated.
Thanks,
Jimmie Houchin
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
participants (3)
-
Andreas Jung -
Dieter Maurer -
Jimmie Houchin