[Bug 1445764] [NEW] "The executable /usr/bin/python3.4 does not exist" error when Installling Mailman 3 on Centos 7

Danil Smirnov 1445764 at bugs.launchpad.net
Sat Apr 18 14:19:16 CEST 2015


Public bug reported:

Short summary: when installing Mailman 3 onto new Centos 7 box using manual at page
http://mailman-bundler.readthedocs.org/en/latest/

after step

(venv)[root at host mailman-bundler]# pip install zc.buildout
(venv)[root at host mailman-bundler]# buildout

getting the error:

---
Installing mailman.
The executable /usr/bin/python3.4 (from --python=/usr/bin/python3.4) does not exist
/tmp/tmpePyrQ3/run: line 2: /usr/local/src/mailman-bundler/venv-3.4/bin/pip: No such file or directory
While:
  Installing mailman.
---

Now in details:

Fresh new CentOS Linux release 7.1.1503 (Core) installed as kvm guest.

System python package installed: python-2.7.5-16.el7.x86_64

Python 3.4.3 was installed by commands:

[root at host ~]# cd /usr/local/src
[root at host src]# curl -O https://www.python.org/ftp/python/3.4.3/Python-3.4.3.tgz
[root at host src]# tar -xvzf Python-3.4.3.tgz
[root at host src]# cd /usr/local/src/Python-3.4.3
[root at host Python-3.4.3]# ./configure --enable-shared --prefix=/usr/local LDFLAGS="-Wl,-rpath /usr/local/lib"
[root at host Python-3.4.3]# make
[root at host Python-3.4.3]# make altinstall

Virtualenv was installed from package
python-virtualenv.noarch 0:1.10.1-2.el7                                                                                                                                 
with dependant  python-devel.x86_64 0:2.7.5-16.el7 

Then everything was don according
http://mailman-bundler.readthedocs.org/en/latest/
until the error mentioned above occurred.

When I did
(venv)[root at host mailman-bundler]# ln -s /usr/local/bin/python3.4 /usr/bin/python3.4

I've got another error:
---
(venv)[root at host mailman-bundler]# buildout
Develop: '/usr/local/src/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/local'
New python executable in /usr/local/src/mailman-bundler/venv-3.4/bin/python3.4
Also creating executable in /usr/local/src/mailman-bundler/venv-3.4/bin/python
Failed to import the site module
Traceback (most recent call last):
  File "/usr/local/src/mailman-bundler/venv-3.4/lib/python3.4/site.py", line 67, in <module>
    import os
  File "/usr/local/src/mailman-bundler/venv-3.4/lib/python3.4/os.py", line 616, in <module>
    from _collections_abc import MutableMapping
ImportError: No module named '_collections_abc'
ERROR: The executable /usr/local/src/mailman-bundler/venv-3.4/bin/python3.4 is not functioning
ERROR: It thinks sys.prefix is '/usr/local/src/mailman-bundler' (should be '/usr/local/src/mailman-bundler/venv-3.4')
ERROR: virtualenv is not compatible with this system or executable
/tmp/tmpTl6JgC/run: line 2: /usr/local/src/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 "/usr/local/src/venv/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1946, in main
    getattr(buildout, command)(args)
  File "/usr/local/src/venv/lib/python2.7/site-packages/zc/buildout/buildout.py", line 626, in install
    installed_files = self[part]._call(recipe.install)
  File "/usr/local/src/venv/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1370, in _call
    return f()
  File "/usr/local/src/mailman-bundler/eggs/collective.recipe.cmd-0.10-py2.7.egg/collective/recipe/cmd/__init__.py", line 56, in install
    self.execute()
  File "/usr/local/src/mailman-bundler/eggs/collective.recipe.cmd-0.10-py2.7.egg/collective/recipe/cmd/__init__.py", line 69, in execute
    run_commands(cmds, self.shell)
  File "/usr/local/src/mailman-bundler/eggs/collective.recipe.cmd-0.10-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/tmpTl6JgC/run' returned non-zero exit status 127
---

** Affects: mailman
     Importance: Undecided
         Status: New


** Tags: mailman3

-- 
You received this bug notification because you are a member of Mailman
Coders, which is subscribed to GNU Mailman.
https://bugs.launchpad.net/bugs/1445764

Title:
  "The executable /usr/bin/python3.4 does not exist" error when
  Installling Mailman 3 on Centos 7

To manage notifications about this bug go to:
https://bugs.launchpad.net/mailman/+bug/1445764/+subscriptions


More information about the Mailman-coders mailing list