Karl Anderson wrote:
os.environ['INSTANCE_HOME'] = '/u1/Portal/Devel/ZapCentral' # path to the top of the instance os.chdir('/u1/Portal/Devel/Zope-2_2-branch/lib/python') # lib/python dir in the server tree os.environ['ZEO_SERVER_PORT'] = '5802' import ZServer
That line doesn't appear to work, or be needed :-S (it gives me ImportError: No module named ZServer) Anyway, with the following (in a script called zeo_debug.py): import os os.environ['INSTANCE_HOME'] = r'E:\zope\current' # path to the top of the instance os.chdir(r'E:\zope\2.3.1b1\lib\python') # lib/python dir in the server tree os.environ['ZEO_SERVER_PORT'] = '5802' import Zope app = Zope.app() ...I get:
import zeo_debug Traceback (innermost last): File "<stdin>", line 1, in ? File "zeo_debug.py", line 5, in ? File "E:\Zope\23C76D~1.1B1\lib\python\Zope\__init__.py", line 118, in ? DB=ZODB.DB(DB) File "E:\Zope\23C76D~1.1B1\lib\python\ZODB\DB.py", line 144, in __init__ storage.registerDB(self, None) File "E:\Zope\2.3.1b1\lib\python\ZEO\ClientStorage.py", line 193, in registerD B self._startup() File "E:\Zope\2.3.1b1\lib\python\ZEO\ClientStorage.py", line 197, in _startup if not self._call.connect(): File "E:\Zope\2.3.1b1\lib\python\ZEO\zrpc.py", line 150, in connect self.aq_parent.notifyConnected(s) File "E:\Zope\2.3.1b1\lib\python\ZEO\ClientStorage.py", line 218, in notifyCon nected self._call.finishConnect(s) File "E:\Zope\2.3.1b1\lib\python\ZEO\zrpc.py", line 154, in finishConnect SizedMessageAsyncConnection.__init__(self, s, {}) File "E:\Zope\2.3.1b1\lib\python\ZEO\smac.py", line 100, in __init__ SizedMessageAsyncConnection.inheritedAttribute( TypeError: too many arguments; expected 2, got 3
Any ideas what I'm going wrong? cheers, Chris