Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

getpaid version conflict

Tags:

plone

installing getpaid for plone, several distributions complained that

We already have: egg.name 0.0 but another.egg 1.2.3 requires 'egg.name>=4.5.6'

I have managed to move forward by pinning the requested versions until:

Error: There is a version conflict.
We already have: zope.component 3.5.1
but zope.site 3.9.2 requires 'zope.component>=3.8.0'.
but zope.browserresource 3.12.0 requires 'zope.component>=3.8.0'.

pinning zope.component to 3.8.0 gives the following:

Error: There is a version conflict.
We already have: zope.component 3.8.0
but five.localsitemanager 1.3 requires 'zope.component<3.6dev'.

How can I circumvent this (catch 22)?

My buildout: http://www.pastie.org/3050771

like image 946
Adrian Garner Avatar asked Jan 23 '26 01:01

Adrian Garner


2 Answers

In general, what is advisable in such a case is to take it step by step. The trick is to add this line to your [buildout] section:

allow-picked-versions = false

This tells zc.buildout to immediately quit when it sees that a package is required that is not pinned. Then you can go to http://pypi.python.org and search for that package and see if you can figure out which version fits best with your other packages and especially your Plone version. On Plone 3 when a zope.* package is not pinned, best is usually to pin it to the oldest version you can find.

In this specific case, those zope.site and zope.browserresource versions are quite recent and require a too new zope.component version.

This is untested, but these pins might work (no guarantees):

zope.site = 3.5.1
zope.component = 3.5.1
zope.browserresource = 3.9.0
like image 91
maurits Avatar answered Jan 24 '26 13:01

maurits


Use a KGS (known good set) in your buildout:

  • http://good-py.appspot.com/release/getpaid/0.10.4

e.g.

[buildout]
extends = http://good-py.appspot.com/release/getpaid/0.10.4
versions = versions
like image 39
aclark Avatar answered Jan 24 '26 13:01

aclark



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!