Zope Version (unreleased version, python 2.3.4, linux2) actually Zope-2.7.1-b2 Python Version 2.3.4 ---------- Trying to track down a POSKeyError, I got through my usual process: [root@server2 local]# python2.3
import ZODB, Zope app = Zope.app()
And get an error. This is the first time I'm doing this with 2.7, is this the problem? Any ideas on how to resolve this? ---------------- Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/local/zope/SH/lib/python/Zope/__init__.py", line 51, in app startup() File "/usr/local/zope/SH/lib/python/Zope/__init__.py", line 47, in startup _startup() File "/usr/local/zope/SHlib/python/Zope/App/startup.py", line 57, in startup DB = configuration.dbtab.getDatabase('/', is_root=1) AttributeError: 'NoneType' object has no attribute 'getDatabase' -- Mark Gibson <mark@dimensional.com>
[root@server2 local]# python2.3
import ZODB, Zope app = Zope.app()
And get an error. This is the first time I'm doing this with 2.7, is this the problem? Any ideas on how to resolve this?
With Zope 2.7 you should use the zopectl script that comes with it instead of manually importing zope. Running "zopectl debug" automatically does what you are trying to do. jens
On Wed, Jun 16, 2004 at 12:18:03PM -0600, Mark Gibson wrote:
Zope Version (unreleased version, python 2.3.4, linux2) actually Zope-2.7.1-b2 Python Version 2.3.4
----------
Trying to track down a POSKeyError, I got through my usual process:
[root@server2 local]# python2.3
import ZODB, Zope app = Zope.app()
And get an error. This is the first time I'm doing this with 2.7, is this the problem? Any ideas on how to resolve this?
Yep, there's a new step needed as of 2.7: import Zope Zope.configure('/path/to/zope.conf') app = Zope.app() -- Paul Winkler http://www.slinkp.com
participants (3)
-
Jens Vagelpohl -
Mark Gibson -
Paul Winkler