Hello, by using this command sudo python install.py --production --user frappe mentioned in GitHub - frappe/bench: CLI to manage Multi-tenant deployments for Frappe apps page, I got several deprecation warnings and finally, installation failed with the following final text:
-------------------------------------------------------START MESSAGES-------------------------------------------
TASK [mariadb : Install MariaDB] **********************************************************************************************************************************************
[DEPRECATION WARNING]: Invoking “yum” only once while using a loop via squash_actions is deprecated. Instead of using a loop to supply multiple items and specifying name: "{{ item }}"
, please use name: ['MariaDB-server', 'MariaDB-client']
and remove the loop. This feature will be removed in version 2.11. Deprecation warnings can be disabled
by setting deprecation_warnings=False in ansible.cfg.
ok: [localhost] => (item=[u’MariaDB-server’, u’MariaDB-client’])
TASK [mariadb : Install MySQLdb Python package for secure installations.] *****************************************************************************************************
fatal: [localhost]: FAILED! => {“changed”: false, “msg”: “No package matching ‘MySQL-python’ found available, installed or updated”, “rc”: 126, “results”: [“No package matching ‘MySQL-python’ found available, installed or updated”]}
to retry, use: --limit @/tmp/.bench/playbooks/site.retry
PLAY RECAP ********************************************************************************************************************************************************************
localhost : ok=7 changed=1 unreachable=0 failed=1
Traceback (most recent call last):
File “install.py”, line 425, in
install_bench(args)
File “install.py”, line 122, in install_bench
run_playbook(‘site.yml’, sudo=True, extra_vars=extra_vars)
File “install.py”, line 338, in run_playbook
success = subprocess.check_call(args, cwd=os.path.join(cwd, ‘playbooks’))
File “/usr/lib64/python2.7/subprocess.py”, line 542, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[‘ansible-playbook’, ‘-c’, ‘local’, ‘site.yml’, ‘-e’, ‘@/tmp/extra_vars.json’, ‘–become’, ‘–become-user=frappe’]’ returned non-zero exit status 2
-------------------------------------------------------END MESSAGES-------------------------------------------
This is a fresh new server with CentOS 7 and all pre-requisites are installed.
As you can also see in the above text, there is a deprecation warning. This kind of warnings appears during all installation.
What may be causing the error? I think I can ignore the warnings, however installation is being aborted due to “No package matching ‘MySQL-python’ found available, installed or updated” error.
How can I solve this so that installation can continue?
Regards
Jaime