2012-02-07 57 views
2

从构建中获取这个奇怪的错误。构建是针对plone3的,并且具有固定的版本。构建不尊重固定版本

$ bin/buildout -Nv 
While: 
    Initializing. 
    Getting section buildout. 
    Initializing section buildout. 
    Getting option buildout:parts. 
    Getting section filestorage. 
    Initializing section filestorage. 
    Installing recipe collective.recipe.filestorage. 
Error: There is a version conflict. 
We already have: zope.location 0.0 
but zope.site 3.9.2 requires 'zope.location>=3.7.0'. 

如果我删除了假鸡蛋,我得到

$ rm -r fake-eggs/ 
$ bin/buildout -Nvv 
While: 
    Initializing. 
    Getting section buildout. 
    Initializing section buildout. 
    Getting option buildout:parts. 
    Getting section filestorage. 
    Initializing part filestorage. 
    Getting section supervisor. 
    Initializing section supervisor. 
    Getting option supervisor:programs. 
    Getting section instance1. 
    Initializing section instance1. 
    Getting option instance1:eggs. 
    Getting section instance. 
    Initializing section instance. 
    Loading recipe 'plone.recipe.zope2instance==2.7'. 

An internal error occurred due to a bug in either zc.buildout or in a 
recipe being used: 
Traceback (most recent call last): 
    File "/Users/dylanjay/Projects/download-cache/eggs/zc.buildout-1.5.2-py2.4.egg/zc/buildout/buildout.py", line 1804, in main 
    user_defaults, windows_restart, command) 
    File "/Users/dylanjay/Projects/download-cache/eggs/zc.buildout-1.5.2-py2.4.egg/zc/buildout/buildout.py", line 252, in __init__ 
    options = self['buildout'] 
    File "/Users/dylanjay/Projects/download-cache/eggs/zc.buildout-1.5.2-py2.4.egg/zc/buildout/buildout.py", line 1056, in __getitem__ 
    options._initialize() 
    File "/Users/dylanjay/Projects/download-cache/eggs/zc.buildout-1.5.2-py2.4.egg/zc/buildout/buildout.py", line 1130, in _initialize 
    self._dosub(k, v) 
    File "/Users/dylanjay/Projects/download-cache/eggs/zc.buildout-1.5.2-py2.4.egg/zc/buildout/buildout.py", line 1177, in _dosub 
    v = '$$'.join([self._sub(s, seen) for s in v.split('$$')]) 
    File "/Users/dylanjay/Projects/download-cache/eggs/zc.buildout-1.5.2-py2.4.egg/zc/buildout/buildout.py", line 1241, in _sub 
    v = self.buildout[section].get(option, None, seen) 
    File "/Users/dylanjay/Projects/download-cache/eggs/zc.buildout-1.5.2-py2.4.egg/zc/buildout/buildout.py", line 1056, in __getitem__ 
    options._initialize() 
    File "/Users/dylanjay/Projects/download-cache/eggs/zc.buildout-1.5.2-py2.4.egg/zc/buildout/buildout.py", line 1144, in _initialize 
    self.recipe = recipe_class(buildout, name, self) 
    File "/Users/dylanjay/Projects/csep/src/collective.recipe.filestorage/collective/recipe/filestorage/__init__.py", line 25, in __init__ 
    part = self.buildout[part_name] 
    File "/Users/dylanjay/Projects/download-cache/eggs/zc.buildout-1.5.2-py2.4.egg/zc/buildout/buildout.py", line 1056, in __getitem__ 
    options._initialize() 
    File "/Users/dylanjay/Projects/download-cache/eggs/zc.buildout-1.5.2-py2.4.egg/zc/buildout/buildout.py", line 1130, in _initialize 
    self._dosub(k, v) 
    File "/Users/dylanjay/Projects/download-cache/eggs/zc.buildout-1.5.2-py2.4.egg/zc/buildout/buildout.py", line 1177, in _dosub 
    v = '$$'.join([self._sub(s, seen) for s in v.split('$$')]) 
    File "/Users/dylanjay/Projects/download-cache/eggs/zc.buildout-1.5.2-py2.4.egg/zc/buildout/buildout.py", line 1241, in _sub 
    v = self.buildout[section].get(option, None, seen) 
    File "/Users/dylanjay/Projects/download-cache/eggs/zc.buildout-1.5.2-py2.4.egg/zc/buildout/buildout.py", line 1056, in __getitem__ 
    options._initialize() 
    File "/Users/dylanjay/Projects/download-cache/eggs/zc.buildout-1.5.2-py2.4.egg/zc/buildout/buildout.py", line 1130, in _initialize 
    self._dosub(k, v) 
    File "/Users/dylanjay/Projects/download-cache/eggs/zc.buildout-1.5.2-py2.4.egg/zc/buildout/buildout.py", line 1177, in _dosub 
    v = '$$'.join([self._sub(s, seen) for s in v.split('$$')]) 
    File "/Users/dylanjay/Projects/download-cache/eggs/zc.buildout-1.5.2-py2.4.egg/zc/buildout/buildout.py", line 1241, in _sub 
    v = self.buildout[section].get(option, None, seen) 
    File "/Users/dylanjay/Projects/download-cache/eggs/zc.buildout-1.5.2-py2.4.egg/zc/buildout/buildout.py", line 1056, in __getitem__ 
    options._initialize() 
    File "/Users/dylanjay/Projects/download-cache/eggs/zc.buildout-1.5.2-py2.4.egg/zc/buildout/buildout.py", line 1141, in _initialize 
    recipe_class = _install_and_load(reqs, 'zc.buildout', entry, buildout) 
    File "/Users/dylanjay/Projects/download-cache/eggs/zc.buildout-1.5.2-py2.4.egg/zc/buildout/buildout.py", line 1078, in _install_and_load 
    if pkg_resources.working_set.find(req) is None: 
    File "/Users/dylanjay/Projects/download-cache/eggs/distribute-0.6.24-py2.4.egg/pkg_resources.py", line 474, in find 
    raise VersionConflict(dist,req)  # XXX add more info 
VersionConflict: (plone.recipe.zope2instance 4.2 (/Users/dylanjay/Projects/download-cache/eggs/plone.recipe.zope2instance-4.2-py2.4.egg), Requirement.parse('plone.recipe.zope2instance==2.7')) 

如此看来,collective.recipe.filestorage需要plone.recipe.zope2instance。 zope2instance固定为2.7,但是在构建配方初始化期间,不使用此版本,而是选择4.2。

如果我从部件中删除filestorage,构建工作正常,并且注释显示版本当前固定。

关于如何摆脱这个问题的任何想法,或为什么版本固定不起作用?

回答

2

您可能正在使用一些附加的高级依赖项:使用plone.app.discussion goodversion帮助我经常(我不打算添加plone.app.discussion产品)!

[buildout] 
... 
extends = 
    ... 
    http://good-py.appspot.com/release/plone.app.discussion/1.0 
+0

不我认为这是由于zc.buildout和collective.filestorage一起工作的方式出了问题。如前所述,版本已经固定。好py只是引脚版本。所以这没有帮助。 – djay 2012-02-12 23:43:40