【问题标题】:buildout can't find pip packages for Plonebuildout 找不到 Plone 的 pip 包
【发布时间】:2018-12-15 01:39:43
【问题描述】:

我正在尝试通过 buildout 将附加组件添加到 Plone,但它找不到包。我已经在 virtualenv 和系统范围的 python 中尝试过它

我按照 Plone 网站上的设置进行操作 Setup instructions

我尝试的每个插件都会出现以下错误

Installing instance.
/home/a/Plone/zinstance/local/lib/python2.7/site-packages/pkg_resources/__init__.py:192: RuntimeWarning: You have iterated over the result of pkg_resources.parse_version. This is a legacy behavior which is inconsistent with the new version class introduced in setuptools 8.0. In most cases, conversion to a tuple is unnecessary. For comparison of versions, sort the Version instances directly. If you have another use case requiring the tuple, please file a bug with the setuptools project describing that need.
  stacklevel=1,
Couldn't find index page for 'collective.addthis' (maybe misspelled?)
Getting distribution for 'collective.addthis'.
Couldn't find index page for 'collective.addthis' (maybe misspelled?)
While:
  Installing instance.
  Getting distribution for 'collective.addthis'.
Error: Couldn't find a distribution for 'collective.addthis'.

我将包添加到 buildout.cnfg

eggs =
Plone
Pillow
collective.addthis

Plone 和 Pillow 构建良好,但我尝试的每个附加组件都会出现相同的错误。

【问题讨论】:

    标签: python pip plone buildout egg


    【解决方案1】:

    https://community.plone.org/上已经报告了很多类似的问题

    问题很可能是从 pypi.python.org 迁移到 pypi.org

    您可以添加:

    index = https://pypi.org/simple/
    

    如果您使用的是允许的主机,则需要 2 个新主机,并且可以跳过 *.python.org:

    allow-hosts =
        pypi.org
        files.pythonhosted.org
    

    您也可以使用当前版本的 setuptools 和 zc.buildout

    注意:对于 setuptools > 38.7.0 你需要固定

    plone.recipe.zope2instance = 4.4.0
    

    (见https://github.com/plone/plone.recipe.zope2instance/blob/4.4.0/CHANGES.rst

    【讨论】:

    • 谢谢伙计。添加 'index = pypi.org/simple' 为某些软件包修复了它,但现在我得到了相同的错误,但对于某些软件包依赖项
    • 我问了一个新问题,因为它是现在不会安装的依赖项.. [stackoverflow.com/questions/51221840/…
    • 仅供参考,community.plone.org 是我们的官方支持论坛,在这里您将获得最多关注您的问题
    猜你喜欢
    • 2018-12-15
    • 1970-01-01
    • 2012-02-12
    • 2013-01-20
    • 1970-01-01
    • 2011-10-15
    • 1970-01-01
    • 2018-05-24
    • 1970-01-01
    相关资源
    最近更新 更多