buildout找不到Plone的pip包 [英] buildout can't find pip packages for Plone
问题描述
我正在尝试通过构建将附加组件添加到Plone,但是找不到软件包.我已经在virtualenv中尝试过,并且在系统范围内使用python
I'm trying to add add-ons to Plone through buildout but it can't find the packages. I've tried it in a virtualenv andd the system wide python
我遵循了Plone网站上的设置 设置说明
I followed the set up on the Plone site Setup instructions
我尝试的每个插件都会引发以下错误
Every add-on I try brings up the following error
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
I add the packages to the buildout.cnfg
eggs =
Plone
Pillow
collective.addthis
Plone和Pillow构建良好,但是我尝试的每个附加组件都会产生相同的错误.
Plone and Pillow build fine but every add-on I try brings up the same error.
推荐答案
问题很可能是从pypi.python.org到pypi.org的迁移
the problem most probably is the migration from in pypi.python.org to pypi.org
您可以添加:
index = https://pypi.org/simple/
,如果您使用允许的主机,则需要2个新主机,并且可以跳过* .python.org:
and if you are using allowed hosts you need 2 new ones and can skip *.python.org:
allow-hosts =
pypi.org
files.pythonhosted.org
或者,您可以使用setuptools和zc.buildout的当前版本
alternatively you can use a current versions of setuptools and zc.buildout
注意:对于setuptools> 38.7.0,您需要固定
attention: for setuptools > 38.7.0 you need to pin
plone.recipe.zope2instance = 4.4.0
(请参见 https://github.com /plone/plone.recipe.zope2instance/blob/4.4.0/CHANGES.rst )
这篇关于buildout找不到Plone的pip包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!