Plone Products.GenericSetup的培训设置错误

Plone Products.GenericSetup的培训设置错误,plone,genericsetup,Plone,Genericsetup,我正在学习如何为Plone 5开发一个插件。 为了做到这一点,我坚持普隆5号的训练 根据培训建议,我正在安装一台带有plone的Vagrant/Virtualbox机器,但是当我尝试运行buildout时,我总是会遇到这个错误 vagrant@training:/vagrant/plonetheme.tango$ ./bin/buildout Develop: '/vagrant/plonetheme.tango/.' Updating _mr.developer. Installing ins

我正在学习如何为Plone 5开发一个插件。 为了做到这一点,我坚持普隆5号的训练

根据培训建议,我正在安装一台带有plone的Vagrant/Virtualbox机器,但是当我尝试运行buildout时,我总是会遇到这个错误

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,但buildout似乎忽略了python文件夹中的较新版本。

在您的buildout定义中的某个地方,我不知道如何安装它,因此您必须查看您可能拥有的.cfg文件:

[versions]
...
Products.Genericsetup=1.8.0
…而主题需要1.8.2版

只需添加以下内容:

[versions]
...
Products.Genericsetup=1.8.2

在您的构建定义中,我不知道Vagrant是如何安装它的,因此您必须查看您可能拥有的.cfg文件:

[versions]
...
Products.Genericsetup=1.8.0
…而主题需要1.8.2版

只需添加以下内容:

[versions]
...
Products.Genericsetup=1.8.2

我在[versions]部分的buildout.cfg文件中添加了推荐的行,它成功了。非常感谢。我在[versions]部分的buildout.cfg文件中添加了推荐的行,它成功了。非常感谢。如果您遇到更多问题,还将为培训提供一个问题跟踪器:如果您遇到更多问题,还将为培训提供一个问题跟踪器: