How to fix this `bench init frappe-bench` Error:: bench.utils.CommandFailedError: bench build

pollen@59006f468648:~/pollen$ bench init frappe-bench
INFO:bench.utils:virtualenv -q env -p /usr/bin/python3
Already using interpreter /usr/bin/python3
INFO:bench.utils:env/bin/pip -q install --upgrade pip
INFO:bench.utils:env/bin/pip -q install wheel
INFO:bench.utils:env/bin/pip -q install six
INFO:bench.utils:env/bin/pip -q install -e git+https://github.com/frappe/python-pdfkit.git#egg=pdfkit
INFO:bench.app:getting app frappe
INFO:bench.utils:git clone https://github.com/frappe/frappe.git   --origin upstream
Cloning into 'frappe'...
remote: Enumerating objects: 72, done.
remote: Counting objects: 100% (72/72), done.
remote: Compressing objects: 100% (62/62), done.
remote: Total 192461 (delta 33), reused 21 (delta 10), pack-reused 192389
Receiving objects: 100% (192461/192461), 221.28 MiB | 5.54 MiB/s, done.
Resolving deltas: 100% (147487/147487), done.
Checking connectivity... done.
installing frappe
INFO:bench.app:installing frappe
INFO:bench.utils:frappe-bench/env/bin/pip install -q  -e frappe-bench/apps/frappe 
Updating node packages...
INFO:bench.utils:yarn install
yarn install v1.17.3
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning " > bootstrap@4.3.1" has unmet peer dependency "jquery@1.9.1 - 3".
warning " > bootstrap@4.3.1" has unmet peer dependency "popper.js@^1.14.7".
[4/4] Building fresh packages...
Done in 71.93s.
INFO:bench.utils:bench build
Usage: bench [OPTIONS] COMMAND [ARGS]...
Try "bench --help" for help.

Error: No such command "build".
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 11, in <module>
    load_entry_point('bench', 'console_scripts', 'bench')()
  File "/home/pollen/pollen/bench-repo/bench/cli.py", line 40, in cli
    bench_command()
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/pollen/pollen/bench-repo/bench/commands/make.py", line 31, in init
    python 		 = python)
  File "/home/pollen/pollen/bench-repo/bench/utils.py", line 88, in init

`> Blockquote`

build_assets(bench_path=path)
  File "/home/pollen/pollen/bench-repo/bench/utils.py", line 208, in build_assets
    exec_cmd(command, cwd=bench_path)
  File "/home/pollen/pollen/bench-repo/bench/utils.py", line 161, in exec_cmd
    raise CommandFailedError(cmd)
bench.utils.CommandFailedError: bench build

Also I am trying to do this inside a docker container running ubuntu 16.04
pollen@59006f468648:~/pollen$ bench --version
4.1.0

@satish_malkar try by using bench init frappe-bench and cd frappe-bench

same command i use

split the command

  • bench init frappe-bench
    and they use this command

  • cd frappe-bench

i also do that but issue same

bench.utils.CommandFailedError: npm install follow this

1 Like

thanks

have you fixed your issue @satish_malkar

@satish_malkar, please take the time to have a more descriptive title.

There are thousands of posts in this forum and sometimes it is very useful to someone to read the title before deciding to read the post itself.

Thank you for understanding.

i am not able to resolve that issue yet . i try some but i failed to resolve this issue.please help

not yet,
i reinstall the frappe bench but not solve

have you installed all the dependencies properly…!

yes ,
Everything works fine. I got into problem, when i run
bench init frappe-bench

ok copy the full traceback u get

pollen@59006f468648:~/pollen$ bench init frappe-bench
INFO:bench.utils:virtualenv -q env -p /usr/bin/python3
Already using interpreter /usr/bin/python3
INFO:bench.utils:env/bin/pip -q install --upgrade pip
INFO:bench.utils:env/bin/pip -q install wheel
INFO:bench.utils:env/bin/pip -q install six
INFO:bench.utils:env/bin/pip -q install -e git+https://github.com/frappe/python-pdfkit.git#egg=pdfkit
INFO:bench.app:getting app frappe
INFO:bench.utils:git clone https://github.com/frappe/frappe.git   --origin upstream
Cloning into 'frappe'...
remote: Enumerating objects: 72, done.
remote: Counting objects: 100% (72/72), done.
remote: Compressing objects: 100% (62/62), done.
remote: Total 192461 (delta 33), reused 21 (delta 10), pack-reused 192389
Receiving objects: 100% (192461/192461), 221.28 MiB | 5.54 MiB/s, done.
Resolving deltas: 100% (147487/147487), done.
Checking connectivity... done.
installing frappe
INFO:bench.app:installing frappe
INFO:bench.utils:frappe-bench/env/bin/pip install -q  -e frappe-bench/apps/frappe 
Updating node packages...
INFO:bench.utils:yarn install
yarn install v1.17.3
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning " > bootstrap@4.3.1" has unmet peer dependency "jquery@1.9.1 - 3".
warning " > bootstrap@4.3.1" has unmet peer dependency "popper.js@^1.14.7".
[4/4] Building fresh packages...
Done in 71.93s.
INFO:bench.utils:bench build
Usage: bench [OPTIONS] COMMAND [ARGS]...
Try "bench --help" for help.

Error: No such command "build".
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 11, in <module>
    load_entry_point('bench', 'console_scripts', 'bench')()
  File "/home/pollen/pollen/bench-repo/bench/cli.py", line 40, in cli
    bench_command()
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/pollen/pollen/bench-repo/bench/commands/make.py", line 31, in init
    python 		 = python)
  File "/home/pollen/pollen/bench-repo/bench/utils.py", line 88, in init

`> Blockquote`

build_assets(bench_path=path)
  File "/home/pollen/pollen/bench-repo/bench/utils.py", line 208, in build_assets
    exec_cmd(command, cwd=bench_path)
  File "/home/pollen/pollen/bench-repo/bench/utils.py", line 161, in exec_cmd
    raise CommandFailedError(cmd)
bench.utils.CommandFailedError: bench build

Also I am trying to do this inside a docker container running ubuntu 16.04
pollen@59006f468648:~/pollen$ bench --version
4.1.0