Problem with buildout/backend with plone-react

Hey there,
I am installing a plone backend instance with plone-react. It was working fine earlier but After we upgraded to newer versions, I am getting this error:

Generated script '/home/nilesh/Desktop/plone-react/api/bin/develop'.
Installing instance.
While:
  Installing instance.

An internal error occurred due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
  File "/home/nilesh/Desktop/plone-react/api/lib/python2.7/site-packages/zc/buildout/buildout.py", line 2127, in main
    getattr(buildout, command)(args)
  File "/home/nilesh/Desktop/plone-react/api/lib/python2.7/site-packages/zc/buildout/buildout.py", line 797, in install
    installed_files = self[part]._call(recipe.install)
  File "/home/nilesh/Desktop/plone-react/api/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1557, in _call
    return f()
  File "/home/nilesh/Desktop/plone-react/api/eggs/plone.recipe.zope2instance-4.3-py2.7.egg/plone/recipe/zope2instance/__init__.py", line 95, in install
    major, minor = parsed[0:2]
TypeError: 'Version' object has no attribute '__getitem__'
*********************************************
Overwriting docker/requirements.txt

I have the same issue, which branch should we use to test?

The branch no longer exists: https://github.com/plone/plone-react/blob/9008fe06c8dc497399efd4f0548545307fd3ea72/api/buildout.cfg#L67
Should use master instead, but i think it's not stable though.

Take a look at TypeError: 'Version' object has no attribute '__getitem__' .
Either pin plone.recipe.zope2instance = 4.4.0 or setuptools = 38.7.0 in the buildout.cfg of the backend.

1 Like

@nileshgulia1 FYI: I fixed the issue on the master branch of plone-react: https://github.com/plone/plone-react/commit/362e4cb1e5854e6158b082b7ec2705ef47f96525

1 Like

Thanks Timo. The issue is now resolved.

Plone Foundation Code of Conduct