Error installing on Cent OS 6

When I try to install on Centos using the following commands:
sudo python --production

I get the following errors:
Installing Python 2.7
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile

  • base:
  • extras:
  • updates:
    Package python27-1.1-25.el6.x86_64 already installed and latest version
    Nothing to do
    Traceback (most recent call last):
    File “”, line 277, in
    File “”, line 126, in install_python27
    os.execvp(‘python2.7’, ([] if is_sudo_user() else [‘sudo’]) + [‘python2.7’, file] + sys.argv[1:])
    File “/usr/lib64/python2.6/”, line 344, in execvp
    _execvpe(file, args)
    File “/usr/lib64/python2.6/”, line 380, in _execvpe
    func(fullname, *argrest)
    OSError: [Errno 2] No such file or directory

The install script doesn’t support CentOS 6, use Centos 7 instead.

I get this error when I try it on Cent OS 7

TASK [Create new site] *********************************************************
fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: [“bench”, “new-site”, “site1.local”, “–admin-password”, “testjarh90”,
“–mariadb-root-password”, “testjarh90”], “delta”: “0:00:01.367628”, “end”: “2016-07-30 17:21:41.155148”, “failed”: true, “rc”:
1, “start”: “2016-07-30 17:21:39.787520”, “stderr”: "Traceback (most recent call last):\n File "/usr/lib64/python2.7/runpy.p
y", line 162, in _run_module_as_main\n "main", fname, loader, pkg_name)\n File "/usr/lib64/python2.7/", li
ne 72, in _run_code\n exec code in run_globals\n File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/
“, line 79, in \n main()\n File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/", line 16, in
main\n click.Group(commands=commands)(prog_name=‘bench’)\n File "/home/frappe/frappe-bench/env/lib/python2.7/site-package
s/click/", line 716, in call\n return self.main(*args, **kwargs)\n File "/home/frappe/frappe-bench/env/lib/pyt
hon2.7/site-packages/click/", line 696, in main\n rv = self.invoke(ctx)\n File "/home/frappe/frappe-bench/env/lib/
python2.7/site-packages/click/", line 1060, in invoke\n return _process_result(sub_ctx.command.invoke(sub_ctx))\n F
ile "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/", line 1060, in invoke\n return _process_resu
lt(sub_ctx.command.invoke(sub_ctx))\n File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/click/", line 8
89, in invoke\n return ctx.invoke(self.callback, **ctx.params)\n File "/home/frappe/frappe-bench/env/lib/python2.7/site-pa
ckages/click/", line 534, in invoke\n return callback(*args, **kwargs)\n File "/home/frappe/frappe-bench/apps/frap
pe/frappe/commands/", line 29, in new_site\n verbose=verbose, install_apps=install_app, source_sql=source_sql, force
=force)\n File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/", line 56, in _new_site\n admin_password=ad
min_password, verbose=verbose, source_sql=source_sql,force=force, reinstall=reinstall)\n File "/home/frappe/frappe-bench/apps
/frappe/frappe/", line 33, in install_db\n create_database_and_user(force, verbose)\n File "/home/frappe/frap
pe-bench/apps/frappe/frappe/", line 53, in create_database_and_user\n if force or (db_name not in dbman.get_dat
abase_list()):\n File "/home/frappe/frappe-bench/apps/frappe/frappe/model/", line 526, in get_database_list\n
return [d[0] for d in self.db.sql("SHOW DATABASES")]\n File "/home/frappe/frappe-bench/apps/frappe/frappe/", l
ine 106, in sql\n self.connect()\n File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 52, in connect\n
use_unicode=True, charset=‘utf8’)\n File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/MySQLdb/"
, line 81, in Connect\n return Connection(*args, **kwargs)\n File "/home/frappe/frappe-bench/env/lib/python2.7/site-packag
es/MySQLdb/", line 193, in init\n super(Connection, self).init(*args, **kwargs2)\n_mysql_exceptions.O
perationalError: (1045, "Access denied for user ‘root’@‘localhost’ (using password: YES)")”, “stdout”: “”, “stdout_lines”: []
, “warnings”: []}

NO MORE HOSTS LEFT *************************************************************
to retry, use: --limit @production/install.retry

PLAY RECAP *********************************************************************
localhost : ok=39 changed=21 unreachable=0 failed=1

Traceback (most recent call last):
File “”, line 281, in
File “”, line 102, in install_bench
run_playbook(‘production/install.yml’, sudo=True, extra_vars=extra_vars)
File “”, line 234, in run_playbook
success = subprocess.check_call(args, cwd=os.path.join(tmp_bench_repo, ‘playbooks’))
File “/usr/lib64/python2.7/”, line 542, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[‘ansible-playbook’, ‘-c’, ‘local’, ‘production/install.yml’, ‘-e’, ‘@/tmp/extra_vars.j
son’, ‘–become’, ‘–become-user=frappe’]’ returned non-zero exit status 2