Proplem during installing ERPNext

Dear ,
i’am facing proplem during install erpnext @ Server in step 4 in this article (https://computingforgeeks.com/how-to-install-erpnext-erp-system-on-ubuntu/)

Error occur after this command ( ```
sudo su - erpnext
cd /srv/bench

Error log ( erpnext@tarmiz-vps:/srv/bench$ cd /srv/bench
erpnext@tarmiz-vps:/srv/bench$ bench init erpnext
$ /usr/local/bin/virtualenv --quiet env -p python3
$ /srv/bench/erpnext/env/bin/python -m pip install --quiet --upgrade pip
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/bench/commands/make.py", line 70, in init
    init(
  File "/usr/local/lib/python3.8/dist-packages/bench/utils/render.py", line 95, in wrapper_fn
    return fn(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/bench/utils/system.py", line 78, in init
    get_app(
  File "/usr/local/lib/python3.8/dist-packages/bench/app.py", line 364, in get_app
    app.get()
  File "/usr/local/lib/python3.8/dist-packages/bench/utils/render.py", line 110, in wrapper_fn
    return fn(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/bench/app.py", line 159, in get
    shallow = "--depth 1" if self.bench.shallow_clone else ""
  File "/usr/local/lib/python3.8/dist-packages/bench/bench.py", line 79, in shallow_clone
    return get_git_version() > 1.9
  File "/usr/local/lib/python3.8/dist-packages/bench/utils/__init__.py", line 176, in get_git_version
    version = get_cmd_output("git --version")
  File "/usr/local/lib/python3.8/dist-packages/bench/utils/__init__.py", line 185, in get_cmd_output
    output = subprocess.check_output(
  File "/usr/lib/python3.8/subprocess.py", line 415, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.8/subprocess.py", line 516, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'git --version' returned non-zero exit status 127.

ERROR: There was a problem while creating erpnext
Do you want to rollback these changes? [y/N]: y
INFO: Rolling back Bench "erpnext"
)

Hi,

Please check that all dependencies have been installed.

https://github.com/frappe/frappe/wiki/The-Hitchhiker%27s-Guide-to-Installing-Frappe-on-Linux#dependencies

all of them installed

May we know the output of: git --version and apt-cache policy git ?

As @smino mentioned about all the dependances being installed. Since the installation failed at the command git --version it is most likely caused because git is not installed on your system.

1 Like