@codingCoffee
I tried following commands:
Switch to frappe user. Goto /home/frappe/.bench folder and do a git pull and then run the install script again as root user.
and i tried on 2 fresh servers.
but still getting
TASK [bench : python2 bench init for production] *******************************
fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: [“bench”, “init”, “/home/frappe2/frappe-bench”, “–frappe-branch”, “master”], “delta”: “0:00:00.139708”, “end”: “2018-04-17 05:23:52.220751”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2018-04-17 05:23:52.081043”, “stderr”: “Traceback (most recent call last):\n File "/bin/bench", line 6, in \n from pkg_resources import load_entry_point\n File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 3088, in \n @_call_aside\n File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 3072, in _call_aside\n f(*args, **kwargs)\n File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 3101, in _initialize_master_working_set\n working_set = WorkingSet._build_master()\n File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 574, in _build_master\n ws.require(requires)\n File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 892, in require\n needed = self.resolve(parse_requirements(requirements))\n File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 778, in resolve\n raise DistributionNotFound(req, requirers)\npkg_resources.DistributionNotFound: The ‘GitPython==0.3.2.1’ distribution was not found and is required by bench”, “stderr_lines”: [“Traceback (most recent call last):”, " File "/bin/bench", line 6, in “, " from pkg_resources import load_entry_point”, " File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 3088, in “, " @_call_aside”, " File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 3072, in _call_aside", " f(*args, **kwargs)“, " File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 3101, in _initialize_master_working_set”, " working_set = WorkingSet._build_master()“, " File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 574, in _build_master”, " ws.require(requires)“, " File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 892, in require”, " needed = self.resolve(parse_requirements(requirements))“, " File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 778, in resolve”, " raise DistributionNotFound(req, requirers)", “pkg_resources.DistributionNotFound: The ‘GitPython==0.3.2.1’ distribution was not found and is required by bench”], “stdout”: “”, “stdout_lines”: }
before i did this:
for installation steps