New installation error on previously dependable script. Any hints on solving this?

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'.
$ /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 --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/", line 70, in init
  File "/usr/local/lib/python3.8/dist-packages/bench/utils/", line 95, in wrapper_fn
    return fn(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/bench/utils/", line 78, in init
  File "/usr/local/lib/python3.8/dist-packages/bench/", 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/", line 110, in wrapper_fn
    return fn(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/bench/", line 198, in install
  File "/usr/local/lib/python3.8/dist-packages/bench/", line 428, in install_app"yarn install", cwd=app_path)
  File "/usr/local/lib/python3.8/dist-packages/bench/", line 43, in run
    return exec_cmd(cmd, cwd=cwd or self.cwd)
  File "/usr/local/lib/python3.8/dist-packages/bench/utils/", line 126, in exec_cmd
    raise 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.

i guess the yarn command is not the one we expect.

what’s the output of yarn --help

Hi Revant,

Please accept my apologies for ignoring your reply.

I’m being driven a bit nuts by a mistake I made in my original Ubuntu installation – I selected the stripped down version, reckoning the fewer tools installed, the fewer potential security holes. Ha! It turns out that that excluded things like supervisor and a few other things, which my installation script expected to find.

SOooo … it’s kind of a mess.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.