Hello,
I am trying to install ERPNext 13 on a fresh system. The OS is Ubuntu 22.04.1 LTS.
I am following the steps listed by Humenth on Github.
But the installation is failing at Step #15. Here instead of version 14 I want to install version 13.
bench init erp13 --verbose --version version-13
Here is the error part of the output.
gyp verb `which` failed Error: not found: python2
gyp verb `which` failed at getNotFoundError (/home/erpnext/erp13/apps/frappe/node_modules/which/which.js:13:12)
gyp verb `which` failed at F (/home/erpnext/erp13/apps/frappe/node_modules/which/which.js:68:19)
gyp verb `which` failed at E (/home/erpnext/erp13/apps/frappe/node_modules/which/which.js:80:29)
gyp verb `which` failed at /home/erpnext/erp13/apps/frappe/node_modules/which/which.js:89:16
gyp verb `which` failed at /home/erpnext/erp13/apps/frappe/node_modules/isexe/index.js:42:5
gyp verb `which` failed at /home/erpnext/erp13/apps/frappe/node_modules/isexe/mode.js:8:5
gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:206:21)
gyp verb `which` failed python2 Error: not found: python2
gyp verb `which` failed at getNotFoundError (/home/erpnext/erp13/apps/frappe/node_modules/which/which.js:13:12)
gyp verb `which` failed at F (/home/erpnext/erp13/apps/frappe/node_modules/which/which.js:68:19)
gyp verb `which` failed at E (/home/erpnext/erp13/apps/frappe/node_modules/which/which.js:80:29)
gyp verb `which` failed at /home/erpnext/erp13/apps/frappe/node_modules/which/which.js:89:16
gyp verb `which` failed at /home/erpnext/erp13/apps/frappe/node_modules/isexe/index.js:42:5
gyp verb `which` failed at /home/erpnext/erp13/apps/frappe/node_modules/isexe/mode.js:8:5
gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:206:21) {
gyp verb `which` failed code: 'ENOENT'
gyp verb `which` failed }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` failed Error: not found: python
gyp verb `which` failed at getNotFoundError (/home/erpnext/erp13/apps/frappe/node_modules/which/which.js:13:12)
gyp verb `which` failed at F (/home/erpnext/erp13/apps/frappe/node_modules/which/which.js:68:19)
gyp verb `which` failed at E (/home/erpnext/erp13/apps/frappe/node_modules/which/which.js:80:29)
gyp verb `which` failed at /home/erpnext/erp13/apps/frappe/node_modules/which/which.js:89:16
gyp verb `which` failed at /home/erpnext/erp13/apps/frappe/node_modules/isexe/index.js:42:5
gyp verb `which` failed at /home/erpnext/erp13/apps/frappe/node_modules/isexe/mode.js:8:5
gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:206:21)
gyp verb `which` failed python Error: not found: python
gyp verb `which` failed at getNotFoundError (/home/erpnext/erp13/apps/frappe/node_modules/which/which.js:13:12)
gyp verb `which` failed at F (/home/erpnext/erp13/apps/frappe/node_modules/which/which.js:68:19)
gyp verb `which` failed at E (/home/erpnext/erp13/apps/frappe/node_modules/which/which.js:80:29)
gyp verb `which` failed at /home/erpnext/erp13/apps/frappe/node_modules/which/which.js:89:16
gyp verb `which` failed at /home/erpnext/erp13/apps/frappe/node_modules/isexe/index.js:42:5
gyp verb `which` failed at /home/erpnext/erp13/apps/frappe/node_modules/isexe/mode.js:8:5
gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:206:21) {
gyp verb `which` failed code: 'ENOENT'
gyp verb `which` failed }
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (/home/erpnext/erp13/apps/frappe/node_modules/node-gyp/lib/configure.js:484:19)
gyp ERR! stack at PythonFinder.<anonymous> (/home/erpnext/erp13/apps/frappe/node_modules/node-gyp/lib/configure.js:406:16)
gyp ERR! stack at F (/home/erpnext/erp13/apps/frappe/node_modules/which/which.js:68:16)
gyp ERR! stack at E (/home/erpnext/erp13/apps/frappe/node_modules/which/which.js:80:29)
gyp ERR! stack at /home/erpnext/erp13/apps/frappe/node_modules/which/which.js:89:16
gyp ERR! stack at /home/erpnext/erp13/apps/frappe/node_modules/isexe/index.js:42:5
gyp ERR! stack at /home/erpnext/erp13/apps/frappe/node_modules/isexe/mode.js:8:5
gyp ERR! stack at FSReqCallback.oncomplete (node:fs:206:21)
gyp ERR! System Linux 5.15.0-47-generic
gyp ERR! command "/home/erpnext/.nvm/versions/node/v16.17.0/bin/node" "/home/erpnext/erp13/apps/frappe/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /home/erpnext/erp13/apps/frappe/node_modules/node-sass
gyp ERR! node -v v16.17.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/bench/commands/make.py", line 68, 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 79, in init
get_app(
File "/usr/local/lib/python3.10/dist-packages/bench/app.py", line 432, 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 230, in install
install_app(
File "/usr/local/lib/python3.10/dist-packages/bench/app.py", line 569, in install_app
bench.run("yarn install", cwd=app_path)
File "/usr/local/lib/python3.10/dist-packages/bench/bench.py", line 47, in run
return exec_cmd(cmd, cwd=cwd or self.cwd)
File "/usr/local/lib/python3.10/dist-packages/bench/utils/__init__.py", line 155, in exec_cmd
raise CommandFailedError
bench.exceptions.CommandFailedError
But version 14 is getting installed properly.
What must be the problem and how to solve it?
TIA
Yogi Yang