Search code examples
plonebuildout

Version conflict when using buildout.plonetest 4.3.x


I wrote a small module that extends https://raw.github.com/collective/buildout.plonetest/master/test-4.2.x.cfg. If I change the version from 4.2 to 4.3 it throws the error when running bin/buildout:

...
While:
  Installing.
  Getting section test.
  Initializing section test.
  Installing recipe zc.recipe.testrunner.
Error: There is a version conflict.
We already have: zc.recipe.egg 2.0.0

I suppose that the error is produced because some packages listed in the buildout.plonetest have conflicting versions and that is a bug in the 4.3 version set. I'm right or I'm making a mistake in the buildout.cfg file?

The buildout that I'm using is:

[buildout]
extends =
    https://raw.github.com/collective/buildout.plonetest/master/test-4.2.x.cfg
package-name = conaride.theme
package-extras = [test]

[instance]
eggs +=
    Pillow

[test]
defaults = ['-s', '${buildout:package-name}', '--auto-color', '--auto-progress']

Solution

  • There is no bug in the 4.3 version set; you need to fix the version conflict. Try any or all of the following approaches to this very-common problem:

    (1) Remove the already-downloaded version and re-run Buildout e.g.:

    $ rm -rf eggs/zc.recipe.egg\*
    $ bin/buildout
    

    (2) Remove the installed config and re-run Buildout e.g.:

    $ rm .installed.cfg
    $ bin/buildout
    

    (3) Specify the version you want to use in your local config e.g.

    [versions]
    zc.recipe.egg = 2.0.0