[Zope] ImportError: No module named cPersistence
Michael Long
mlong at datalong.com
Thu Jan 29 00:06:15 EST 2004
Hi,
In the following environment I get this traceback. What does anyone have any
suggestions on what is wrong.
zope 2.7.0-rc1
MySQL-python-0.9.3b1
ZMySQLDA-2.0.8
MySQL-Max-5.0.0-0
edev:/opt/zopeInstance/bin # ./runzope
Traceback (most recent call last):
File "/opt/Zope-2.7.0-rc1/lib/python/Zope/Startup/run.py", line 49, in ?
run()
File "/opt/Zope-2.7.0-rc1/lib/python/Zope/Startup/run.py", line 18, in run
opts = _setconfig()
File "/opt/Zope-2.7.0-rc1/lib/python/Zope/Startup/run.py", line 41, in _setconfig
opts.realize(doc="Sorry, no option docs yet.")
File "/opt/Zope-2.7.0-rc1/lib/python/zdaemon/zdoptions.py", line 262, in realize
self.load_schema()
File "/opt/Zope-2.7.0-rc1/lib/python/zdaemon/zdoptions.py", line 303, in load_schema
self.schema = ZConfig.loadSchema(self.schemafile)
File "/opt/Zope-2.7.0-rc1/lib/python/ZConfig/loader.py", line 37, in loadSchema
return SchemaLoader().loadURL(url)
File "/opt/Zope-2.7.0-rc1/lib/python/ZConfig/loader.py", line 71, in loadURL
return self.loadResource(r)
File "/opt/Zope-2.7.0-rc1/lib/python/ZConfig/loader.py", line 137, in loadResource
schema = ZConfig.schema.parseResource(resource, self)
File "/opt/Zope-2.7.0-rc1/lib/python/ZConfig/schema.py", line 43, 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/Zope-2.7.0-rc1/lib/python/ZConfig/schema.py", line 115, in startElement
getattr(self, "start_" + name)(attrs)
File "/opt/Zope-2.7.0-rc1/lib/python/ZConfig/schema.py", line 469, in start_schema
keytype, valuetype, datatype = self.get_sect_typeinfo(attrs)
File "/opt/Zope-2.7.0-rc1/lib/python/ZConfig/schema.py", line 207, in
get_sect_typeinfo
datatype = self.get_datatype(attrs, "datatype", "null")
File "/opt/Zope-2.7.0-rc1/lib/python/ZConfig/schema.py", line 200, in get_datatype
return self._registry.get(dtname)
File "/opt/Zope-2.7.0-rc1/lib/python/ZConfig/datatypes.py", line 298, in get
t = self.search(name)
File "/opt/Zope-2.7.0-rc1/lib/python/ZConfig/datatypes.py", line 323, in search
package = __import__(n, g, g, component)
File "/opt/Zope-2.7.0-rc1/lib/python/Zope/Startup/datatypes.py", line 18, in ?
from ZODB.config import ZODBDatabase
File "/opt/Zope-2.7.0-rc1/lib/python/ZODB/__init__.py", line 18, in ?
import cPersistence, Persistence
ImportError: No module named cPersistence
Thanks,
Mike
More information about the Zope
mailing list