[Setup] ImportError: No module named decorator

dgroos djgroos at gmail.com
Sat Oct 17 00:52:53 UTC 2009


Hi.  I'm a newbie and am trying to fix a plone 3.1.7 site that we science
teachers us in our classrooms.  It is running on an Ubuntu 8.04 server.  The
site hasn't worked for a while.  Recently I've succeeded in getting the
buildout to function correctly.  When I try to start the site with
bin/instance start I'm getting error messages.  I've googled extensively,
both on this forum and out (
http://n2.nabble.com/plone-app-memberschema-in-a-plone3-3-buildout-tp2946328p2946328.html
for example )and experimented with pinning down various versions of
different products in the buildout.cfg file.  Here is the error message I
get upon running sudo ./bin/instance start:

dgroos at plone:/srv/rhs_plone$ sudo ./bin/instance start
Traceback (most recent call last):
  File "./bin/instance", line 70, in ?
    plone.recipe.zope2instance.ctl.main(
  File
"/srv/rhs_plone/eggs/plone.recipe.zope2instance-3.6-py2.4.egg/plone/recipe/zope2instance/ctl.py",
line 321, in main
    options.realize(args, doc=__doc__)
  File
"/usr/lib/python2.4/site-packages/Zope2-2.12.0-py2.4-linux-i686.egg/Zope2/Startup/zopectl.py",
line 100, in realize
    ZDOptions.realize(self, *args, **kw)
  File
"/usr/lib/python2.4/site-packages/zdaemon-2.0.4-py2.4.egg/zdaemon/zdoptions.py",
line 290, in realize
    self.load_schema()
  File
"/usr/lib/python2.4/site-packages/zdaemon-2.0.4-py2.4.egg/zdaemon/zdoptions.py",
line 338, in load_schema
    self.schema = ZConfig.loadSchema(self.schemafile)
  File
"/usr/lib/python2.4/site-packages/ZConfig-2.7.1-py2.4.egg/ZConfig/loader.py",
line 32, in loadSchema
    return SchemaLoader().loadURL(url)
  File
"/usr/lib/python2.4/site-packages/ZConfig-2.7.1-py2.4.egg/ZConfig/loader.py",
line 66, in loadURL
    return self.loadResource(r)
  File
"/usr/lib/python2.4/site-packages/ZConfig-2.7.1-py2.4.egg/ZConfig/loader.py",
line 187, in loadResource
    schema = ZConfig.schema.parseResource(resource, self)
  File
"/usr/lib/python2.4/site-packages/ZConfig-2.7.1-py2.4.egg/ZConfig/schema.py",
line 27, in parseResource
    xml.sax.parse(resource.file, parser)
  File "/usr/lib/python2.4/xml/sax/__init__.py", line 33, in parse
    parser.parse(source)
  File "/usr/lib/python2.4/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python2.4/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/lib/python2.4/xml/sax/expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/lib/python2.4/xml/sax/expatreader.py", line 300, in
start_element
    self._cont_handler.startElement(name, AttributesImpl(attrs))
  File
"/usr/lib/python2.4/site-packages/ZConfig-2.7.1-py2.4.egg/ZConfig/schema.py",
line 99, in startElement
    getattr(self, "start_" + name)(attrs)
  File
"/usr/lib/python2.4/site-packages/ZConfig-2.7.1-py2.4.egg/ZConfig/schema.py",
line 476, in start_schema
    keytype, valuetype, datatype = self.get_sect_typeinfo(attrs)
  File
"/usr/lib/python2.4/site-packages/ZConfig-2.7.1-py2.4.egg/ZConfig/schema.py",
line 201, in get_sect_typeinfo
    datatype = self.get_datatype(attrs, "datatype", "null", base)
  File
"/usr/lib/python2.4/site-packages/ZConfig-2.7.1-py2.4.egg/ZConfig/schema.py",
line 194, in get_datatype
    return self._registry.get(dtname)
  File
"/usr/lib/python2.4/site-packages/ZConfig-2.7.1-py2.4.egg/ZConfig/datatypes.py",
line 398, in get
    t = self.search(name)
  File
"/usr/lib/python2.4/site-packages/ZConfig-2.7.1-py2.4.egg/ZConfig/datatypes.py",
line 423, in search
    package = __import__(n, g, g, component)
  File
"/usr/lib/python2.4/site-packages/Zope2-2.12.0-py2.4-linux-i686.egg/Zope2/Startup/datatypes.py",
line 21, in ?
    from ZODB.config import ZODBDatabase
  File
"/usr/lib/python2.4/site-packages/ZODB3-3.9.2-py2.4-linux-i686.egg/ZODB/__init__.py",
line 28, in ?
    from DB import DB, connection
  File
"/usr/lib/python2.4/site-packages/ZODB3-3.9.2-py2.4-linux-i686.egg/ZODB/DB.py",
line 29, in ?
    from ZODB.Connection import Connection
  File
"/usr/lib/python2.4/site-packages/ZODB3-3.9.2-py2.4-linux-i686.egg/ZODB/Connection.py",
line 34, in ?
    from ZODB.blob import Blob, rename_or_copy_blob, remove_committed_dir
  File
"/usr/lib/python2.4/site-packages/ZODB3-3.9.2-py2.4-linux-i686.egg/ZODB/blob.py",
line 39, in ?
    from zope.proxy.decorator import SpecificationDecoratorBase
ImportError: No module named decorator

In case it is useful, I've posted my buildout.cfg to 
http://pastie.org/658389 this page  (so as to not over clutter this page). 
This is a site that already has a Data.fs of about 310 MB.  Maybe it's
important to know also that I had singing and dancing on it but have removed
in an effort to revive the site.

Thanks for looking at this,
David

-- 
View this message in context: http://n2.nabble.com/ImportError-No-module-named-decorator-tp3839210p3839210.html
Sent from the Installation, Setup, Upgrades mailing list archive at Nabble.com.



More information about the Setup mailing list