Products.GenericSetup 的 Plone 训练设置错误

Plone training setup error for Products.GenericSetup

我正在尝试学习如何为 Plone 5 开发插件。 为了做到这一点,我坚持使用 Plone 5 训练 (https://training.plone.org)。

我正在按照培训的建议安装一台带有 plone 的 Vagrant/Virtualbox 机器,但是当我尝试 运行 构建时,我总是得到这个错误

vagrant@training:/vagrant/plonetheme.tango$ ./bin/buildout
Develop: '/vagrant/plonetheme.tango/.'
Updating _mr.developer.
Installing instance.
/home/vagrant/buildout-cache/eggs/setuptools-20.7.0-py2.7.egg/pkg_resources/__init__.py:187: 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,
Version and requirements information containing products.genericsetup:
  [versions] constraint on products.genericsetup: 1.8.0
  Requirement of plonetheme.tango[test]: Products.GenericSetup>=1.8.2
  Requirement of plone.app.testing: Products.GenericSetup
While:
  Installing instance.
Error: The requirement ('Products.GenericSetup>=1.8.2') is not allowed by your [versions] constraint (1.8.0)`

我尝试通过 easy_install 更新 Products.GenericSetup,但构建似乎忽略了 python 文件夹中的较新版本。

在你的构建定义中的某处(我不知道 Vagrant 如何安装它所以你必须在 .cfg 文件中查看)你可能有:

[versions]
...
Products.Genericsetup=1.8.0

...而主题需要 1.8.2 版本。

只需添加:

[versions]
...
Products.Genericsetup=1.8.2