python - 导入错误 : Entry point ('zc.buildout' , 'default' )未找到

标签 python debian plone buildout

我正在尝试安装基于 Plone 的 Plumi 4.5.1。

目标系统是 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1 (2015-05-24) x86_64 (Debian GNU/Linux 8)

我正在遵循本指南:

https://mgogoulos.trinket.io/plumi-4-5#/installation/installation

成功完成所有前面的步骤后,我在运行构建时收到此错误:

[..]

We have the distribution that satisfies 'py==1.3.4'.
Getting required 'pyasn1'
  required by collective.transcode.daemon 0.12.
We have the best distribution that satisfies 'pyasn1'.
Picked: pyasn1 = 0.1.8
Getting required 'Twisted'
  required by collective.transcode.daemon 0.12.
We have the best distribution that satisfies 'Twisted'.
Picked: Twisted = 15.2.1
Getting required 'pycrypto==2.4.1'
We have the distribution that satisfies 'pycrypto==2.4.1'.
Installing 'plone.recipe.varnish'.
We have the best distribution that satisfies 'plone.recipe.varnish'.
Picked: plone.recipe.varnish = 2.0a1
Getting required 'jinja2>=2.7.3'
  required by plone.recipe.varnish 2.0a1.
We have the best distribution that satisfies 'jinja2>=2.7.3'.
Picked: Jinja2 = 2.7.3
Getting required 'markupsafe'
  required by Jinja2 2.7.3.
We have the best distribution that satisfies 'markupsafe'.
Picked: MarkupSafe = 0.23
While:
  Installing.
  Getting section cache.
  Initializing section cache.
  Loading zc.buildout recipe entry plone.recipe.varnish:default.

An internal error occured due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
  File "/home/plumi/PLUMI/plumi.app/eggs/zc.buildout-1.4.4-py2.7.egg/zc/buildout/buildout.py", line 1683, in main
    getattr(buildout, command)(args)
  File "/home/plumi/PLUMI/plumi.app/eggs/zc.buildout-1.4.4-py2.7.egg/zc/buildout/buildout.py", line 439, in install
    [self[part]['recipe'] for part in install_parts]
  File "/home/plumi/PLUMI/plumi.app/eggs/zc.buildout-1.4.4-py2.7.egg/zc/buildout/buildout.py", line 987, in __getitem__
    options._initialize()
  File "/home/plumi/PLUMI/plumi.app/eggs/zc.buildout-1.4.4-py2.7.egg/zc/buildout/buildout.py", line 1071, in _initialize
    recipe_class = _install_and_load(reqs, 'zc.buildout', entry, buildout)
  File "/home/plumi/PLUMI/plumi.app/eggs/zc.buildout-1.4.4-py2.7.egg/zc/buildout/buildout.py", line 1032, in _install_and_load
    req.project_name, group, entry)
  File "/home/plumi/PLUMI/plumi.app/eggs/distribute-0.6.27-py2.7.egg/pkg_resources.py", line 337, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/home/plumi/PLUMI/plumi.app/eggs/distribute-0.6.27-py2.7.egg/pkg_resources.py", line 2306, in load_entry_point
    raise ImportError("Entry point %r not found" % ((group,name),))
ImportError: Entry point ('zc.buildout', 'default') not found
*********************************************
Overwriting versions.cfg
*********************************************

有什么我可以做或检查的吗?

我没有触及构建配置中的任何内容,因此一切都是“默认”。

最佳答案

我通过添加以下内容解决了此问题:

zc.buildout = 1.7.1
distribute = 0.6.35

在部分:

[versions]

Plumi/Plone 部署文件夹的 buildout.cfg 文件。

关于python - 导入错误 : Entry point ('zc.buildout' , 'default' )未找到,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31403969/

相关文章:

python - 导入错误: No module named - python anaconda

python - 如何使用 lxml 迭代 xml 数据以删除下一个重复元素

docker - 如何在 Docker 容器中配置 Debian SSHD 进行远程调试?

python - 如何访问 ATNewsItem 对象的 'imageCaption' 字段的值?

plone - 搜索和索引加权标签/类别评级,最好在 plone 目录中

python - 在文本文件中搜索相似字母并返回有效单词列表

python - 使用 setattr 添加的属性未显示在 help() 中

linux - 无法理解 ssh key gen 手册页 - 指定位置和密码

linux - 使用 CatchAll 过滤 Postfix 电子邮件帐户

javascript - 删除 Dexterity 内容类型上的字段集选项卡界面