[Zope] zctl.py

Todd Hepler thepler@caspiannetworks.com
Fri, 10 Aug 2001 15:28:44 -0500


I'm having trouble with the zctl.py script off of
http://www.zope.org/Members/dshaw/AdvancedSiteSetup

It worked for me with Python-1.5.2 and Zope-2.3.3-src. Now I'm trying
it with Python-2.1.1 and Zope-2.4.0-src and I get:

> ./zctl.py start
Traceback (most recent call last):
  File "./zctl.py", line 331, in ?
    _dispatch()
  File "./zctl.py", line 328, in _dispatch
    globals()[action](args)
  File "./zctl.py", line 131, in start
    start_zeo(zeo_args)
  File "./zctl.py", line 144, in start_zeo
    if host == 'localhost' and not _check_for_service(host, port):
  File "./zctl.py", line 300, in _check_for_service
    s.connect(host, int(port))
TypeError: connect() takes exactly 1 argument (2 given)

Is this zctl.py supposed to work with Python-2.1.1? Did the args for
socket.socket.connect() change from 1.5.2 to 2.1.1?

-todd