[Zope] ImportError: No module named cPersistence when creating new instance

michael nt milne michael.milne at gmail.com
Wed Apr 4 16:07:09 EDT 2007


Hi

I'm getting this when running ./zopectl after creating a new instance. This
was simply using the /utilities/mkzopeinstance.py script from within the
main zope directory and running the system python on it. The original
instance works fine but not the new one. Any ideas?


  File "/home/zopesinstance/Zope-2.9.3-src/lib/python/Zope2/Startup/zopectl.py",
line 308, in ?
    main()
  File "/home/zopesinstance/Zope-2.9.3-src/lib/python/Zope2/Startup/zopectl.py",
line 274, in main
    options.realize(args)
  File "/home/zopesinstance/Zope-2.9.3-src/lib/python/Zope2/Startup/zopectl.py",
line 91, in realize
    ZDOptions.realize(self, *args, **kw)
  File "/home/zopesinstance/Zope-2.9.3-src/lib/python/zdaemon/zdoptions.py",
line 273, in realize
    self.load_schema()
  File "/home/zopesinstance/Zope-2.9.3-src/lib/python/zdaemon/zdoptions.py",
line 321, in load_schema
    self.schema = ZConfig.loadSchema(self.schemafile)
  File "/home/zopesinstance/Zope-2.9.3-src/lib/python/ZConfig/loader.py",
line 31, in loadSchema
    return SchemaLoader().loadURL(url)
  File "/home/zopesinstance/Zope-2.9.3-src/lib/python/ZConfig/loader.py",
line 65, in loadURL
    return self.loadResource(r)
  File "/home/zopesinstance/Zope-2.9.3-src/lib/python/ZConfig/loader.py",
line 159, in loadResource
    schema = ZConfig.schema.parseResource(resource, self)
  File "/home/zopesinstance/Zope-2.9.3-src/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 "/home/zopesinstance/Zope-2.9.3-src/lib/python/ZConfig/schema.py",
line 99, in startElement
    getattr(self, "start_" + name)(attrs)
  File "/home/zopesinstance/Zope-2.9.3-src/lib/python/ZConfig/schema.py",
line 475, in start_schema
    keytype, valuetype, datatype = self.get_sect_typeinfo(attrs)
  File "/home/zopesinstance/Zope-2.9.3-src/lib/python/ZConfig/schema.py",
line 201, in get_sect_typeinfo
    datatype = self.get_datatype(attrs, "datatype", "null", base)
  File "/home/zopesinstance/Zope-2.9.3-src/lib/python/ZConfig/schema.py",
line 194, in get_datatype
    return self._registry.get(dtname)
  File "/home/zopesinstance/Zope-2.9.3-src/lib/python/ZConfig/datatypes.py",
line 398, in get
    t = self.search(name)
  File "/home/zopesinstance/Zope-2.9.3-src/lib/python/ZConfig/datatypes.py",
line 423, in search
    package = __import__(n, g, g, component)
  File "/home/zopesinstance/Zope-2.9.3-src/lib/python/Zope2/Startup/datatypes.py",
line 20, in ?
    from ZODB.config import ZODBDatabase
  File "/home/zopesinstance/Zope-2.9.3-src/lib/python/ZODB/__init__.py",
line 21, in ?
    from persistent import TimeStamp
  File "/home/zopesinstance/Zope-2.9.3-src/lib/python/persistent/__init__.py",
line 19, in ?
    from cPersistence import Persistent, GHOST, UPTODATE, CHANGED, STICKY
ImportError: No module named cPersistence
-- 
michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20070404/4cf609ee/attachment.htm


More information about the Zope mailing list