ImportError: No module named decorator

3 messages Options
Embed this post
Permalink
dgroos () ImportError: No module named decorator
Reply Threaded More More options
Print post
Permalink
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 (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@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 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
ajung () Re: ImportError: No module named decorator
Reply Threaded More More options
Print post
Permalink
Plone 3.X does not run with Zope 2.12.
Stick with the recommended and blessed versions (Zope 2.10.X).

-aj

dgroos wrote:
  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)
 
dgroos () Re: ImportError: No module named decorator
Reply Threaded More More options
Print post
Permalink


Plone 3.X does not run with Zope 2.12.
Stick with the recommended and blessed versions (Zope 2.10.X).

-aj



  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)
 
Thanks ajung!  Based on this info and with the further help of naro on #plone I was able to remove this zope and am now using zope 2.10.6 final.  Interestingly, I had a lot of zope and plone stuff in my /usr/lib/python2.4/site-packages which I removed.  In the end I was able to start the instance!  Now, on to solving the problem that led me to mess up my version of zope!  I'll start a new thread as I think it is unrelated to this thread.

David