On bench bench init frappe-bench --frappe-branch version-15
Blockquote
Setting Up Environment
$ /usr/bin/virtualenv --quiet env -p python3
$ /home/inaiwet/frappe-bench/env/bin/python -m pip install --quiet --upgrade pip
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: 3317, done.
remote: Counting objects: 100% (3317/3317), done.
remote: Compressing objects: 100% (2991/2991), done.
remote: Total 3317 (delta 422), reused 1505 (delta 213), pack-reused 0 (from 0)
Receiving objects: 100% (3317/3317), 16.07 MiB | 12.28 MiB/s, done.
Resolving deltas: 100% (422/422), done.
Installing frappe
$ /home/inaiwet/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /home/inaiwet/frappe-bench/apps/frappe
$ yarn install
yarn install v1.22.22
[1/5] Validating package.json…
[2/5] Resolving packages…
[3/5] Fetching packages…
[4/5] Linking dependencies…
warning " > frappe/esbuild-plugin-postcss2@0.1.3" has unmet peer dependency “less@^4.x”.
warning " > frappe/esbuild-plugin-postcss2@0.1.3" has unmet peer dependency “stylus@^0.x”.
warning " > vue/component-compiler@4.2.4" has unmet peer dependency “vue-template-compiler@*”.
[5/5] Building fresh packages…
Done in 5.47s.
Found existing apps updating states…
$ bench build
Traceback (most recent call last):
File “/home/inaiwet/frappe-bench/env/lib/python3.10/site-packages/redis/connection.py”, line 699, in connect
sock = self.retry.call_with_retry(
File “/home/inaiwet/frappe-bench/env/lib/python3.10/site-packages/redis/retry.py”, line 51, in call_with_retry
raise error
File “/home/inaiwet/frappe-bench/env/lib/python3.10/site-packages/redis/retry.py”, line 46, in call_with_retry
return do()
File “/home/inaiwet/frappe-bench/env/lib/python3.10/site-packages/redis/connection.py”, line 700, in
lambda: self._connect(), lambda error: self.disconnect(error)
File “/home/inaiwet/frappe-bench/env/lib/python3.10/site-packages/redis/connection.py”, line 1002, in _connect
raise err
File “/home/inaiwet/frappe-bench/env/lib/python3.10/site-packages/redis/connection.py”, line 990, in _connect
sock.connect(socket_address)
TimeoutError: [Errno 110] Connection timed out
Blockquote
During handling of the above exception, another exception occurred:
Blockquote
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/inaiwet/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 114, in
main()
File “/home/inaiwet/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 20, in main
click.Group(commands=commands)(prog_name=“bench”)
File “/home/inaiwet/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 1157, in call
return self.main(*args, **kwargs)
File “/home/inaiwet/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 1078, in main
rv = self.invoke(ctx)
File “/home/inaiwet/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/inaiwet/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 1685, in invoke
super().invoke(ctx)
File “/home/inaiwet/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/inaiwet/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 783, in invoke
return __callback(*args, **kwargs)
File “/home/inaiwet/frappe-bench/env/lib/python3.10/site-packages/click/decorators.py”, line 33, in new_func
return f(get_current_context(), *args, **kwargs)
File “/home/inaiwet/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 44, in app_group
ctx.obj = {“sites”: get_sites(site), “force”: force, “verbose”: verbose, “profile”: profile}
File “/home/inaiwet/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 56, in get_sites
elif default_site := frappe.get_conf().default_site:
File “/home/inaiwet/frappe-bench/apps/frappe/frappe/init.py”, line 445, in get_conf
with init_site(site):
File “/home/inaiwet/frappe-bench/apps/frappe/frappe/init.py”, line 455, in enter
init(self.site)
File “/home/inaiwet/frappe-bench/apps/frappe/frappe/init.py”, line 313, in init
setup_module_map(include_all_apps=not (frappe.request or frappe.job or frappe.flags.in_migrate))
File “/home/inaiwet/frappe-bench/apps/frappe/frappe/init.py”, line 1679, in setup_module_map
local.app_modules = cache.get_value(“app_modules”)
File “/home/inaiwet/frappe-bench/apps/frappe/frappe/utils/redis_wrapper.py”, line 91, in get_value
val = self.get(key)
File “/home/inaiwet/frappe-bench/env/lib/python3.10/site-packages/redis/commands/core.py”, line 1801, in get
return self.execute_command(“GET”, name)
File “/home/inaiwet/frappe-bench/env/lib/python3.10/site-packages/redis/client.py”, line 1266, in execute_command
conn = self.connection or pool.get_connection(command_name, **options)
File “/home/inaiwet/frappe-bench/env/lib/python3.10/site-packages/redis/connection.py”, line 1457, in get_connection
connection.connect()
File “/home/inaiwet/frappe-bench/env/lib/python3.10/site-packages/redis/connection.py”, line 703, in connect
raise TimeoutError(“Timeout connecting to server”)
redis.exceptions.TimeoutError: Timeout connecting to server
Traceback (most recent call last):
File “/usr/local/lib/python3.10/dist-packages/bench/commands/make.py”, line 70, in init
init(
File “/usr/local/lib/python3.10/dist-packages/bench/utils/render.py”, line 95, in wrapper_fn
return fn(*args, **kwargs)
File “/usr/local/lib/python3.10/dist-packages/bench/utils/system.py”, line 104, in init
build_assets(bench_path=path)
File “/usr/local/lib/python3.10/dist-packages/bench/utils/bench.py”, line 337, in build_assets
exec_cmd(command, cwd=bench_path, env={“BENCH_DEVELOPER”: “1”})
File “/usr/local/lib/python3.10/dist-packages/bench/utils/init.py”, line 153, in exec_cmd
raise CommandFailedError
bench.exceptions.CommandFailedError
Installed by this guide with WSL https://codewithkarani.com/2024/07/02/how-to-install-erpnext-version-15-in-ubuntu-24-04-a-step-by-step-guide/