2016-06-30 3 views
1

Ich versuche zu lernen, wie ein Addon für Plone 5 zu entwickeln. , um dies zu tun bleibe ich bei der Plone 5 Training (https://training.plone.org).Plone Training Setup-Fehler für Products.GenericSetup

Ich installiere eine Vagrant/Virtualbox Maschine mit plone auf sie, wie durch die Ausbildung vorgeschlagen, aber wenn ich versuche buildout zu laufen habe ich immer diesen Fehler

[email protected]:/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)` 

Ich versuchte Products.GenericSetup über easy_install zu aktualisieren aber Buildout scheint die neuere Version im Python-Ordner zu ignorieren.

+0

Es ist auch ein issue tracker für die Ausbildung, wenn Sie weitere Probleme auf: https://github.com/collective/training_buildout/issues – pbauer

Antwort

7

Irgendwo in Ihrer buildout Definition (ich weiß nicht, wie Vagrant es installieren, so dass Sie innerhalb CFG-Dateien umsehen müssen) Sie wahrscheinlich:

[versions] 
... 
Products.Genericsetup=1.8.0 

... während das Thema Version 1.8 erfordert. 2.

einfach hinzufügen:

[versions] 
... 
Products.Genericsetup=1.8.2 
+1

Ich habe die empfohlene Linie die buildout.cfg Datei im Abschnitt [versions] und es hat funktioniert. Vielen Dank! – Waynebird