You are here: Home / Documentation / How To's / How to build out Plone 3.1

How to build out Plone 3.1

by nguyen — published Oct 18, 2010 03:30 PM, last modified Aug 16, 2016 10:50 AM
how to get around two buildout errors

If you set up your buildout as per the page mentioned in the related how-do, you may get this error

Getting required 'zope.testbrowser[zope_functional_testing]'
  required by Zope2 2.12.12.
We have a develop egg: zope.testbrowser 0.0
While:
  Installing.
  Loading extensions.
  Getting section instance.
  Initializing section instance.
  Installing recipe plone.recipe.zope2instance.

An internal error occurred due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
  File "/private/var/folders/EH/EHNnXdBgHNKnF2Hvh3ecjE+++TM/-Tmp-/tmpmcSoRa/zc.buildout-1.5.2-py2.4.egg/zc/buildout/buildout.py", line 1805, in main
  File "/private/var/folders/EH/EHNnXdBgHNKnF2Hvh3ecjE+++TM/-Tmp-/tmpmcSoRa/zc.buildout-1.5.2-py2.4.egg/zc/buildout/buildout.py", line 425, in install
  File "/private/var/folders/EH/EHNnXdBgHNKnF2Hvh3ecjE+++TM/-Tmp-/tmpmcSoRa/zc.buildout-1.5.2-py2.4.egg/zc/buildout/buildout.py", line 989, in _load_extensions
  File "/Users/kim/src/python/plonetuneup/plone31devel/eggs/buildout.eggtractor-0.6-py2.4.egg/buildout/eggtractor/tractor.py", line 70, in install
    for k, v in buildout.items():
  File "/Users/kim/src/python/plonetuneup/lib/python2.4/UserDict.py", line 112, in items
    return list(self.iteritems())
  File "/Users/kim/src/python/plonetuneup/lib/python2.4/UserDict.py", line 101, in iteritems
    yield (k, self[k])
  File "/private/var/folders/EH/EHNnXdBgHNKnF2Hvh3ecjE+++TM/-Tmp-/tmpmcSoRa/zc.buildout-1.5.2-py2.4.egg/zc/buildout/buildout.py", line 1056, in __getitem__
  File "/private/var/folders/EH/EHNnXdBgHNKnF2Hvh3ecjE+++TM/-Tmp-/tmpmcSoRa/zc.buildout-1.5.2-py2.4.egg/zc/buildout/buildout.py", line 1141, in _initialize
  File "/private/var/folders/EH/EHNnXdBgHNKnF2Hvh3ecjE+++TM/-Tmp-/tmpmcSoRa/zc.buildout-1.5.2-py2.4.egg/zc/buildout/buildout.py", line 1097, in _install_and_load
  File "/private/var/folders/EH/EHNnXdBgHNKnF2Hvh3ecjE+++TM/-Tmp-/tmpmcSoRa/zc.buildout-1.5.2-py2.4.egg/zc/buildout/easy_install.py", line 1090, in install
  File "/private/var/folders/EH/EHNnXdBgHNKnF2Hvh3ecjE+++TM/-Tmp-/tmpmcSoRa/zc.buildout-1.5.2-py2.4.egg/zc/buildout/easy_install.py", line 949, in install
  File "/Users/kim/src/python/plonetuneup/lib/python2.4/site-packages/distribute-0.6.14-py2.4.egg/pkg_resources.py", line 2179, in requires
    raise UnknownExtra(
UnknownExtra: zope.testbrowser 0.0 has no such extra feature 'zope_functional_testing'

To get around this error, follow the instructions to repair a Plone 3.1 buildout by Cris Ewing and add this to the end of the [buildout] section of your buildout.cfg:

versions = versions

[versions]
plone.recipe.zope2instance = 3.6

When you rerun buildout, you will then get this error:

Getting required 'zope.i18nmessageid'
  required by zope.container 3.11.2.
We have a develop egg: zope.i18nmessageid 0.0
While:
  Installing instance.
Error: There is a version conflict.
We already have: zope.lifecycleevent 0.0
but zope.container 3.11.2 requires 'zope.lifecycleevent>=3.5.2'.

The fix for that (described partially here) is to add this at the top of the [buildout] section of your buildout.cfg:

extends = http://good-py.appspot.com/release/zope/2.10.x

(to match the version of Zope you're trying to install - see your [zope2] section) and then you can rerun buildout successfully.

 

Navigation