在Plone 3.2.3上运行bin / buildout时出现语法错误

时间:2013-09-24 14:10:56

标签: plone zope buildout

运行bin/buildout时出现以下错误。 我在Plone.org上查看了这个问题here,他们说这不危险 但他们没有说如何解决它。

我想跳过此错误,以便在没有错误的情况下执行bin / buildout,直到现在我手动更新我的产品。我该如何解决这个问题?

root@sevilla2:/var/plone/zinstance# bin/buildout 
While:
  Installing.
  Getting section precompile.
  Initializing section precompile.
  Loading zc.buildout recipe entry plone.recipe.precompiler:default.

An internal error occured due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
  File "/var/plone/buildout-cache/eggs/zc.buildout-1.1.2-py2.4.egg/zc/buildout/buildout.py", line 1509, in main
    getattr(buildout, command)(args)
  File "/var/plone/buildout-cache/eggs/zc.buildout-1.1.2-py2.4.egg/zc/buildout/buildout.py", line 357, in install
    [self[part]['recipe'] for part in install_parts]
  File "/var/plone/buildout-cache/eggs/zc.buildout-1.1.2-py2.4.egg/zc/buildout/buildout.py", line 888, in __getitem__
    options._initialize()
  File "/var/plone/buildout-cache/eggs/zc.buildout-1.1.2-py2.4.egg/zc/buildout/buildout.py", line 969, in _initialize
    recipe_class = _install_and_load(reqs, 'zc.buildout', entry, buildout)
  File "/var/plone/buildout-cache/eggs/zc.buildout-1.1.2-py2.4.egg/zc/buildout/buildout.py", line 932, in _install_and_load
    return pkg_resources.load_entry_point(
  File "/var/plone/buildout-cache/eggs/setuptools-0.6c9-py2.4.egg/pkg_resources.py", line 277, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/var/plone/buildout-cache/eggs/setuptools-0.6c9-py2.4.egg/pkg_resources.py", line 2180, in load_entry_point
    return ep.load()
  File "/var/plone/buildout-cache/eggs/setuptools-0.6c9-py2.4.egg/pkg_resources.py", line 1913, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/var/plone/buildout-cache/eggs/plone.recipe.precompiler-0.6-py2.4.egg/plone/recipe/precompiler/__init__.py", line 7, in ?
    from pythongettext.msgfmt import Msgfmt
  File "/var/plone/buildout-cache/eggs/python_gettext-2.1-py2.4.egg/pythongettext/msgfmt.py", line 265
     except Exception as msg:
                       ^
 SyntaxError: invalid syntax

我来自我的网站迁移(已成功完成但没有扩建而建成)

  • Plone 3.2.3
  • CMF 2.1.2 Zope(Zope 2.10.7-final,python 2.4.5,linux2)
  • Python 2.4.5 [GCC 4.4.5]
  • PIL 1.1.6

1 个答案:

答案 0 :(得分:6)

您需要固定python-gettext才能在版本2.0之前使用版本。该版本引入了需要Python 2.6或更新版本的语法(以使该软件包也适用于Python 3)。

在您的buildout版本部分中,添加:

python-gettext = 1.2