Can't execute buildout -c develop.cfg

Hi,

I just installed Plone 5.2.4 on Ubuntu 20.04 with Python 2.7, I used Unified Installer succesfully and installed Plone with my unprivileged user into my home.

When I try to run
bin/buildout -c develop.cfg

I get this error:

claudio@pyt:~/Plone/zinstance$ bin/buildout -c develop.cfg
Uninstalling zopepy.
Uninstalling instance.
Unused options for buildout: 'deprecation-warnings'.
Installing _mr.developer.
Generated script '/home/claudio/Plone/zinstance/bin/develop'.
Installing instance.
Generated script '/home/claudio/Plone/zinstance/bin/instance'.
Generated interpreter '/home/claudio/Plone/zinstance/parts/instance/bin/interpreter'.
Updating repozo.
Updating backup.
Updating zopescripts.
Installing zopepy.
Generated interpreter '/home/claudio/Plone/zinstance/bin/zopepy'.
Updating unifiedinstaller.
Installing test.
Generated script '/home/claudio/Plone/zinstance/bin/test'.
Installing diazotools.
Generated script '/home/claudio/Plone/zinstance/bin/diazocompiler'.
Generated script '/home/claudio/Plone/zinstance/bin/diazorun'.
Generated script '/home/claudio/Plone/zinstance/bin/diazopreprocessor'.
Installing checkdocs.
Installing mrbob.
Getting distribution for 'importlib-resources>=1.0'.
WARNING: The easy_install command is deprecated and will be removed in a future version.
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at ://xxx/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at xxx://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
error: find_namespace: directive is unsupported on Python < 3.3
An error occurred when trying to install /home/claudio/Plone/buildout-cache/downloads/dist/importlib_resources-5.1.2.tar.gz. Look above this message for any errors that were output by easy_install.
While:
Installing mrbob.
Getting distribution for 'importlib-resources>=1.0'.

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/claudio/Plone/zinstance/local/lib/python2.7/site-packages/zc/buildout/buildout.py", line 2174, in main
getattr(buildout, command)(args)
File "/home/claudio/Plone/zinstance/local/lib/python2.7/site-packages/zc/buildout/buildout.py", line 817, in install
installed_files = self[part]._call(recipe.install)
File "/home/claudio/Plone/zinstance/local/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1603, in _call
return f()
File "/home/claudio/Plone/buildout-cache/eggs/cp27mu/zc.recipe.egg-2.0.7-py2.7.egg/zc/recipe/egg/egg.py", line 227, in install
reqs, ws = self.working_set()
File "/home/claudio/Plone/buildout-cache/eggs/cp27mu/zc.recipe.egg-2.0.7-py2.7.egg/zc/recipe/egg/egg.py", line 87, in working_set
allow_unknown_extras=bool_option(buildout_section, 'allow-unknown-extras')
File "/home/claudio/Plone/buildout-cache/eggs/cp27mu/zc.recipe.egg-2.0.7-py2.7.egg/zc/recipe/egg/egg.py", line 168, in _working_set
allow_unknown_extras=allow_unknown_extras)
File "/home/claudio/Plone/zinstance/local/lib/python2.7/site-packages/zc/buildout/easy_install.py", line 957, in install
return installer.install(specs, working_set)
File "/home/claudio/Plone/zinstance/local/lib/python2.7/site-packages/zc/buildout/easy_install.py", line 730, in install
for dist in self._get_dist(req, ws):
File "/home/claudio/Plone/zinstance/local/lib/python2.7/site-packages/zc/buildout/easy_install.py", line 574, in _get_dist
dists = [_move_to_eggs_dir_and_compile(dist, self._dest)]
File "/home/claudio/Plone/zinstance/local/lib/python2.7/site-packages/zc/buildout/easy_install.py", line 1745, in _move_to_eggs_dir_and_compile
[tmp_loc] = glob.glob(os.path.join(tmp_dest, '*'))
ValueError: need more than 0 values to unpack

What I'm doing wrong?
Permissions and owner are:

claudio@pyt:~/Plone/zinstance$ ls -l ..
total 12
drwxr-xr-x 2 claudio claudio 4096 Mar 9 22:30 Plone-docs
drwxr-xr-x 5 claudio claudio 4096 Mar 9 22:30 buildout-cache
drwxr-xr-x 11 claudio claudio 4096 Mar 11 08:08 zinstance

Thanks for your help!

Why not Python 3?

1 Like

Hi Andreas,

because we have started testing Plone and his add-ons with Python 2 and we don't have time now to plan an upgrade to Python 3.
But, if you tell me that the error is related for sure to Python 2, I'll take the time to complete an upgrade on the server.
Thanks for your help!

Clearly something with importlib_resources-5.1.2 which is obviously not Python 2 compatible...never seen this module and no idea where it is coming from...wild guess: try to pin some older Python 2 compatible version of this Python package in your buildout.

2 Likes

Hi Andreas, pinning importlib-resources to 5.0.0 fixed the issue, now buildout reach the end.
Thanks!

2 Likes

Plone Foundation Code of Conduct