我在网上寻找答案,但没有运气找到它。
我在Debian x86上,使用已经安装的python2.7m zope2,我只是试图通过一个buildout.cfg文件来实现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有什么想法吗?
提前感谢!
发布于 2014-10-12 10:37:30
你必须使用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,您可以从这个目录列表中扩展构建出来的配置。
发布于 2015-06-17 11:58:29
我也犯了同样的错误,但是使用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希望能帮上忙
https://stackoverflow.com/questions/26322834
复制相似问题