I've been working with Zope for a couple of weeks on my local system (Windows XP). I've been try to install on linux all evening but have got so far but haven't got the thing to run. When I think I'm finished and come to running I get the following: ------------------------------------------------------------------------ - [admin@angling bin]$ ./runzope Traceback (most recent call last): File "/usr/local/zope/lib/python/Zope/Startup/run.py", line 49, in ? run() File "/usr/local/zope/lib/python/Zope/Startup/run.py", line 18, in run opts = _setconfig() File "/usr/local/zope/lib/python/Zope/Startup/run.py", line 41, in _setconfig opts.realize(doc="Sorry, no option docs yet.") File "/usr/local/zope/lib/python/zdaemon/zdoptions.py", line 262, in realize self.load_schema() File "/usr/local/zope/lib/python/zdaemon/zdoptions.py", line 303, in load_schema self.schema = ZConfig.loadSchema(self.schemafile) File "/usr/local/zope/lib/python/ZConfig/loader.py", line 37, in loadSchema return SchemaLoader().loadURL(url) File "/usr/local/zope/lib/python/ZConfig/loader.py", line 71, in loadURL return self.loadResource(r) File "/usr/local/zope/lib/python/ZConfig/loader.py", line 137, in loadResource schema = ZConfig.schema.parseResource(resource, self) File "/usr/local/zope/lib/python/ZConfig/schema.py", line 43, in parseResource xml.sax.parse(resource.file, parser) File "/usr/lib/python2.2/xml/sax/__init__.py", line 33, in parse parser.parse(source) File "/usr/lib/python2.2/xml/sax/expatreader.py", line 91, in parse xmlreader.IncrementalParser.parse(self, source) File "/usr/lib/python2.2/xml/sax/xmlreader.py", line 123, in parse self.feed(buffer) File "/usr/lib/python2.2/xml/sax/expatreader.py", line 144, in feed self._parser.Parse(data, isFinal) File "/usr/lib/python2.2/xml/sax/expatreader.py", line 218, in start_element self._cont_handler.startElement(name, AttributesImpl(attrs)) File "/usr/local/zope/lib/python/ZConfig/schema.py", line 115, in startElement getattr(self, "start_" + name)(attrs) File "/usr/local/zope/lib/python/ZConfig/schema.py", line 469, in start_schema keytype, valuetype, datatype = self.get_sect_typeinfo(attrs) File "/usr/local/zope/lib/python/ZConfig/schema.py", line 207, in get_sect_typeinfo datatype = self.get_datatype(attrs, "datatype", "null") File "/usr/local/zope/lib/python/ZConfig/schema.py", line 200, in get_datatype return self._registry.get(dtname) File "/usr/local/zope/lib/python/ZConfig/datatypes.py", line 298, in get t = self.search(name) File "/usr/local/zope/lib/python/ZConfig/datatypes.py", line 323, in search package = __import__(n, g, g, component) File "/usr/local/zope/lib/python/Zope/Startup/datatypes.py", line 18, in ? from ZODB.config import ZODBDatabase File "/usr/local/zope/lib/python/ZODB/__init__.py", line 19, in ? from zLOG import register_subsystem File "/usr/local/zope/lib/python/zLOG/__init__.py", line 88, in ? from EventLogger import log_write, log_time, severity_string, \ File "/usr/local/zope/lib/python/zLOG/EventLogger.py", line 23, in ? import logging ImportError: No module named logging ------------------------------------------------------------------------ - I'm not really too familiar with Linux but can anyone help set me on the right path. Thanks, Simon
Which version of python do you use? You need to use Python 2.3.2 or later Gael zope-bounces@zope.org wrote on 18/05/2004 23.20.19:
I've been working with Zope for a couple of weeks on my local system (Windows XP). I've been try to install on linux all evening but have got so far but haven't got the thing to run. When I think I'm finished and come to running I get the following: ------------------------------------------------------------------------ - [admin@angling bin]$ ./runzope Traceback (most recent call last): File "/usr/local/zope/lib/python/Zope/Startup/run.py", line 49, in ? run() File "/usr/local/zope/lib/python/Zope/Startup/run.py", line 18, in run opts = _setconfig() File "/usr/local/zope/lib/python/Zope/Startup/run.py", line 41, in _setconfig opts.realize(doc="Sorry, no option docs yet.") File "/usr/local/zope/lib/python/zdaemon/zdoptions.py", line 262, in realize self.load_schema() File "/usr/local/zope/lib/python/zdaemon/zdoptions.py", line 303, in load_schema self.schema = ZConfig.loadSchema(self.schemafile) File "/usr/local/zope/lib/python/ZConfig/loader.py", line 37, in loadSchema return SchemaLoader().loadURL(url) File "/usr/local/zope/lib/python/ZConfig/loader.py", line 71, in loadURL return self.loadResource(r) File "/usr/local/zope/lib/python/ZConfig/loader.py", line 137, in loadResource schema = ZConfig.schema.parseResource(resource, self) File "/usr/local/zope/lib/python/ZConfig/schema.py", line 43, in parseResource xml.sax.parse(resource.file, parser) File "/usr/lib/python2.2/xml/sax/__init__.py", line 33, in parse parser.parse(source) File "/usr/lib/python2.2/xml/sax/expatreader.py", line 91, in parse xmlreader.IncrementalParser.parse(self, source) File "/usr/lib/python2.2/xml/sax/xmlreader.py", line 123, in parse self.feed(buffer) File "/usr/lib/python2.2/xml/sax/expatreader.py", line 144, in feed self._parser.Parse(data, isFinal) File "/usr/lib/python2.2/xml/sax/expatreader.py", line 218, in start_element self._cont_handler.startElement(name, AttributesImpl(attrs)) File "/usr/local/zope/lib/python/ZConfig/schema.py", line 115, in startElement getattr(self, "start_" + name)(attrs) File "/usr/local/zope/lib/python/ZConfig/schema.py", line 469, in start_schema keytype, valuetype, datatype = self.get_sect_typeinfo(attrs) File "/usr/local/zope/lib/python/ZConfig/schema.py", line 207, in get_sect_typeinfo datatype = self.get_datatype(attrs, "datatype", "null") File "/usr/local/zope/lib/python/ZConfig/schema.py", line 200, in get_datatype return self._registry.get(dtname) File "/usr/local/zope/lib/python/ZConfig/datatypes.py", line 298, in get t = self.search(name) File "/usr/local/zope/lib/python/ZConfig/datatypes.py", line 323, in search package = __import__(n, g, g, component) File "/usr/local/zope/lib/python/Zope/Startup/datatypes.py", line 18, in ? from ZODB.config import ZODBDatabase File "/usr/local/zope/lib/python/ZODB/__init__.py", line 19, in ? from zLOG import register_subsystem File "/usr/local/zope/lib/python/zLOG/__init__.py", line 88, in ? from EventLogger import log_write, log_time, severity_string, \ File "/usr/local/zope/lib/python/zLOG/EventLogger.py", line 23, in ? import logging ImportError: No module named logging ------------------------------------------------------------------------ - I'm not really too familiar with Linux but can anyone help set me on the right path.
Thanks, Simon
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
I was using 2.2.2 - I was given a message saying this wasn't the best version but it was acceptable. Do you think this is the problem? Thanks, Simon -----Original Message----- From: zope-bounces@zope.org [mailto:zope-bounces@zope.org] On Behalf Of g.lams@itcilo.org Sent: 19 May 2004 08:46 AM To: Zope@zope.org Subject: Re: [Zope] Installation problems Which version of python do you use? You need to use Python 2.3.2 or later Gael zope-bounces@zope.org wrote on 18/05/2004 23.20.19:
I've been working with Zope for a couple of weeks on my local system (Windows XP). I've been try to install on linux all evening but have got so far but haven't got the thing to run. When I think I'm finished and come to running I get the following:
------------------------------------------------------------------------
- [admin@angling bin]$ ./runzope Traceback (most recent call last): File "/usr/local/zope/lib/python/Zope/Startup/run.py", line 49, in ? run() File "/usr/local/zope/lib/python/Zope/Startup/run.py", line 18, in run opts = _setconfig() File "/usr/local/zope/lib/python/Zope/Startup/run.py", line 41, in _setconfig opts.realize(doc="Sorry, no option docs yet.") File "/usr/local/zope/lib/python/zdaemon/zdoptions.py", line 262, in realize self.load_schema() File "/usr/local/zope/lib/python/zdaemon/zdoptions.py", line 303, in load_schema self.schema = ZConfig.loadSchema(self.schemafile) File "/usr/local/zope/lib/python/ZConfig/loader.py", line 37, in loadSchema return SchemaLoader().loadURL(url) File "/usr/local/zope/lib/python/ZConfig/loader.py", line 71, in loadURL return self.loadResource(r) File "/usr/local/zope/lib/python/ZConfig/loader.py", line 137, in loadResource schema = ZConfig.schema.parseResource(resource, self) File "/usr/local/zope/lib/python/ZConfig/schema.py", line 43, in parseResource xml.sax.parse(resource.file, parser) File "/usr/lib/python2.2/xml/sax/__init__.py", line 33, in parse parser.parse(source) File "/usr/lib/python2.2/xml/sax/expatreader.py", line 91, in parse xmlreader.IncrementalParser.parse(self, source) File "/usr/lib/python2.2/xml/sax/xmlreader.py", line 123, in parse self.feed(buffer) File "/usr/lib/python2.2/xml/sax/expatreader.py", line 144, in feed self._parser.Parse(data, isFinal) File "/usr/lib/python2.2/xml/sax/expatreader.py", line 218, in start_element self._cont_handler.startElement(name, AttributesImpl(attrs)) File "/usr/local/zope/lib/python/ZConfig/schema.py", line 115, in startElement getattr(self, "start_" + name)(attrs) File "/usr/local/zope/lib/python/ZConfig/schema.py", line 469, in start_schema keytype, valuetype, datatype = self.get_sect_typeinfo(attrs) File "/usr/local/zope/lib/python/ZConfig/schema.py", line 207, in get_sect_typeinfo datatype = self.get_datatype(attrs, "datatype", "null") File "/usr/local/zope/lib/python/ZConfig/schema.py", line 200, in get_datatype return self._registry.get(dtname) File "/usr/local/zope/lib/python/ZConfig/datatypes.py", line 298, in get t = self.search(name) File "/usr/local/zope/lib/python/ZConfig/datatypes.py", line 323, in search package = __import__(n, g, g, component) File "/usr/local/zope/lib/python/Zope/Startup/datatypes.py", line 18, in ? from ZODB.config import ZODBDatabase File "/usr/local/zope/lib/python/ZODB/__init__.py", line 19, in ? from zLOG import register_subsystem File "/usr/local/zope/lib/python/zLOG/__init__.py", line 88, in ? from EventLogger import log_write, log_time, severity_string, \ File "/usr/local/zope/lib/python/zLOG/EventLogger.py", line 23, in ? import logging ImportError: No module named logging
------------------------------------------------------------------------
- I'm not really too familiar with Linux but can anyone help set me on the right path.
Thanks, Simon
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
I think so, you'd better update Python and I'm pretty sure it will work (update python-devel as well) "Simon Angling" <simon@anglings.com> wrote on 19/05/2004 08.53.43:
I was using 2.2.2 - I was given a message saying this wasn't the best version but it was acceptable. Do you think this is the problem?
Thanks, Simon
-----Original Message----- From: zope-bounces@zope.org [mailto:zope-bounces@zope.org] On Behalf Of g.lams@itcilo.org Sent: 19 May 2004 08:46 AM To: Zope@zope.org Subject: Re: [Zope] Installation problems
Which version of python do you use? You need to use Python 2.3.2 or later
Gael zope-bounces@zope.org wrote on 18/05/2004 23.20.19:
I've been working with Zope for a couple of weeks on my local system (Windows XP). I've been try to install on linux all evening but have got so far but haven't got the thing to run. When I think I'm finished and come to running I get the following:
------------------------------------------------------------------------
- [admin@angling bin]$ ./runzope Traceback (most recent call last): File "/usr/local/zope/lib/python/Zope/Startup/run.py", line 49, in ? run() File "/usr/local/zope/lib/python/Zope/Startup/run.py", line 18, in run opts = _setconfig() File "/usr/local/zope/lib/python/Zope/Startup/run.py", line 41, in _setconfig opts.realize(doc="Sorry, no option docs yet.") File "/usr/local/zope/lib/python/zdaemon/zdoptions.py", line 262, in realize self.load_schema() File "/usr/local/zope/lib/python/zdaemon/zdoptions.py", line 303, in load_schema self.schema = ZConfig.loadSchema(self.schemafile) File "/usr/local/zope/lib/python/ZConfig/loader.py", line 37, in loadSchema return SchemaLoader().loadURL(url) File "/usr/local/zope/lib/python/ZConfig/loader.py", line 71, in loadURL return self.loadResource(r) File "/usr/local/zope/lib/python/ZConfig/loader.py", line 137, in loadResource schema = ZConfig.schema.parseResource(resource, self) File "/usr/local/zope/lib/python/ZConfig/schema.py", line 43, in parseResource xml.sax.parse(resource.file, parser) File "/usr/lib/python2.2/xml/sax/__init__.py", line 33, in parse parser.parse(source) File "/usr/lib/python2.2/xml/sax/expatreader.py", line 91, in parse xmlreader.IncrementalParser.parse(self, source) File "/usr/lib/python2.2/xml/sax/xmlreader.py", line 123, in parse self.feed(buffer) File "/usr/lib/python2.2/xml/sax/expatreader.py", line 144, in feed self._parser.Parse(data, isFinal) File "/usr/lib/python2.2/xml/sax/expatreader.py", line 218, in start_element self._cont_handler.startElement(name, AttributesImpl(attrs)) File "/usr/local/zope/lib/python/ZConfig/schema.py", line 115, in startElement getattr(self, "start_" + name)(attrs) File "/usr/local/zope/lib/python/ZConfig/schema.py", line 469, in start_schema keytype, valuetype, datatype = self.get_sect_typeinfo(attrs) File "/usr/local/zope/lib/python/ZConfig/schema.py", line 207, in get_sect_typeinfo datatype = self.get_datatype(attrs, "datatype", "null") File "/usr/local/zope/lib/python/ZConfig/schema.py", line 200, in get_datatype return self._registry.get(dtname) File "/usr/local/zope/lib/python/ZConfig/datatypes.py", line 298, in get t = self.search(name) File "/usr/local/zope/lib/python/ZConfig/datatypes.py", line 323, in search package = __import__(n, g, g, component) File "/usr/local/zope/lib/python/Zope/Startup/datatypes.py", line 18, in ? from ZODB.config import ZODBDatabase File "/usr/local/zope/lib/python/ZODB/__init__.py", line 19, in ? from zLOG import register_subsystem File "/usr/local/zope/lib/python/zLOG/__init__.py", line 88, in ? from EventLogger import log_write, log_time, severity_string, \ File "/usr/local/zope/lib/python/zLOG/EventLogger.py", line 23, in ? import logging ImportError: No module named logging
------------------------------------------------------------------------
- I'm not really too familiar with Linux but can anyone help set me on the right path.
Thanks, Simon
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
On Wed, 2004-05-19 at 02:53, Simon Angling wrote:
I was using 2.2.2 - I was given a message saying this wasn't the best version but it was acceptable. Do you think this is the problem?
It lied, that's my fault.. sorry! You do indeed need Python 2.3.3. - C
Oh well - serves me right for being lazy! Thanks Chris and Gael for putting me back on track. S -----Original Message----- From: Chris McDonough [mailto:chrism@plope.com] Sent: 19 May 2004 08:58 AM To: simon@anglings.com Cc: Zope@zope.org; g.lams@itcilo.org Subject: RE: [Zope] Installation problems On Wed, 2004-05-19 at 02:53, Simon Angling wrote:
I was using 2.2.2 - I was given a message saying this wasn't the best version but it was acceptable. Do you think this is the problem?
It lied, that's my fault.. sorry! You do indeed need Python 2.3.3. - C
I've managed to get Zope2.7 running on a Linux server but can someone help me out with a script to get it to run automatically on startup. Thanks, Simon
Here's one that works under Redhat/Fedora... within it, replace <<ZOPECTL>> with '/path/to/your/zopectl', put it in /etc/init.d as "zope" then do "chkconfig --add zope". In your zope.conf make sure to set an "effective user" (maybe the user account under which you installed Zope), as Zope will not allow itself to be run as root. http://www.plope.com/software/zope-rpm/zope.init.in - C On Wed, 2004-05-19 at 19:49, Simon Angling wrote:
I've managed to get Zope2.7 running on a Linux server but can someone help me out with a script to get it to run automatically on startup.
Thanks, Simon
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
I finally got around to tackling this and got a bit stuck as I couldn't find /etc/init.d - probably something to do with the way my service provider sets up their servers. Anyway, in the end I added the following line into /etc/rc.local /usr/local/zope/onstance1/bin/zopectl start That was all - seems to work but can't help feeling I've over simplified something somewhere.
It'll work at startup, but the beauty of the init.d system is that it'll switch services on and off as you change runlevel, and also give you a way to restart them. Your fix won't shut Zope down neatly. If you don't have an init.d you may be running on a non-System V Unix. Just in case it proves of use, here's my startup script, /etc/rc.d/init.d/zope which manages Zope and Zeo, all in one little measure. Marvellous!* --start of script-- #!/bin/bash # # /etc/rc.d/init.d/zope # Source function library. . /etc/rc.d/init.d/functions case "$1" in start) echo -n 'Starting zeo daemon: ' /mnt/extended/zeo/bin/zeoctl start /mnt/extended/zeo/bin/zeoctl status echo -n 'Starting zope daemon: ' /mnt/extended/floofs/bin/zopectl start ;; stop) echo -n 'Stopping zope daemon: ' /mnt/extended/floofs/bin/zopectl stop echo -n 'Stopping zeo daemon: ' /mnt/extended/zeo/bin/zeoctl stop ;; reload|restart) $0 stop $0 start ;; status) echo -n 'zeo daemon: ' /mnt/extended/zeo/bin/zeoctl status echo -n 'zope daemon: ' /mnt/extended/floofs/bin/zopectl status ;; *) echo "Usage: /etc/rc.d/init.d/zope {start|stop|restart|reload|status}" exit 1 esac exit 0 --end of script-- *That was a Brit culture joke. Apologies.
I don't know whether it's the good way to do it but I've made a link in /etc/init.d to zopectl. For instance, if you are in /etc/init.d and the opze instance you want to start is in /usr/local/zope/home, it will something like: ln -s /usr/local/zope/home/bin/zopectl zope And then "chkconfig zope on" to make it automatically start. You pay attention to the "effective user" do you? Gael zope-bounces@zope.org wrote on 20/05/2004 01.49.41:
I've managed to get Zope2.7 running on a Linux server but can someone help me out with a script to get it to run automatically on startup.
Thanks, Simon
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
participants (4)
-
Ben Last (Zope) -
Chris McDonough -
g.lams@itcilo.org -
Simon Angling