buildout не может найти пип-пакеты для Plone - PullRequest
0 голосов
/ 06 июля 2018

Я пытаюсь добавить дополнения к Plone через buildout, но он не может найти пакеты. Я попробовал это в virtualenv и общесистемном питоне

Я следил за настройкой на сайте 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 и Pillow работают нормально, но каждое добавленное мной дополнение вызывает одну и ту же ошибку.

1 Ответ

0 голосов
/ 06 июля 2018

было много подобных проблем, о которых сообщалось 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)

...