扩建找不到Plone的PIP封装(buildout can't find pip packa

2019-09-25 19:01发布

我试图通过扩建到附加组件添加到Plone的,但它无法找到包。 我在的virtualenv和d系统广泛蟒蛇试了一下

我跟着建立在Plone站点设置说明

每一个附加我尝试带来了以下错误

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的和枕头建立罚款,但每个插件我尝试带来了同样的错误。

Answer 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 )



文章来源: buildout can't find pip packages for Plone