[Zope] Problems starting Zope 2.9.6 (ZEO starts fine)

Ben shadroth at gmail.com
Wed Mar 7 18:35:18 EST 2007


I have setup Zope with ZEO on CentOS4.4, with the intention of running
a Plone site.

I previously used the same configuration to get Zope 2.9.3 with ZEO
running on CentOS 3.7

 * CentOS is setup without SELinux.

 * Python 2.5 is installed in /opt/python

 * Zeo starts fine, using /opt/zope/zeo/bin/zeoctl start

I have created three zope instances in /opt/zope/pub0 /opt/zope/mem0
/opt/zope/sec0

When I try to start any of them, I get:
[zope at centos4 zope]$ pub0/bin/zopectl start
Traceback (most recent call last):
  File "/opt/zope/zope/lib/python/Zope2/Startup/zopectl.py", line 322,
in <module>
    main()
  File "/opt/zope/zope/lib/python/Zope2/Startup/zopectl.py", line 280, in main
    options.realize(args)
  File "/opt/zope/zope/lib/python/Zope2/Startup/zopectl.py", line 91, in realize
    ZDOptions.realize(self, *args, **kw)
  File "/opt/zope/z2.9.6-p2.5/lib/python/zdaemon/zdoptions.py", line
273, in realize
    self.load_schema()
  File "/opt/zope/z2.9.6-p2.5/lib/python/zdaemon/zdoptions.py", line
321, in load_schema
    self.schema = ZConfig.loadSchema(self.schemafile)
  File "/opt/zope/z2.9.6-p2.5/lib/python/ZConfig/loader.py", line 31,
in loadSchema
    return SchemaLoader().loadURL(url)
  File "/opt/zope/z2.9.6-p2.5/lib/python/ZConfig/loader.py", line 65, in loadURL
    return self.loadResource(r)
  File "/opt/zope/z2.9.6-p2.5/lib/python/ZConfig/loader.py", line 159,
in loadResource
    schema = ZConfig.schema.parseResource(resource, self)
  File "/opt/zope/z2.9.6-p2.5/lib/python/ZConfig/schema.py", line 27,
in parseResource
    xml.sax.parse(resource.file, parser)
  File "/opt/python/lib/python2.5/xml/sax/__init__.py", line 33, in parse
    parser.parse(source)
  File "/opt/python/lib/python2.5/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/opt/python/lib/python2.5/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/opt/python/lib/python2.5/xml/sax/expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "/opt/python/lib/python2.5/xml/sax/expatreader.py", line 301,
in start_element
    self._cont_handler.startElement(name, AttributesImpl(attrs))
  File "/opt/zope/z2.9.6-p2.5/lib/python/ZConfig/schema.py", line 99,
in startElement
    getattr(self, "start_" + name)(attrs)
  File "/opt/zope/z2.9.6-p2.5/lib/python/ZConfig/schema.py", line 475,
in start_schema
    keytype, valuetype, datatype = self.get_sect_typeinfo(attrs)
  File "/opt/zope/z2.9.6-p2.5/lib/python/ZConfig/schema.py", line 201,
in get_sect_typeinfo
    datatype = self.get_datatype(attrs, "datatype", "null", base)
  File "/opt/zope/z2.9.6-p2.5/lib/python/ZConfig/schema.py", line 194,
in get_datatype
    return self._registry.get(dtname)
  File "/opt/zope/z2.9.6-p2.5/lib/python/ZConfig/datatypes.py", line 398, in get
    t = self.search(name)
  File "/opt/zope/z2.9.6-p2.5/lib/python/ZConfig/datatypes.py", line
423, in search
    package = __import__(n, g, g, component)
  File "/opt/zope/z2.9.6-p2.5/lib/python/Zope2/Startup/datatypes.py",
line 21, in <module>
    import OFS.Uninstalled
  File "/opt/zope/z2.9.6-p2.5/lib/python/OFS/Uninstalled.py", line 20,
in <module>
    import SimpleItem, Globals, Acquisition
  File "/opt/zope/z2.9.6-p2.5/lib/python/OFS/SimpleItem.py", line 26,
in <module>
    import AccessControl.Role, AccessControl.Owned, App.Common
  File "/opt/zope/z2.9.6-p2.5/lib/python/AccessControl/__init__.py",
line 17, in <module>
    from Implementation import setImplementation
  File "/opt/zope/z2.9.6-p2.5/lib/python/AccessControl/Implementation.py",
line 98, in <module>
    setImplementation("C")
  File "/opt/zope/z2.9.6-p2.5/lib/python/AccessControl/Implementation.py",
line 51, in setImplementation
    from AccessControl import ImplC as impl
  File "/opt/zope/z2.9.6-p2.5/lib/python/AccessControl/ImplC.py", line
18, in <module>
    from cAccessControl import rolesForPermissionOn, \
  File "/opt/zope/z2.9.6-p2.5/lib/python/AccessControl/SimpleObjectPolicies.py",
line 82, in <module>
    from DocumentTemplate.DT_Util import TemplateDict
  File "/opt/zope/z2.9.6-p2.5/lib/python/DocumentTemplate/__init__.py",
line 21, in <module>
    from DocumentTemplate import String, File, HTML, HTMLDefault, HTMLFile
  File "/opt/zope/z2.9.6-p2.5/lib/python/DocumentTemplate/DocumentTemplate.py",
line 112, in <module>
    from DT_String import String, File
  File "/opt/zope/z2.9.6-p2.5/lib/python/DocumentTemplate/DT_String.py",
line 19, in <module>
    from DT_Util import ParseError, InstanceDict, TemplateDict,
render_blocks, str
  File "/opt/zope/z2.9.6-p2.5/lib/python/DocumentTemplate/DT_Util.py",
line 19, in <module>
    from html_quote import html_quote, ustr # for import by other
modules, dont remove!
  File "/opt/zope/z2.9.6-p2.5/lib/python/DocumentTemplate/html_quote.py",
line 4, in <module>
    from ustr import ustr
  File "/opt/zope/z2.9.6-p2.5/lib/python/DocumentTemplate/ustr.py",
line 18, in <module>
    nasty_exception_str = Exception.__str__.im_func
AttributeError: 'wrapper_descriptor' object has no attribute 'im_func'


More information about the Zope mailing list