【问题标题】:File contains no section headers. Installing Plone 4.3文件不包含节标题。安装克隆 4.3
【发布时间】:2015-06-17 20:08:23
【问题描述】:

我在互联网上寻找这个问题的答案,但没有找到答案。

我在 Debian wheezy x86 上,使用已安装的 python2.7m zope2,我只是想通过 buildout.cfg 文件安装 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

有什么想法吗?

提前致谢!

【问题讨论】:

    标签: plone buildout


    【解决方案1】:

    你必须使用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,你可以从它扩展你的构建配置。

    【讨论】:

    • 太棒了,在我读过的文档中没有指定它,呃......谢谢
    • 您的信息是从哪里获得的?哪个文档?这应该修复!
    • 是的,我想是的,看这里:docs.plone.org/manage/installing/…
    【解决方案2】:

    对我来说同样的错误,但使用的是 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
    

    希望有帮助

    【讨论】:

      猜你喜欢
      • 2012-10-28
      • 2019-06-07
      • 1970-01-01
      • 2017-02-11
      • 2022-10-21
      • 1970-01-01
      • 1970-01-01
      • 2012-09-10
      • 1970-01-01
      相关资源
      最近更新 更多