我在互联网上寻找答案,但没有找到它的运气。
我在Debian wheezy x86上,已经安装了python2.7m zope2,我只是试图通过buildout.cfg
文件来解析plone,但这是我的追溯:
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
有什么想法吗?
提前致谢!
答案 0 :(得分: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
,您可以在其中扩展您的buildout配置。
答案 1 :(得分: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
希望这个帮助