[Zope] Running ./zopectl gives NameError: name 'set' is not defined

michael nt milne michael.milne at gmail.com
Fri Feb 23 18:08:04 EST 2007


Hi

On trying to make a new zopeinstance from a Plone 2.5 instance created using
the unified installer I am getting the following error when I attempt to run
./zopectl and start the instance.

Traceback (most recent call last):
  File "/opt/Plone-2.5/lib/python/Zope2/Startup/run.py", line 56, in ?
    run()
  File "/opt/Plone-2.5/lib/python/Zope2/Startup/run.py", line 19, in run
    opts = _setconfig()
  File "/opt/Plone-2.5/lib/python/Zope2/Startup/run.py", line 48, in
_setconfig
    opts.realize(doc="Sorry, no option docs yet.")
  File "/opt/Plone-2.5/lib/python/zdaemon/zdoptions.py", line 273, in
realize
    self.load_schema()
  File "/opt/Plone-2.5/lib/python/zdaemon/zdoptions.py", line 321, in
load_schema
    self.schema = ZConfig.loadSchema(self.schemafile)
  File "/opt/Plone-2.5/lib/python/ZConfig/loader.py", line 31, in loadSchema
    return SchemaLoader().loadURL(url)
  File "/opt/Plone-2.5/lib/python/ZConfig/loader.py", line 65, in loadURL
    return self.loadResource(r)
  File "/opt/Plone-2.5/lib/python/ZConfig/loader.py", line 159, in
loadResource
    schema = ZConfig.schema.parseResource(resource, self)
  File "/opt/Plone-2.5/lib/python/ZConfig/schema.py", line 27, in
parseResource
    xml.sax.parse(resource.file, parser)
  File "/usr/local/lib/python2.3/xml/sax/__init__.py", line 33, in parse
    parser.parse(source)
  File "/usr/local/lib/python2.3/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/local/lib/python2.3/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/local/lib/python2.3/xml/sax/expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/local/lib/python2.3/xml/sax/expatreader.py", line 300, in
start_element
    self._cont_handler.startElement(name, AttributesImpl(attrs))
  File "/opt/Plone-2.5/lib/python/ZConfig/schema.py", line 99, in
startElement
    getattr(self, "start_" + name)(attrs)
  File "/opt/Plone-2.5/lib/python/ZConfig/schema.py", line 475, in
start_schema
    keytype, valuetype, datatype = self.get_sect_typeinfo(attrs)
  File "/opt/Plone-2.5/lib/python/ZConfig/schema.py", line 201, in
get_sect_typeinfo
    datatype = self.get_datatype(attrs, "datatype", "null", base)
  File "/opt/Plone-2.5/lib/python/ZConfig/schema.py", line 194, in
get_datatype
    return self._registry.get(dtname)
  File "/opt/Plone-2.5/lib/python/ZConfig/datatypes.py", line 398, in get
    t = self.search(name)
  File "/opt/Plone-2.5/lib/python/ZConfig/datatypes.py", line 423, in search
    package = __import__(n, g, g, component)
  File "/opt/Plone-2.5/lib/python/Zope2/Startup/datatypes.py", line 21, in ?
    import OFS.Uninstalled
  File "/opt/Plone-2.5/lib/python/OFS/Uninstalled.py", line 20, in ?
    import SimpleItem, Globals, Acquisition
  File "/opt/Plone-2.5/lib/python/OFS/SimpleItem.py", line 26, in ?
    import AccessControl.Role, AccessControl.Owned, App.Common
  File "/opt/Plone-2.5/lib/python/AccessControl/__init__.py", line 17, in ?
    from Implementation import setImplementation
  File "/opt/Plone-2.5/lib/python/AccessControl/Implementation.py", line 98,
in ?
    setImplementation("C")
  File "/opt/Plone-2.5/lib/python/AccessControl/Implementation.py", line 51,
in setImplementation
    from AccessControl import ImplC as impl
  File "/opt/Plone-2.5/lib/python/AccessControl/ImplC.py", line 18, in ?
    from cAccessControl import rolesForPermissionOn, \
  File "/opt/Plone-2.5/lib/python/AccessControl/SimpleObjectPolicies.py",
line 82, in ?
    from DocumentTemplate.DT_Util import TemplateDict
  File "/opt/Plone-2.5/lib/python/DocumentTemplate/__init__.py", line 21, in
?
    from DocumentTemplate import String, File, HTML, HTMLDefault, HTMLFile
  File "/opt/Plone-2.5/lib/python/DocumentTemplate/DocumentTemplate.py",
line 112, in ?
    from DT_String import String, File
  File "/opt/Plone-2.5/lib/python/DocumentTemplate/DT_String.py", line 19,
in ?
    from DT_Util import ParseError, InstanceDict, TemplateDict,
render_blocks, str
  File "/opt/Plone-2.5/lib/python/DocumentTemplate/DT_Util.py", line 67, in
?
    from ZPublisher.TaintedString import TaintedString
  File "/opt/Plone-2.5/lib/python/ZPublisher/__init__.py", line 24, in ?
    from Publish import publish_module, Retry
  File "/opt/Plone-2.5/lib/python/ZPublisher/Publish.py", line 20, in ?
    from Request import Request
  File "/opt/Plone-2.5/lib/python/ZPublisher/Request.py", line 13, in ?
    import HTTPRequest
  File "/opt/Plone-2.5/lib/python/ZPublisher/HTTPRequest.py", line 18, in ?
    from BaseRequest import BaseRequest
  File "/opt/Plone-2.5/lib/python/ZPublisher/BaseRequest.py", line 583, in ?
    itypes[set] = 0
NameError: name 'set' is not defined


Thanks


-- 
michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20070223/0c5af73c/attachment.htm


More information about the Zope mailing list