Bundler error on Centos 7 w/ package installed python 3.4
With Centos 7, and python 3.4 installed from EPEL, there's an issue running the bundler which looks like it comes down the the python versions (2.7.5 vs. 3.4) trying to clobber each other:
(venv)[root@localhost mailman-bundler]# buildout
Develop: '/opt/mailman/mailman-bundler/.'
warning: no files found matching '*.in' under directory 'mailman_bundler'
warning: no files found matching '*.in' under directory 'deployment'
warning: no files found matching 'deployment/mailman-web.logrotate.conf'
Updating mailman-web.
Updating main.
Installing mailman.
Running virtualenv with interpreter /usr/bin/python3.4
Using base prefix '/usr'
New python executable in /opt/mailman/mailman-bundler/venv-3.4/bin/python3.4
Not overwriting existing python script /opt/mailman/mailman-bundler/venv-3.4/bin/python (you must use /opt/mailman/mailman-bundler/venv- 3.4/bin/python3.4)
Failed to import the site module
Traceback (most recent call last):
File "/opt/mailman/mailman-bundler/venv-3.4/lib64/python3.4/site.py", line 67, in
import os
File "/opt/mailman/mailman-bundler/venv-3.4/lib64/python3.4/os.py", line 616, in
from _collections_abc import MutableMapping
ImportError: No module named '_collections_abc'
ERROR: The executable /opt/mailman/mailman-bundler/venv-3.4/bin/python3.4 is not functioning
ERROR: It thinks sys.prefix is '/opt/mailman/mailman-bundler' (should be '/opt/mailman/mailman-bundler/venv-3.4')
ERROR: virtualenv is not compatible with this system or executable /tmp/tmpgymk60/run: line 2: /opt/mailman/mailman-bundler/venv-3.4/bin/pip: No such file or directory
While:
Installing mailman.
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/mailman/venv/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1992, in main
getattr(buildout, command)(args)
File "/opt/mailman/venv/lib/python2.7/site-packages/zc/buildout/buildout.py", line 666, in install
installed_files = self[part]._call(recipe.install)
File "/opt/mailman/venv/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1407, in _call
return f()
File "/opt/mailman/mailman-bundler/eggs/collective.recipe.cmd-0.11-py2.7.egg/collective/recipe/cmd/init.py", line 56, in install self.execute()
File "/opt/mailman/mailman-bundler/eggs/collective.recipe.cmd-0.11-py2.7.egg/collective/recipe/cmd/init.py", line 69, in execute run_commands(cmds, self.shell)
File "/opt/mailman/mailman-bundler/eggs/collective.recipe.cmd-0.11-py2.7.egg/collective/recipe/cmd/init.py", line 39, in run_commands check_call('%s %s' % (shell, tmpfile), shell=True)
File "/usr/lib64/python2.7/subprocess.py", line 542, in check_call raise CalledProcessError(retcode, cmd)
CalledProcessError: Command 'sh /tmp/tmpgymk60/run' returned non-zero exit status 127
(venv)[root@localhost mailman-bundler]# python --version
Python 2.7.5
(venv)[root@localhost mailman-bundler]#
I'd guess that running the venvs in parallel would help this somewhat