echo -e "\nCreate new '${CURRENT_BENCH}'.";
bench --version;
bench init --frappe-branch version-13 --python /usr/bin/python3 ${CURRENT_BENCH};
Gets me this result:
Create new 'frappe-bench-ERPLS'.
5.8.1
$ /usr/local/bin/virtualenv --quiet env -p /usr/bin/python3
$ /home/erpadm/frappe-bench-ERPLS/env/bin/python -m pip install --quiet --upgrade pip
Getting frappe
$ git clone https://github.com/frappe/frappe.git --branch version-13 --depth 1 --origin upstream
Cloning into 'frappe'...
Installing frappe
$ /home/erpadm/frappe-bench-ERPLS/env/bin/python -m pip install --quiet --upgrade -e /home/erpadm/frappe-bench-ERPLS/apps/frappe
$ yarn install
Parsing scenario file install
ERROR: [Errno 2] No such file or directory: 'install'
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/bench/commands/make.py", line 70, in init
init(
File "/usr/local/lib/python3.8/dist-packages/bench/utils/render.py", line 95, in wrapper_fn
return fn(*args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/bench/utils/system.py", line 78, in init
get_app(
File "/usr/local/lib/python3.8/dist-packages/bench/app.py", line 371, in get_app
app.install(verbose=verbose, skip_assets=skip_assets, restart_bench=restart_bench)
File "/usr/local/lib/python3.8/dist-packages/bench/utils/render.py", line 110, in wrapper_fn
return fn(*args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/bench/app.py", line 198, in install
install_app(
File "/usr/local/lib/python3.8/dist-packages/bench/app.py", line 428, in install_app
bench.run("yarn install", cwd=app_path)
File "/usr/local/lib/python3.8/dist-packages/bench/bench.py", line 43, in run
return exec_cmd(cmd, cwd=cwd or self.cwd)
File "/usr/local/lib/python3.8/dist-packages/bench/utils/__init__.py", line 126, in exec_cmd
raise CommandFailedError
bench.exceptions.CommandFailedError
ERROR: There was a problem while creating frappe-bench-ERPLS
Do you want to rollback these changes? [y/N]:
This is happening in a script that worked without problem a couple of months ago.
All and any ideas gratefully received.