I just tried the install as described, but I run into the same issue that I experienced during the manual install:
TASK [bench : python3 bench init for production] *******************************
task path: /tmp/.bench/bench/playbooks/roles/bench/tasks/main.yml:44
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root
<127.0.0.1> EXEC /bin/sh -c ‘echo ~root && sleep 0’
<127.0.0.1> EXEC /bin/sh -c ‘( umask 77 && mkdir -p “echo /var/tmp
”&& mkdir /var/tmp/ansible-tmp-1622244757.3018384-10500-141330877233945 && echo ansible-tmp-1622244757.3018384-10500-141330877233945=“echo /var/tmp/ansible-tmp-1622244757.3018384-10500-141330877233945
” ) && sleep 0’
Using module file /usr/local/lib/python3.8/dist-packages/ansible/modules/commands/command.py
<127.0.0.1> PUT /root/.ansible/tmp/ansible-local-5474dabc0upr/tmp70mre4hw TO /var/tmp/ansible-tmp-1622244757.3018384-10500-141330877233945/AnsiballZ_command.py
<127.0.0.1> EXEC /bin/sh -c ‘setfacl -m u:erpnext:r-x /var/tmp/ansible-tmp-1622244757.3018384-10500-141330877233945/ /var/tmp/ansible-tmp-1622244757.3018384-10500-141330877233945/AnsiballZ_command.py && sleep 0’
<127.0.0.1> EXEC /bin/sh -c ‘sudo -H -S -n -u erpnext /bin/sh -c ‘"’“‘echo BECOME-SUCCESS-updudkfkwxrohrwjzlblojsyencnepdc ; /usr/bin/python3 /var/tmp/ansible-tmp-1622244757.3018384-10500-141330877233945/AnsiballZ_command.py’”’"’ && sleep 0’
<127.0.0.1> EXEC /bin/sh -c ‘rm -f -r /var/tmp/ansible-tmp-1622244757.3018384-10500-141330877233945/ > /dev/null 2>&1 && sleep 0’
fatal: [localhost]: FAILED! => {
“changed”: true,
“cmd”: [
“bench”,
“init”,
“/home/erpnext/frappe-bench”,
“–frappe-path”,
“GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript”,
“–frappe-branch”,
“version-13”,
“–python”,
“python3”
],
“delta”: “0:00:05.564139”,
“end”: “2021-05-28 23:32:43.045758”,
“invocation”: {
“module_args”: {
“_raw_params”: “bench init /home/erpnext/frappe-bench --frappe-path GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript --frappe-branch version-13 --python python3”,
“_uses_shell”: false,
“argv”: null,
“chdir”: null,
“creates”: “/home/erpnext/frappe-bench”,
“executable”: null,
“removes”: null,
“stdin”: null,
“stdin_add_newline”: true,
“strip_empty_ends”: true,
“warn”: true
}
},
“msg”: “non-zero return code”,
“rc”: 1,
“start”: “2021-05-28 23:32:37.481619”,
“stderr”: “Cloning into ‘frappe’…\nAborted!”,
“stderr_lines”: [
“Cloning into ‘frappe’…”,
“Aborted!”
],
“stdout”: "ModuleNotFoundError: No module named ‘virtualenv.seed.via_app_data’\n\u001b[93mWARN: bench is installed in editable mode!\n\nThis is not the recommended mode of installation for production. Instead, install the package from PyPI with: pip install frappe-bench
\n\u001b[0m\n\u001b[90m$ /usr/local/bin/virtualenv -q env -p python3\u001b[0m\n\n\u001b[93mGetting frappe\u001b[0m\n\u001b[90m$ git clone GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript --branch version-13 --depth 1 --origin upstream\u001b[0m\n\n\u001b[93mInstalling frappe\u001b[0m\n\u001b[90m$ /home/erpnext/frappe-bench/env/bin/python -m pip install -q -U -e /home/erpnext/frappe-bench/apps/frappe \u001b[0m\n[Errno 2] No such file or directory: ‘/home/erpnext/frappe-bench/env/bin/python’\n\u001b[91mERROR: There was a problem while creating /home/erpnext/frappe-bench\u001b[0m\nDo you want to rollback these changes? [y/N]: ",
“stdout_lines”: [
“ModuleNotFoundError: No module named ‘virtualenv.seed.via_app_data’”,
“\u001b[93mWARN: bench is installed in editable mode!”,
“”,
“This is not the recommended mode of installation for production. Instead, install the package from PyPI with: pip install frappe-bench
”,
“\u001b[0m”,
“\u001b[90m$ /usr/local/bin/virtualenv -q env -p python3\u001b[0m”,
“”,
“\u001b[93mGetting frappe\u001b[0m”,
“\u001b[90m$ git clone GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript --branch version-13 --depth 1 --origin upstream\u001b[0m”,
“”,
“\u001b[93mInstalling frappe\u001b[0m”,
“\u001b[90m$ /home/erpnext/frappe-bench/env/bin/python -m pip install -q -U -e /home/erpnext/frappe-bench/apps/frappe \u001b[0m”,
“[Errno 2] No such file or directory: ‘/home/erpnext/frappe-bench/env/bin/python’”,
“\u001b[91mERROR: There was a problem while creating /home/erpnext/frappe-bench\u001b[0m”,
"Do you want to rollback these changes? [y/N]: "
]
}
PLAY RECAP *********************************************************************
localhost : ok=67 changed=20 unreachable=0 failed=1 skipped=62 rescued=0 ignored=0
Traceback (most recent call last):
File “install.py”, line 500, in
install_bench(args)
File “install.py”, line 281, in install_bench
run_playbook(‘site.yml’, sudo=True, extra_vars=extra_vars)
File “install.py”, line 416, in run_playbook
success = subprocess.check_call(args, cwd=playbooks_folder, stdout=log_stream, stderr=sys.stderr)
File “/usr/lib/python3.8/subprocess.py”, line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[‘ansible-playbook’, ‘-c’, ‘local’, ‘site.yml’, ‘-vvvv’, ‘-e’, ‘@/tmp/extra_vars.json’, ‘–become’, ‘–become-user=erpnext’]’ returned non-zero exit status 2.