[Zope] Can't start Zope

Ken Winter ken at sunward.org
Tue Mar 10 16:35:45 EDT 2009


I have done something to my Zope instance that has prevented Zope from
starting (after many years of working fine).  Can you help me find a way
out?

Here's the command and the results:

dhatoffice at 05 /usr/local/zope/instance3/bin # ./zopectl start

/usr/local/zope/298/lib/python/persistent/__init__.py:19: RuntimeWarning:
Python C API version mismatch for module cPersistence: This Python has API
version 1013, module cPersistence has version 1012.
  from cPersistence import Persistent, GHOST, UPTODATE, CHANGED, STICKY
/usr/local/zope/298/lib/python/persistent/__init__.py:19: RuntimeWarning:
Python C API version mismatch for module TimeStamp: This Python has API
version 1013, module TimeStamp has version 1012.
  from cPersistence import Persistent, GHOST, UPTODATE, CHANGED, STICKY
/usr/local/zope/298/lib/python/persistent/__init__.py:20: RuntimeWarning:
Python C API version mismatch for module cPickleCache: This Python has API
version 1013, module cPickleCache has version 1012.
  from cPickleCache import PickleCache
/usr/local/zope/298/lib/python/zope/interface/interface.py:156:
RuntimeWarning: Python C API version mismatch for module
_zope_interface_coptimizations: This Python has API version 1013, module
_zope_interface_coptimizations has version 1012.
  from _zope_interface_coptimizations import SpecificationBase
/usr/local/zope/298/lib/python/ExtensionClass/__init__.py:105:
RuntimeWarning: Python C API version mismatch for module _ExtensionClass:
This Python has API version 1013, module _ExtensionClass has version 1012.
  from _ExtensionClass import *
/usr/local/zope/298/lib/python/AccessControl/ImplC.py:18: RuntimeWarning:
Python C API version mismatch for module cAccessControl: This Python has API
version 1013, module cAccessControl has version 1012.
  from cAccessControl import rolesForPermissionOn, \
/usr/local/zope/298/lib/python/Acquisition/__init__.py:3: RuntimeWarning:
Python C API version mismatch for module _Acquisition: This Python has API
version 1013, module _Acquisition has version 1012.
  from _Acquisition import *
/usr/local/zope/298/lib/python/Record/__init__.py:59: RuntimeWarning: Python
C API version mismatch for module _Record: This Python has API version 1013,
module _Record has version 1012.
  from _Record import Record
Traceback (most recent call last):
  File "/usr/local/zope/298/lib/python/Zope2/Startup/zopectl.py", line 329,
in <module>
    main()
  File "/usr/local/zope/298/lib/python/Zope2/Startup/zopectl.py", line 287,
in main
    options.realize(args)
  File "/usr/local/zope/298/lib/python/Zope2/Startup/zopectl.py", line 95,
in realize
    ZDOptions.realize(self, *args, **kw)
  File "/usr/local/zope/298/lib/python/zdaemon/zdoptions.py", line 273, in
realize
    self.load_schema()
  File "/usr/local/zope/298/lib/python/zdaemon/zdoptions.py", line 321, in
load_schema
    self.schema = ZConfig.loadSchema(self.schemafile)
  File "/usr/local/zope/298/lib/python/ZConfig/loader.py", line 31, in
loadSchema
    return SchemaLoader().loadURL(url)
  File "/usr/local/zope/298/lib/python/ZConfig/loader.py", line 65, in
loadURL
    return self.loadResource(r)
  File "/usr/local/zope/298/lib/python/ZConfig/loader.py", line 159, in
loadResource
    schema = ZConfig.schema.parseResource(resource, self)
  File "/usr/local/zope/298/lib/python/ZConfig/schema.py", line 27, in
parseResource
    xml.sax.parse(resource.file, parser)
  File "/usr/local/lib/python2.5/xml/sax/__init__.py", line 33, in parse
    parser.parse(source)
  File "/usr/local/lib/python2.5/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/local/lib/python2.5/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/local/lib/python2.5/xml/sax/expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/local/lib/python2.5/xml/sax/expatreader.py", line 301, in
start_element
    self._cont_handler.startElement(name, AttributesImpl(attrs))
  File "/usr/local/zope/298/lib/python/ZConfig/schema.py", line 99, in
startElement
    getattr(self, "start_" + name)(attrs)
  File "/usr/local/zope/298/lib/python/ZConfig/schema.py", line 475, in
start_schema
    keytype, valuetype, datatype = self.get_sect_typeinfo(attrs)
  File "/usr/local/zope/298/lib/python/ZConfig/schema.py", line 201, in
get_sect_typeinfo
    datatype = self.get_datatype(attrs, "datatype", "null", base)
  File "/usr/local/zope/298/lib/python/ZConfig/schema.py", line 194, in
get_datatype
    return self._registry.get(dtname)
  File "/usr/local/zope/298/lib/python/ZConfig/datatypes.py", line 398, in
get
    t = self.search(name)
  File "/usr/local/zope/298/lib/python/ZConfig/datatypes.py", line 423, in
search
    package = __import__(n, g, g, component)
  File "/usr/local/zope/298/lib/python/Zope2/Startup/datatypes.py", line 21,
in <module>
    import OFS.Uninstalled
  File "/usr/local/zope/298/lib/python/OFS/Uninstalled.py", line 20, in
<module>
    import SimpleItem, Globals, Acquisition
  File "/usr/local/zope/298/lib/python/OFS/SimpleItem.py", line 26, in
<module>
    import AccessControl.Role, AccessControl.Owned, App.Common
  File "/usr/local/zope/298/lib/python/AccessControl/__init__.py", line 17,
in <module>
    from Implementation import setImplementation
  File "/usr/local/zope/298/lib/python/AccessControl/Implementation.py",
line 98, in <module>
    setImplementation("C")
  File "/usr/local/zope/298/lib/python/AccessControl/Implementation.py",
line 51, in setImplementation
    from AccessControl import ImplC as impl
  File "/usr/local/zope/298/lib/python/AccessControl/ImplC.py", line 18, in
<module>
    from cAccessControl import rolesForPermissionOn, \
  File
"/usr/local/zope/298/lib/python/AccessControl/SimpleObjectPolicies.py", line
82, in <module>
    from DocumentTemplate.DT_Util import TemplateDict
  File "/usr/local/zope/298/lib/python/DocumentTemplate/__init__.py", line
21, in <module>
    from DocumentTemplate import String, File, HTML, HTMLDefault, HTMLFile
  File
"/usr/local/zope/298/lib/python/DocumentTemplate/DocumentTemplate.py", line
112, in <module>
    from DT_String import String, File
  File "/usr/local/zope/298/lib/python/DocumentTemplate/DT_String.py", line
19, in <module>
    from DT_Util import ParseError, InstanceDict, TemplateDict,
render_blocks, str
  File "/usr/local/zope/298/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 "/usr/local/zope/298/lib/python/DocumentTemplate/html_quote.py", line
4, in <module>
    from ustr import ustr
  File "/usr/local/zope/298/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'

If anyone thinks it will help, I'll try to explain what I did that
apparently caused the problem.

~ TIA
~ Ken



More information about the Zope mailing list