As my VPS is powered by Ubuntu 20.04.4 LTS I want to install ERPNext 13. For this I want to install Frapper-Bench which is compatible with it.
How can I do this?
If I use the command sudo python3.8 -m pip install frappe-bench
then it installs version 5.14.2.
And the command bench init --frappe-branch=version-13 --python=python3.8 frappe-bench
fails with a long log of errors. Here is the output.
frappe@erp:~$ bench init --frappe-branch=version-13 --python=python3.8 frappe-bench
Setting Up Environment
$ python3.8 -m venv env
$ /home/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade pip
Getting frappe
$ git clone https://github.com/frappe/frappe.git --branch version-13 --depth 1 --origin upstream
Cloning into 'frappe'...
remote: Enumerating objects: 2997, done.
remote: Counting objects: 100% (2997/2997), done.
remote: Compressing objects: 100% (2677/2677), done.
remote: Total 2997 (delta 432), reused 1129 (delta 248), pack-reused 0
Receiving objects: 100% (2997/2997), 16.36 MiB | 10.88 MiB/s, done.
Resolving deltas: 100% (432/432), done.
Installing frappe
$ /home/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /home/frappe/frappe-bench/apps/frappe
$ yarn install
yarn install v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning " > bootstrap@4.5.0" has unmet peer dependency "popper.js@^1.16.0".
warning Workspaces can only be enabled in private projects.
[4/4] Building fresh packages...
$ yarn run snyk-protect
yarn run v1.22.19
$ snyk protect
Successfully applied Snyk patches
Done in 7.25s.
Done in 18.16s.
Found existing apps updating states...
$ bench build
Retrieving assets...
'latin-1' codec can't encode character '\u2714' in position 6: ordinal not in range(256)
Traceback (most recent call last):apps/frappe/node_modules to ./assets/frappe/node_modules
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 110, in <module>
main()
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 20, in main
click.Group(commands=commands)(prog_name="bench")
File "/home/frappe/frappe-bench/env/lib/python3.8/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/home/frappe/frappe-bench/env/lib/python3.8/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/frappe/frappe-bench/env/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/frappe/frappe-bench/env/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/frappe/frappe-bench/env/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/frappe/frappe-bench/env/lib/python3.8/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/utils.py", line 58, in build
frappe.build.bundle(
File "/home/frappe/frappe-bench/apps/frappe/frappe/build.py", line 230, in bundle
make_asset_dirs(hard_link=hard_link)
File "/home/frappe/frappe-bench/apps/frappe/frappe/build.py", line 420, in make_asset_dirs
print(unstrip(f"{green('\u2714')} Application Assets Linked") + "\n")
UnicodeEncodeError: 'latin-1' codec can't encode character '\u2714' in position 5: ordinal not in range(256)
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/bench/commands/make.py", line 68, in init
init(
File "/usr/local/lib/python3.8/dist-packages/bench/utils/render.py", line 105, in wrapper_fn
return fn(*args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/bench/utils/system.py", line 104, in init
build_assets(bench_path=path)
File "/usr/local/lib/python3.8/dist-packages/bench/utils/bench.py", line 330, in build_assets
exec_cmd(command, cwd=bench_path, env={"BENCH_DEVELOPER": "1"})
File "/usr/local/lib/python3.8/dist-packages/bench/utils/__init__.py", line 155, in exec_cmd
raise CommandFailedError
bench.exceptions.CommandFailedError
ERROR: There was a problem while creating frappe-bench
Do you want to rollback these changes? [y/N]:
Regards,