[SOLVED] Plone 5.0.8 installation failed in a fresh installed Debian 9

Run install.sh in the terminal. Error shows:

An internal error occurred due to a bug in either zc.buildout or in a recipe being used:
Traceback (most recent call last):
  File "/opt/plone5/zeocluster/local/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1995, in main
    getattr(buildout, command)(args)
  File "/opt/plone5/zeocluster/local/lib/python2.7/site-packages/zc/buildout/buildout.py", line 666, in install
    installed_files = self[part]._call(recipe.install)
  File "/opt/plone5/zeocluster/local/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1410, in _call
    return f()
  File "/opt/plone5/buildout-cache/eggs/plone.recipe.zope2instance-4.2.22-py2.7.egg/plone/recipe/zope2instance/__init__.py", line 95, in install
    major, minor = parsed[0:2]
TypeError: 'Version' object has no attribute '__getitem__'

Then full log is here:
Detailed installation log
Starting at Fri Apr 13 20:28:30 CST 2018
Processing ./packages/zc.buildout-2.5.3.tar.gz
Requirement already satisfied: setuptools>=8.0 in /opt/plone5/zeocluster/lib/python2.7/site-packages (from zc.buildout==2.5.3)
Building wheels for collected packages: zc.buildout
Running setup.py bdist_wheel for zc.buildout: started
Running setup.py bdist_wheel for zc.buildout: finished with status 'done'
Stored in directory: /root/.cache/pip/wheels/74/a6/42/a670aabe62ae99f8542cf5e32fa6534e980b8ef48b94967c38
Successfully built zc.buildout
Installing collected packages: zc.buildout
Successfully installed zc.buildout-2.5.3
Creating directory '/opt/plone5/zeocluster/parts'.
Creating directory '/opt/plone5/zeocluster/develop-eggs'.
Not found: /opt/plone5/buildout-cache/downloads/dist/ZODB3/
Not found: /opt/plone5/buildout-cache/downloads/dist/ZODB3/
Getting distribution for 'ZODB3==3.10.7'.
In file included from src/BTrees/BTreeModuleTemplate.c:394:0,
from src/BTrees/_IIBTree.c:34:
src/BTrees/BucketTemplate.c: In function ‘bucket_traverse’:
src/BTrees/BucketTemplate.c:1627:12: warning: variable ‘len’ set but not used [-Wunused-but-set-variable]
int i, len;
^~~
In file included from src/BTrees/BTreeModuleTemplate.c:394:0,
from src/BTrees/_IFBTree.c:34:
src/BTrees/BucketTemplate.c: In function ‘bucket_traverse’:
src/BTrees/BucketTemplate.c:1627:12: warning: variable ‘len’ set but not used [-Wunused-but-set-variable]
int i, len;
^~~
In file included from src/BTrees/BTreeModuleTemplate.c:394:0,
from src/BTrees/_fsBTree.c:83:
src/BTrees/BucketTemplate.c: In function ‘bucket_traverse’:
src/BTrees/BucketTemplate.c:1627:12: warning: variable ‘len’ set but not used [-Wunused-but-set-variable]
int i, len;
^~~
In file included from src/BTrees/BTreeModuleTemplate.c:394:0,
from src/BTrees/_LLBTree.c:36:
src/BTrees/BucketTemplate.c: In function ‘bucket_traverse’:
src/BTrees/BucketTemplate.c:1627:12: warning: variable ‘len’ set but not used [-Wunused-but-set-variable]
int i, len;
^~~
In file included from src/BTrees/BTreeModuleTemplate.c:394:0,
from src/BTrees/_LFBTree.c:36:
src/BTrees/BucketTemplate.c: In function ‘bucket_traverse’:
src/BTrees/BucketTemplate.c:1627:12: warning: variable ‘len’ set but not used [-Wunused-but-set-variable]
int i, len;
^~~
Got ZODB3 3.10.7.
Not found: /opt/plone5/buildout-cache/downloads/dist/zope.interface/
Not found: /opt/plone5/buildout-cache/downloads/dist/zope.interface/
Getting distribution for 'zope.interface==3.6.7'.
Got zope.interface 3.6.7.
Not found: /opt/plone5/buildout-cache/downloads/dist/Record/
Not found: /opt/plone5/buildout-cache/downloads/dist/Record/
Getting distribution for 'Record==2.13.0'.
Got Record 2.13.0.
Not found: /opt/plone5/buildout-cache/downloads/dist/Products.ZCTextIndex/
Not found: /opt/plone5/buildout-cache/downloads/dist/Products.ZCTextIndex/
Getting distribution for 'Products.ZCTextIndex==2.13.5'.
warning: no previously-included files matching '.dll' found anywhere in distribution
warning: no previously-included files matching '
.pyc' found anywhere in distribution
warning: no previously-included files matching '.pyo' found anywhere in distribution
warning: no previously-included files matching '
.so' found anywhere in distribution
src/Products/ZCTextIndex/okascore.c: In function ‘initokascore’:
src/Products/ZCTextIndex/okascore.c:127:12: warning: variable ‘m’ set but not used [-Wunused-but-set-variable]
PyObject m;
^
Got Products.ZCTextIndex 2.13.5.
Not found: /opt/plone5/buildout-cache/downloads/dist/initgroups/
Not found: /opt/plone5/buildout-cache/downloads/dist/initgroups/
Getting distribution for 'initgroups==2.13.0'.
Got initgroups 2.13.0.
Not found: /opt/plone5/buildout-cache/downloads/dist/zope.security/
Not found: /opt/plone5/buildout-cache/downloads/dist/zope.security/
Getting distribution for 'zope.security==3.7.4'.
Got zope.security 3.7.4.
Not found: /opt/plone5/buildout-cache/downloads/dist/zope.proxy/
Not found: /opt/plone5/buildout-cache/downloads/dist/zope.proxy/
Getting distribution for 'zope.proxy==3.6.1'.
Got zope.proxy 3.6.1.
Not found: /opt/plone5/buildout-cache/downloads/dist/zope.i18nmessageid/
Not found: /opt/plone5/buildout-cache/downloads/dist/zope.i18nmessageid/
Getting distribution for 'zope.i18nmessageid==3.5.3'.
Got zope.i18nmessageid 3.5.3.
Not found: /opt/plone5/buildout-cache/downloads/dist/zope.container/
Not found: /opt/plone5/buildout-cache/downloads/dist/zope.container/
Getting distribution for 'zope.container==3.11.2'.
Got zope.container 3.11.2.
Not found: /opt/plone5/buildout-cache/downloads/dist/Persistence/
Not found: /opt/plone5/buildout-cache/downloads/dist/Persistence/
Getting distribution for 'Persistence==2.13.2'.
Got Persistence 2.13.2.
Not found: /opt/plone5/buildout-cache/downloads/dist/MultiMapping/
Not found: /opt/plone5/buildout-cache/downloads/dist/MultiMapping/
Getting distribution for 'MultiMapping==2.13.0'.
src/MultiMapping/_MultiMapping.c:159:2: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
(inquiry)MM_length, /mp_length/
^
src/MultiMapping/_MultiMapping.c:159:2: note: (near initialization for ‘MM_as_mapping.mp_length’)
Got MultiMapping 2.13.0.
Not found: /opt/plone5/buildout-cache/downloads/dist/Missing/
Not found: /opt/plone5/buildout-cache/downloads/dist/Missing/
Getting distribution for 'Missing==2.13.1'.
Got Missing 2.13.1.
Not found: /opt/plone5/buildout-cache/downloads/dist/ExtensionClass/
Not found: /opt/plone5/buildout-cache/downloads/dist/ExtensionClass/
Getting distribution for 'ExtensionClass==4.1.2'.
warning: no previously-included files matching '
.dll' found anywhere in distribution
warning: no previously-included files matching '.pyc' found anywhere in distribution
warning: no previously-included files matching '
.pyo' found anywhere in distribution
warning: no previously-included files matching '.so' found anywhere in distribution
Got ExtensionClass 4.1.2.
Not found: /opt/plone5/buildout-cache/downloads/dist/DocumentTemplate/
Not found: /opt/plone5/buildout-cache/downloads/dist/DocumentTemplate/
Getting distribution for 'DocumentTemplate==2.13.4'.
warning: no previously-included files matching '
.dll' found anywhere in distribution
warning: no previously-included files matching '.pyc' found anywhere in distribution
warning: no previously-included files matching '
.pyo' found anywhere in distribution
warning: no previously-included files matching '.so' found anywhere in distribution
src/DocumentTemplate/cDocumentTemplate.c:169:3: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
(inquiry)InstanceDict_length, /mp_length/
^
src/DocumentTemplate/cDocumentTemplate.c:169:3: note: (near initialization for ‘InstanceDict_as_mapping.mp_length’)
src/DocumentTemplate/cDocumentTemplate.c:600:2: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
(inquiry)MM_length, /mp_length/
^
src/DocumentTemplate/cDocumentTemplate.c:600:2: note: (near initialization for ‘MM_as_mapping.mp_length’)
Got DocumentTemplate 2.13.4.
Not found: /opt/plone5/buildout-cache/downloads/dist/Acquisition/
Not found: /opt/plone5/buildout-cache/downloads/dist/Acquisition/
Getting distribution for 'Acquisition==4.2.2'.
warning: no previously-included files matching '
.dll' found anywhere in distribution
warning: no previously-included files matching '.pyc' found anywhere in distribution
warning: no previously-included files matching '
.pyo' found anywhere in distribution
warning: no previously-included files matching '.so' found anywhere in distribution
Got Acquisition 4.2.2.
Not found: /opt/plone5/buildout-cache/downloads/dist/AccessControl/
Not found: /opt/plone5/buildout-cache/downloads/dist/AccessControl/
Getting distribution for 'AccessControl==3.0.13'.
warning: no files found matching '
.rst'
warning: no previously-included files matching '.dll' found anywhere in distribution
warning: no previously-included files matching '
.pyc' found anywhere in distribution
warning: no previously-included files matching '.pyo' found anywhere in distribution
warning: no previously-included files matching '
.so' found anywhere in distribution
Got AccessControl 3.0.13.
Installing zeoserver.
Created directory /opt/plone5/zeocluster/parts/zeoserver
Created directory /opt/plone5/zeocluster/parts/zeoserver/etc
Created directory /opt/plone5/zeocluster/parts/zeoserver/var
Created directory /opt/plone5/zeocluster/parts/zeoserver/log
Created directory /opt/plone5/zeocluster/parts/zeoserver/bin
Wrote file /opt/plone5/zeocluster/parts/zeoserver/etc/zeo.conf
Wrote file /opt/plone5/zeocluster/parts/zeoserver/bin/zeoctl
Changed mode for /opt/plone5/zeocluster/parts/zeoserver/bin/zeoctl to 755
Wrote file /opt/plone5/zeocluster/parts/zeoserver/bin/runzeo
Changed mode for /opt/plone5/zeocluster/parts/zeoserver/bin/runzeo to 755
Generated script '/opt/plone5/zeocluster/bin/zeoserver'.
Generated script '/opt/plone5/zeocluster/bin/zeopack'.
Generated script '/opt/plone5/zeocluster/bin/repozo'.
Installing client1.
While:
Installing client1.

An internal error occurred due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
  File "/opt/plone5/zeocluster/local/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1995, in main
    getattr(buildout, command)(args)
  File "/opt/plone5/zeocluster/local/lib/python2.7/site-packages/zc/buildout/buildout.py", line 666, in install
    installed_files = self[part]._call(recipe.install)
  File "/opt/plone5/zeocluster/local/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1410, in _call
    return f()
  File "/opt/plone5/buildout-cache/eggs/plone.recipe.zope2instance-4.2.22-py2.7.egg/plone/recipe/zope2instance/__init__.py", line 95, in install
    major, minor = parsed[0:2]
TypeError: 'Version' object has no attribute '__getitem__'

Regards.

known problem - used to work fine but now is obsoleted by changes in python setuptools. you need to downgrade setuptools. See

1 Like

Done through downgrade setuptools. Thank you a lot.

I just wonder why the installer is still not modified.

Probably the people doing that don't have the free hours to do the actual job. I looked a bit and it's not obvious to fix this one in an elegant way, it don't seem to be a few minutes job to me. Good packaging is hard, if it was everyone could do a Linux distro.

1 Like

The bug was fixed, a new installer uploaded, and the issue closed two days ago.

works all right on my virtual machine.