problem getting S&D to work on OpenSolaris 200811 - ImportError: No module named decorator

20 views
Skip to first unread message

Carl Brewer

unread,
Feb 16, 2009, 12:23:04 AM2/16/09
to singing...@googlegroups.com

I've just spun up a new Plone 3.2.1 install on an OpenSolaris 200811 box
with GCC, buildout.cfg is :

[buildout]
extends = versions.cfg
https://svn.plone.org/svn/collective/collective.dancing/buildout-extends
/0.8.7.cfg
versions = versions
http-address = 8213
eggs =
Plone
Products.NuPlone

zcml =
develop =
debug-mode = off
eggs-directory=/usr/local/Plone/buildout-cache/eggs
download-cache=/usr/local/Plone/buildout-cache/downloads
newest = false
parts =
zope2
productdistros
instance
zopepy
zopeskel
precompile
chown
unifiedinstaller

find-links =
http://dist.plone.org
http://download.zope.org/ppix/
http://download.zope.org/distribution/
http://effbot.org/downloads

unzip = true

zope-directory = /usr/local/Plone

[zope2]
recipe = plone.recipe.zope2install
url = http://www.zope.org/Products/Zope/2.10.7/Zope-2.10.7-final.tgz
fake-zope-eggs = true
additional-fake-eggs =
ZConfig
pytz


[productdistros]
recipe = plone.recipe.distros
urls =
nested-packages =
version-suffix-packages =


[instance]
recipe = plone.recipe.zope2instance
zope2-location = ${zope2:location}
user = admin:XXXXXX
http-address = ${buildout:http-address}
effective-user = plone
debug-mode = ${buildout:debug-mode}
verbose-security = off
deprecation-warnings = off


eggs =
${buildout:eggs}
collective.dancing


zcml =
${buildout:zcml}
collective.dancing


products =
${buildout:directory}/products
${productdistros:location}


environment-vars =
PYTHON_EGG_CACHE ${buildout:directory}/var/.python-eggs


[zopepy]
recipe = zc.recipe.egg
eggs = ${instance:eggs}
interpreter = zopepy
extra-paths = ${instance:zope2-location}/lib/python
scripts = zopepy

[zopeskel]
recipe = zc.recipe.egg
eggs =
${instance:eggs}
PasteScript
ZopeSkel


[precompile]
recipe = plone.recipe.precompiler


[chown]
recipe = plone.recipe.command
command =
chmod 600 .installed.cfg
find ${buildout:directory} -type d -name var -exec chown -R
${instance:effec
tive-user} \{\} \;
find ${buildout:directory} -type d -name LC_MESSAGES -exec chown -R
${instan
ce:effective-user} \{\} \;
find ${buildout:directory} -name runzope -exec chown
${instance:effective-us
er} \{\} \;
update-command = ${chown:command}


[unifiedinstaller]
recipe = plone.recipe.unifiedinstaller
user = ${instance:user}
primary-port = ${instance:http-address}
sudo-command =sudo

I ran buildout -nv and it all seemed to install ok, but :

./bin/instance fg shows :

.
.
.
File
"/usr/local/Plone/buildout-cache/eggs/ZODB3-3.8.1-py2.4-solaris-2.11-i86pc.egg/ZODB/Connection.py",
line 33, in ?
from ZODB.blob import Blob, rename_or_copy_blob
File
"/usr/local/Plone/buildout-cache/eggs/ZODB3-3.8.1-py2.4-solaris-2.11-i86pc.egg/ZODB/blob.py",
line 41, in ?
from zope.proxy.decorator import SpecificationDecoratorBase
ImportError: No module named decorator


I've googled around but not seen an answer. Any clues?

Thanks!

Carl

Daniel Nouri

unread,
Feb 16, 2009, 7:05:53 AM2/16/09
to singing...@googlegroups.com, Carl Brewer
Carl Brewer <ca...@bl.echidna.id.au> writes:

> I've just spun up a new Plone 3.2.1 install on an OpenSolaris 200811 box
> with GCC, buildout.cfg is :
>
> [buildout]
> extends = versions.cfg
> https://svn.plone.org/svn/collective/collective.dancing/buildout-extends
> /0.8.7.cfg
> versions = versions
> http-address = 8213
> eggs =
> Plone
> Products.NuPlone
>

> [snip some buildout config]


>
> [zope2]
> recipe = plone.recipe.zope2install
> url = http://www.zope.org/Products/Zope/2.10.7/Zope-2.10.7-final.tgz
> fake-zope-eggs = true
> additional-fake-eggs =
> ZConfig
> pytz

Here, you're overwriting the "additional-fake-eggs" from this file:

https://svn.plone.org/svn/collective/collective.dancing/buildout-extends/0.8.7.cfg

Try:

additional-fake-eggs +=
ZConfig
pytz

This is why the buildout pulls a ZODB egg, which leads to your problem:

> File
> "/usr/local/Plone/buildout-cache/eggs/ZODB3-3.8.1-py2.4-solaris-2.11-i86pc.egg/ZODB/Connection.py",
> line 33, in ?
> from ZODB.blob import Blob, rename_or_copy_blob
> File
> "/usr/local/Plone/buildout-cache/eggs/ZODB3-3.8.1-py2.4-solaris-2.11-i86pc.egg/ZODB/blob.py",
> line 41, in ?
> from zope.proxy.decorator import SpecificationDecoratorBase
> ImportError: No module named decorator

You might want to submit a bug report or patch for the unified
installer, if this is what's defining the "additional-fake-eggs" in your
buildout.


Daniel
--
http://danielnouri.org

Carl Brewer

unread,
Feb 16, 2009, 7:32:53 AM2/16/09
to singing...@googlegroups.com
Daniel Nouri wrote:

>
> Here, you're overwriting the "additional-fake-eggs" from this file:
>
> https://svn.plone.org/svn/collective/collective.dancing/buildout-extends/0.8.7.cfg
>
> Try:
>
> additional-fake-eggs +=
> ZConfig
> pytz
>
> This is why the buildout pulls a ZODB egg, which leads to your problem:
>
>> File
>> "/usr/local/Plone/buildout-cache/eggs/ZODB3-3.8.1-py2.4-solaris-2.11-i86pc.egg/ZODB/Connection.py",
>> line 33, in ?
>> from ZODB.blob import Blob, rename_or_copy_blob
>> File
>> "/usr/local/Plone/buildout-cache/eggs/ZODB3-3.8.1-py2.4-solaris-2.11-i86pc.egg/ZODB/blob.py",
>> line 41, in ?
>> from zope.proxy.decorator import SpecificationDecoratorBase
>> ImportError: No module named decorator
>
> You might want to submit a bug report or patch for the unified
> installer, if this is what's defining the "additional-fake-eggs" in your
> buildout.


That fixed it, thankyou. I'll report it to plone.org.

Carl

Reply all
Reply to author
Forward
0 new messages