I am initializing the bench through this command
bench init frappe-bench --frappe-branch version-15 --python python3.11
and this is giving me the below Error !
Setting Up Environment
$ python3.11 -m venv env
$ /home/khayam/frappe-bench/env/bin/python -m pip install --quiet --upgrade pip
$ /home/khayam/frappe-bench/env/bin/python -m pip install --quiet wheel
Getting frappe
$ git clone GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript --branch version-15 --depth 1 --origin upstream
Cloning into ‘frappe’…
remote: Enumerating objects: 3308, done.
remote: Counting objects: 100% (3308/3308), done.
remote: Compressing objects: 100% (2978/2978), done.
remote: Total 3308 (delta 425), reused 1505 (delta 217), pack-reused 0
Receiving objects: 100% (3308/3308), 15.92 MiB | 12.27 MiB/s, done.
Resolving deltas: 100% (425/425), done.
Installing frappe
$ /home/khayam/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /home/khayam/frappe-bench/apps/frappe
$ yarn install --check-files
yarn install v1.22.22
[1/5] Validating package.json…
[2/5] Resolving packages…
[3/5] Fetching packages…
[#########################################################----------------------------------------------------] 274/523Found existing apps updating states…
$ sudo supervisorctl restart frappe:
frappe: ERROR (no such group)
frappe: ERROR (no such group)
WARN: restarting supervisor group frappe:
failed. Use bench restart
to retry.
$ bench build
Assets for Release v15.35.0 don’t exist
Application Assets Linked
yarn run v1.22.22
$ node esbuild --production --run-build-command
node:internal/modules/cjs/loader:1222
throw err;
^
Error: Cannot find module ‘fast-glob’
Require stack:
- /home/khayam/frappe-bench/apps/frappe/esbuild/esbuild.js
- /home/khayam/frappe-bench/apps/frappe/esbuild/index.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1219:15)
at Module._load (node:internal/modules/cjs/loader:1045:27)
at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:215:24)
at Module.require (node:internal/modules/cjs/loader:1304:12)
at require (node:internal/modules/helpers:123:16)
at Object. (/home/khayam/frappe-bench/apps/frappe/esbuild/esbuild.js:3:14)
at Module._compile (node:internal/modules/cjs/loader:1504:14)
at Module._extensions…js (node:internal/modules/cjs/loader:1588:10)
at Module.load (node:internal/modules/cjs/loader:1282:32) {
code: ‘MODULE_NOT_FOUND’,
requireStack: [
‘/home/khayam/frappe-bench/apps/frappe/esbuild/esbuild.js’,
‘/home/khayam/frappe-bench/apps/frappe/esbuild/index.js’
]
}
Node.js v22.5.0
error Command failed with exit code 1.
info Visit yarn run | Yarn for documentation about this command.
Traceback (most recent call last):
File “”, line 198, in _run_module_as_main
File “”, line 88, in _run_code
File “/home/khayam/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 114, in
main()
File “/home/khayam/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 20, in main
click.Group(commands=commands)(prog_name=“bench”)
File “/home/khayam/frappe-bench/env/lib/python3.11/site-packages/click/core.py”, line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/khayam/frappe-bench/env/lib/python3.11/site-packages/click/core.py”, line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File “/home/khayam/frappe-bench/env/lib/python3.11/site-packages/click/core.py”, line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/khayam/frappe-bench/env/lib/python3.11/site-packages/click/core.py”, line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/khayam/frappe-bench/env/lib/python3.11/site-packages/click/core.py”, line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/khayam/frappe-bench/env/lib/python3.11/site-packages/click/core.py”, line 783, in invoke
return _callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/khayam/frappe-bench/apps/frappe/frappe/commands/utils.py”, line 77, in build
bundle(
File “/home/khayam/frappe-bench/apps/frappe/frappe/build.py”, line 254, in bundle
frappe.commands.popen(command, cwd=frappe_app_path, env=get_node_env(), raise_err=True)
File “/home/khayam/frappe-bench/apps/frappe/frappe/commands/init.py”, line 97, in popen
raise subprocess.CalledProcessError(return, command)
subprocess.CalledProcessError: Command ‘yarn run production --run-build-command’ returned non-zero exit status 1.
subprocess.CalledProcessError: Command ‘bench build’ returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “/usr/local/lib/python3.10/dist-packages/bench/commands/make.py”, line 75, in init
init(
File “/usr/local/lib/python3.10/dist-packages/bench/utils/render.py”, line 105, in wrapper_fn
return fn(*args, **kwargs)
File “/usr/local/lib/python3.10/dist-packages/bench/utils/system.py”, line 112, in init
build_assets(bench_path=path)
File “/usr/local/lib/python3.10/dist-packages/bench/utils/bench.py”, line 380, in build_assets
exec_cmd(command, cwd=bench_path, env=env)
File “/usr/local/lib/python3.10/dist-packages/bench/utils/init.py”, line 178, in exec_cmd
raise CommandFailedError(cmd) from subprocess.CalledProcessError(return_code, cmd)
bench.exceptions.CommandFailedError: bench build
ERROR: There was a problem while creating frappe-bench
Its ubuntu 22.04
Anyone know about this error ?