Proplem during installing ERPNext

Dear ,
i’am facing proplem during install erpnext @ Server in step 4 in this article (

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/", line 70, in init
  File "/usr/local/lib/python3.8/dist-packages/bench/utils/", line 95, in wrapper_fn
    return fn(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/bench/utils/", line 78, in init
  File "/usr/local/lib/python3.8/dist-packages/bench/", line 364, in get_app
  File "/usr/local/lib/python3.8/dist-packages/bench/utils/", line 110, in wrapper_fn
    return fn(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/bench/", line 159, in get
    shallow = "--depth 1" if self.bench.shallow_clone else ""
  File "/usr/local/lib/python3.8/dist-packages/bench/", line 79, in shallow_clone
    return get_git_version() > 1.9
  File "/usr/local/lib/python3.8/dist-packages/bench/utils/", line 176, in get_git_version
    version = get_cmd_output("git --version")
  File "/usr/local/lib/python3.8/dist-packages/bench/utils/", line 185, in get_cmd_output
    output = subprocess.check_output(
  File "/usr/lib/python3.8/", line 415, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.8/", 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"


Please check that all dependencies have been installed.

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