Actually i got error while use
bench init --frappe-branch version-15 frappe-bench
Here i shared the log.
frappeadmin@sumith-ASUS-TUF-Gaming-F17-FX706HF-FX706HF:~$ bench init --frappe-branch version-15 frappe-bench
Setting Up Environment
$ python3 -m venv env
$ /home/frappeadmin/frappe-bench/env/bin/python -m pip install --quiet --upgrade pip
$ /home/frappeadmin/frappe-bench/env/bin/python -m pip install --quiet wheel
Getting frappe
$ git clone https://github.com/frappe/frappe.git --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% (2993/2993), done.
remote: Total 3317 (delta 423), reused 1491 (delta 211), pack-reused 0 (from 0)
Receiving objects: 100% (3317/3317), 16.08 MiB | 4.47 MiB/s, done.
Resolving deltas: 100% (423/423), done.
Installing frappe
$ /home/frappeadmin/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /home/frappeadmin/frappe-bench/apps/frappe
ERROR: Exception:
Traceback (most recent call last):
File "/home/frappeadmin/frappe-bench/env/lib/python3.10/site-packages/pip/_vendor/urllib3/response.py", line 438, in _error_catcher
yield
File "/home/frappeadmin/frappe-bench/env/lib/python3.10/site-packages/pip/_vendor/urllib3/response.py", line 561, in read
data = self._fp_read(amt) if not fp_closed else b""
File "/home/frappeadmin/frappe-bench/env/lib/python3.10/site-packages/pip/_vendor/urllib3/response.py", line 527, in _fp_read
return self._fp.read(amt) if amt is not None else self._fp.read()
File "/home/frappeadmin/frappe-bench/env/lib/python3.10/site-packages/pip/_vendor/cachecontrol/filewrapper.py", line 98, in read
data: bytes = self.__fp.read(amt)
File "/usr/lib/python3.10/http/client.py", line 466, in read
s = self.fp.read(amt)
File "/usr/lib/python3.10/socket.py", line 705, in readinto
return self._sock.recv_into(b)
File "/usr/lib/python3.10/ssl.py", line 1303, in recv_into
return self.read(nbytes, buffer)
File "/usr/lib/python3.10/ssl.py", line 1159, in read
return self._sslobj.read(len, buffer)
TimeoutError: The read operation timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/frappeadmin/frappe-bench/env/lib/python3.10/site-packages/pip/_internal/cli/base_command.py", line 105, in _run_wrapper
status = _inner_run()
File "/home/frappeadmin/frappe-bench/env/lib/python3.10/site-packages/pip/_internal/cli/base_command.py", line 96, in _inner_run
return self.run(options, args)
File "/home/frappeadmin/frappe-bench/env/lib/python3.10/site-packages/pip/_internal/cli/req_command.py", line 67, in wrapper
return func(self, options, args)
File "/home/frappeadmin/frappe-bench/env/lib/python3.10/site-packages/pip/_internal/commands/install.py", line 379, in run
requirement_set = resolver.resolve(
File "/home/frappeadmin/frappe-bench/env/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 179, in resolve
self.factory.preparer.prepare_linked_requirements_more(reqs)
File "/home/frappeadmin/frappe-bench/env/lib/python3.10/site-packages/pip/_internal/operations/prepare.py", line 554, in prepare_linked_requirements_more
self._complete_partial_requirements(
File "/home/frappeadmin/frappe-bench/env/lib/python3.10/site-packages/pip/_internal/operations/prepare.py", line 469, in _complete_partial_requirements
for link, (filepath, _) in batch_download:
File "/home/frappeadmin/frappe-bench/env/lib/python3.10/site-packages/pip/_internal/network/download.py", line 184, in __call__
for chunk in chunks:
File "/home/frappeadmin/frappe-bench/env/lib/python3.10/site-packages/pip/_internal/network/utils.py", line 65, in response_chunks
for chunk in response.raw.stream(
File "/home/frappeadmin/frappe-bench/env/lib/python3.10/site-packages/pip/_vendor/urllib3/response.py", line 622, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "/home/frappeadmin/frappe-bench/env/lib/python3.10/site-packages/pip/_vendor/urllib3/response.py", line 560, in read
with self._error_catcher():
File "/usr/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "/home/frappeadmin/frappe-bench/env/lib/python3.10/site-packages/pip/_vendor/urllib3/response.py", line 443, in _error_catcher
raise ReadTimeoutError(self._pool, None, "Read timed out.")
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
subprocess.CalledProcessError: Command '/home/frappeadmin/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /home/frappeadmin/frappe-bench/apps/frappe ' returned non-zero exit status 2.
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 87, in init
get_app(
File "/usr/local/lib/python3.10/dist-packages/bench/app.py", line 777, in get_app
app.install(verbose=verbose, skip_assets=skip_assets, restart_bench=restart_bench)
File "/usr/local/lib/python3.10/dist-packages/bench/utils/render.py", line 126, in wrapper_fn
return fn(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/bench/app.py", line 254, in install
install_app(
File "/usr/local/lib/python3.10/dist-packages/bench/app.py", line 909, in install_app
bench.run(
File "/usr/local/lib/python3.10/dist-packages/bench/bench.py", line 48, in run
return exec_cmd(cmd, cwd=cwd or self.cwd, _raise=_raise)
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: /home/frappeadmin/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /home/frappeadmin/frappe-bench/apps/frappe
ERROR: There was a problem while creating frappe-bench
Do you want to rollback these changes? [y/N]: y
INFO: Rolling back Bench "frappe-bench"