bench version: 5.16.0
frappe: version-13 branch
I am trying to install frappe in WSL 2 in windows 11
Getting installation error while installing frappe with command:
$ bench init frappe-bench --frappe-branch version-13
Error Log:
/mnt/c/Users/Akash: 1: Syntax error: "(" unexpected
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/akash/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 110, in <module>
main()
File "/home/akash/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 20, in main
click.Group(commands=commands)(prog_name="bench")
File "/home/akash/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/home/akash/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/akash/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/akash/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/akash/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/akash/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/home/akash/frappe-bench/apps/frappe/frappe/commands/utils.py", line 60, in build
bundle(
File "/home/akash/frappe-bench/apps/frappe/frappe/build.py", line 244, in bundle
frappe.commands.popen(command, cwd=frappe_app_path, env=get_node_env(), raise_err=True)
File "/home/akash/frappe-bench/apps/frappe/frappe/commands/__init__.py", line 100, in popen
raise subprocess.CalledProcessError(return_, command)
subprocess.CalledProcessError: Command '/mnt/c/Users/Akash Khattri/AppData/Roaming/npm/yarn run production' returned non-zero exit status 2.
Traceback (most recent call last):
File "/home/akash/.local/lib/python3.10/site-packages/bench/commands/make.py", line 68, in init
init(
File "/home/akash/.local/lib/python3.10/site-packages/bench/utils/render.py", line 105, in wrapper_fn
return fn(*args, **kwargs)
File "/home/akash/.local/lib/python3.10/site-packages/bench/utils/system.py", line 104, in init
build_assets(bench_path=path)
File "/home/akash/.local/lib/python3.10/site-packages/bench/utils/bench.py", line 345, in build_assets
exec_cmd(command, cwd=bench_path, env={"BENCH_DEVELOPER": "1"})
File "/home/akash/.local/lib/python3.10/site-packages/bench/utils/__init__.py", line 158, in exec_cmd
raise CommandFailedError
bench.exceptions.CommandFailedError
Thank you