2014-10-12 40 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 

希望這有助於