[Zope] Problem with zopectl debug
Manuel Vazquez Acosta
mva.led at gmail.com
Sat Apr 5 22:23:54 EDT 2008
Hi all,
I'm trying to debug a Plone site with zopectl debug. I'm getting this error:
Traceback (most recent call last):
File "<string>", line 1, in ?
File "/home/manu/bin/opt/Zope-2.9.8f/lib/python/Zope2/Startup/run.py",
line 31, in configure
opts = _setconfig(configfile)
File "/home/manu/bin/opt/Zope-2.9.8f/lib/python/Zope2/Startup/run.py",
line 46, in _setconfig
opts.realize(doc="Sorry, no option docs yet.", raise_getopt_errs=0)
File "/home/manu/bin/opt/Zope-2.9.8f/lib/python/zdaemon/zdoptions.py",
line 273, in realize
self.load_schema()
File "/home/manu/bin/opt/Zope-2.9.8f/lib/python/zdaemon/zdoptions.py",
line 321, in load_schema
self.schema = ZConfig.loadSchema(self.schemafile)
File "/home/manu/bin/opt/Zope-2.9.8f/lib/python/ZConfig/loader.py",
line 31, in loadSchema
return SchemaLoader().loadURL(url)
File "/home/manu/bin/opt/Zope-2.9.8f/lib/python/ZConfig/loader.py",
line 65, in loadURL
return self.loadResource(r)
File "/home/manu/bin/opt/Zope-2.9.8f/lib/python/ZConfig/loader.py",
line 159, in loadResource
schema = ZConfig.schema.parseResource(resource, self)
File "/home/manu/bin/opt/Zope-2.9.8f/lib/python/ZConfig/schema.py",
line 27, in parseResource
xml.sax.parse(resource.file, parser)
File "/usr/lib/python2.4/site-packages/_xmlplus/sax/__init__.py", line
31, in parse
parser.parse(filename_or_stream)
File "/usr/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py",
line 109, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/lib/python2.4/site-packages/_xmlplus/sax/xmlreader.py",
line 123, in parse
self.feed(buffer)
File "/usr/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py",
line 216, in feed
self._parser.Parse(data, isFinal)
File "/usr/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py",
line 312, in start_element
self._cont_handler.startElement(name, AttributesImpl(attrs))
File "/home/manu/bin/opt/Zope-2.9.8f/lib/python/ZConfig/schema.py",
line 99, in startElement
getattr(self, "start_" + name)(attrs)
File "/home/manu/bin/opt/Zope-2.9.8f/lib/python/ZConfig/schema.py",
line 475, in start_schema
keytype, valuetype, datatype = self.get_sect_typeinfo(attrs)
File "/home/manu/bin/opt/Zope-2.9.8f/lib/python/ZConfig/schema.py",
line 201, in get_sect_typeinfo
datatype = self.get_datatype(attrs, "datatype", "null", base)
File "/home/manu/bin/opt/Zope-2.9.8f/lib/python/ZConfig/schema.py",
line 194, in get_datatype
return self._registry.get(dtname)
File "/home/manu/bin/opt/Zope-2.9.8f/lib/python/ZConfig/datatypes.py",
line 398, in get
t = self.search(name)
File "/home/manu/bin/opt/Zope-2.9.8f/lib/python/ZConfig/datatypes.py",
line 423, in search
package = __import__(n, g, g, component)
File
"/home/manu/bin/opt/Zope-2.9.8f/lib/python/Zope2/Startup/datatypes.py",
line 21, in ?
import OFS.Uninstalled
File "/home/manu/bin/opt/Zope-2.9.8f/lib/python/OFS/Uninstalled.py",
line 20, in ?
import SimpleItem, Globals, Acquisition
File "/home/manu/bin/opt/Zope-2.9.8f/lib/python/OFS/SimpleItem.py",
line 26, in ?
import AccessControl.Role, AccessControl.Owned, App.Common
File
"/home/manu/bin/opt/Zope-2.9.8f/lib/python/AccessControl/Role.py", line
19, in ?
from Globals import DTMLFile, MessageDialog, Dictionary
File "/home/manu/bin/opt/Zope-2.9.8f/lib/python/Globals/__init__.py",
line 23, in ?
import Acquisition, ComputedAttribute, App.PersistentExtra, os
File
"/home/manu/bin/opt/Zope-2.9.8f/lib/python/App/PersistentExtra.py", line
24, in ?
from class_init import default__class_init__
File "/home/manu/bin/opt/Zope-2.9.8f/lib/python/App/class_init.py",
line 16, in ?
import AccessControl.Permission
File
"/home/manu/bin/opt/Zope-2.9.8f/lib/python/AccessControl/Permission.py",
line 18, in ?
import string, Products, Globals
File "Products/__init__.py", line 4, in ?
from Products.CMFCore.DirectoryView import registerDirectory
File "/usr/lib/python2.4/site-packages/PIL/__init__.py", line 20, in ?
File "/var/zope/zope-prensa/Products/CMFCore/PortalObject.py", line
18, in ?
ImportError: cannot import name InitializeClass
>>>
I created my instance by compiling Zope-2.9.8-final and restoring the
Data.fs from a repozo backup.
The directory /var/zope/zope-prensa is where the "real" instance use to
be. However for development and debuging I set up my working instance in
my home.
Any ideas?
Best regards,
Manuel.
More information about the Zope
mailing list