2015-09-23 46 views
2

我有一个网站与Plone 4.2.5在其中我想安装ZRS。DistributionNotFound当试图安装ZRS

我加入了[zrs]额外的zeoserver部分:

[zeoserver] 
recipe = plone.recipe.zeoserver[zrs] 

我也寄托了配方和包装所涉及的正确版本:

[versions] 
plone.recipe.zeoserver = 1.2.8 
plone.recipe.zope2instance = 4.2.18 
Twisted = 15.4.0 
zc.zrs = 2.4.4 

但是,当我运行扩建,我得到出现以下错误:

$ bin/buildout 
... 
While: 
    Installing. 

An internal error occurred due to a bug in either zc.buildout or in a 
recipe being used: 
Traceback (most recent call last): 
    File "/home/plone/my.project/eggs/zc.buildout-2.4.3-py2.7.egg/zc/buildout/buildout.py", line 1992, in main 
    getattr(buildout, command)(args) 
    File "/home/plone/my.project/eggs/zc.buildout-2.4.3-py2.7.egg/zc/buildout/buildout.py", line 565, in install 
    self._compute_part_signatures(install_parts) 
    File "/home/plone/my.project/eggs/zc.buildout-2.4.3-py2.7.egg/zc/buildout/buildout.py", line 810, in _compute_part_signatures 
    sig = _dists_sig(pkg_resources.working_set.resolve([req])) 
    File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 839, in resolve 
    raise DistributionNotFound(req, requirers) 
DistributionNotFound: The 'zc.zrs' distribution was not found and is required by plone.recipe.zeoserver 

在Plone 4.3中完全相同的东西运行良好。

我使用以下的版本也:

[versions] 
setuptools = 18.3.2 
zc.buildout = 2.4.3 

任何提示?

回答

3

您需要将“plone.recipe.zeoserver [zrs]”添加到您的蛋部分。

查看https://github.com/kitconcept/buildout.zrs了解工作主/从设置的示例。

+0

感谢您的分享! –

+0

我仍然遇到同样的错误,你确定这与Plone 4.2有关吗?该软件包的文档中提到了Plone 4.3.1。 – hvelarde

+0

我刚试过Plone 4.3。您是否尝试过检查回购库并使用Plone 4.2.x运行? – tisto