2014-10-12 74 views
2

我一直在寻找这个在互联网上的答案,但没有找到它的运气。文件内未包含节标头。安装Plone 4.3

我在Debian喘息的x86,使用已安装python2.7m zope2,我只是想通过buildout.cfg文件6.在安装Plone的4.3,但是这是我的回溯:

An internal error occurred due to a bug in either zc.buildout or in a 
recipe being used: 
Traceback (most recent call last): 
File "/tmp/tmpvPVuPQ/zc.buildout-2.2.1-py2.7.egg/zc/buildout/buildout.py", line 1941, in main 
user_defaults, command, args) 
File "/tmp/tmpvPVuPQ/zc.buildout-2.2.1-py2.7.egg/zc/buildout/buildout.py", line 221, in __init__ 
data['buildout'].copy(), override, set())) 
File "/tmp/tmpvPVuPQ/zc.buildout-2.2.1-py2.7.egg/zc/buildout/buildout.py", line 1578, in _open 
downloaded) 
File "/tmp/tmpvPVuPQ/zc.buildout-2.2.1-py2.7.egg/zc/buildout/buildout.py", line 1558, in _open 
result = zc.buildout.configparser.parse(fp, filename, _default_globals) 
File "/tmp/tmpvPVuPQ/zc.buildout-2.2.1-py2.7.egg/zc/buildout/configparser.py", line 207, in parse 
raise MissingSectionHeaderError(fpname, lineno, line) 
MissingSectionHeaderError: File contains no section headers. 
file: http://dist.plone.org/release/4.3.1/, line: 1 
'<html>\r\n' 

这是我的buildout.cfg:

[buildout] 

extends = 
    http://dist.plone.org/release/4.3.1/ 

parts = 
    instance 

[instance] 
recipe = plone.recipe.zope2instance 
user = admin:admin 
http-address = 8080 
eggs = 
    Plone 
    Pillow 

任何想法?

在此先感谢!

回答

4

你必须使用http://dist.plone.org/release/4.3.1/versions.cfg

[buildout] 

extends = 
    http://dist.plone.org/release/4.3.1/versions.cfg 

您在您的网址结束错过/versions.cfg

http://dist.plone.org/release/4.3.1仅返回一个目录列表,而不是cfg,您可以在其中构建扩展配置。

+0

真棒,在文档中我读过它不SPECI fied,duh ...谢谢 – NeoVe 2014-10-12 14:51:22

+0

你从哪里得到你的信息?哪些文件?这应该是固定的! – Mathias 2014-10-12 19:40:05

+0

是的,我想是的,看这里:http://docs.plone.org/manage/installing/requirements.html#minimal-build – NeoVe 2014-10-12 23:40:28

0

对我来说,但使用的Plone 4.2和它同样的错误是由于download.zope.org网站,下跌

我解决了下载versions.cfg

check URL on buildout.cfg 

extends = 
#  http://dist.plone.org/release/4.2/versions.cfg 
    myLocalVersionsFile.cfg 

和改变上延伸部分它

extends = http://dist.plone.org/versions/zopetoolkit-1-0-7-zopeapp-versions.cfg 
      http://dist.plone.org/versions/zope-2-13-15-versions.cfg 

#   http://download.zope.org/zopetoolkit/index/1.0.7/zopeapp-versions.cfg 
#   http://download.zope.org/Zope2/index/2.13.15/versions.cfg 

希望这有助于