ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

The 'GitPython==2.1.11' distribution was not found and is required by bench

installation_problem
erpnext

#1

hi there

I tried to install erpnext in centos7 which panel/whm already installed.
when I use install-script there was dependency conflict as bellow issue

thanks for @clarkej and @fromthestone for replying but I couldn’t apply their solutions

I decided to install manually base on bellow

but the time I run bench init erpnext && cd erpnext
I get this error
pkg_resouces.DistributionNotFound: The 'GitPython'==2.1.11 distrubution was not found and is required by bench

if I run sudo pip install GitPython==2.1.11 I get

Requirement already satisfied: GitPython==2.1.11 in /root/.local/lib/python2.7/site-packages (2.1.11) Requirement already satisfied: gitdb2>=2.0.0 in /root/.local/lib/python2.7/site-packages (from GitPython==2.1.11) (2.0.5) Requirement already satisfied: smmap2>=2.0.0 in /root/.local/lib/python2.7/site-packages (from gitdb2>=2.0.0->GitPython==2.1.11) (2.0.5)

if I check the command yum info GitPython it shows Repo : installed

anybody can help with this error?


Error while installing bench repo
#2

Can you share the full traceback?


#3

It seems bench is not installed properly, I removed everything like user and bench-repo and try again. the main error is showing when I install bench.

[bench@cpanel ~]$ sudo pip install -e bench-repo
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Obtaining file:///opt/bench/bench-repo
Requirement already satisfied: Click in /root/.local/lib/python2.7/site-packages (from bench==4.1.0) (7.0)
Requirement already satisfied: jinja2 in /usr/lib64/python2.7/site-packages (from bench==4.1.0) (2.10.1)
Requirement already satisfied: virtualenv in /root/.local/lib/python2.7/site-packages (from bench==4.1.0) (16.6.0)
Requirement already satisfied: requests in /usr/lib/python2.7/site-packages (from bench==4.1.0) (2.21.0)
Requirement already satisfied: honcho in /root/.local/lib/python2.7/site-packages (from bench==4.1.0) (1.0.1)
Requirement already satisfied: python-crontab in /root/.local/lib/python2.7/site-packages (from bench==4.1.0) (2.3.6)
Requirement already satisfied: semantic_version in /usr/lib/python2.7/site-packages (from bench==4.1.0) (2.6.0)
Requirement already satisfied: GitPython==2.1.11 in /usr/lib/python2.7/site-packages (from bench==4.1.0) (2.1.11)
Requirement already satisfied: MarkupSafe>=0.23 in /usr/lib64/python2.7/site-packages (from jinja2->bench==4.1.0) (1.1.1)
Requirement already satisfied: urllib3<1.25,>=1.21.1 in /usr/lib/python2.7/site-packages (from requests->bench==4.1.0) (1.24.3)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/lib/python2.7/site-packages (from requests->bench==4.1.0) (3.0.4)
Requirement already satisfied: idna<2.9,>=2.5 in /usr/lib/python2.7/site-packages (from requests->bench==4.1.0) (2.8)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python2.7/site-packages (from requests->bench==4.1.0) (2019.3.9)
Requirement already satisfied: python-dateutil in /root/.local/lib/python2.7/site-packages (from python-crontab->bench==4.1.0) (2.8.0)
Requirement already satisfied: gitdb2>=2.0.0 in /root/.local/lib/python2.7/site-packages (from GitPython==2.1.11->bench==4.1.0) (2.0.5)
Requirement already satisfied: six>=1.5 in /usr/lib/python2.7/site-packages (from python-dateutil->python-crontab->bench==4.1.0) (1.9.0)
Requirement already satisfied: smmap2>=2.0.0 in /root/.local/lib/python2.7/site-packages (from gitdb2>=2.0.0->GitPython==2.1.11->bench==4.1.0) (2.0.5)
Installing collected packages: bench
  Found existing installation: bench 4.1.0
ERROR: Exception:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/pip/_internal/cli/base_command.py", line 178, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/site-packages/pip/_internal/commands/install.py", line 414, in run
    use_user_site=options.use_user_site,
  File "/usr/lib/python2.7/site-packages/pip/_internal/req/__init__.py", line 51, in install_given_reqs
    auto_confirm=True
  File "/usr/lib/python2.7/site-packages/pip/_internal/req/req_install.py", line 822, in uninstall
    uninstalled_pathset = UninstallPathSet.from_dist(dist)
  File "/usr/lib/python2.7/site-packages/pip/_internal/req/req_uninstall.py", line 538, in from_dist
    '(at %s)' % (link_pointer, dist.project_name, dist.location)
AssertionError: Egg-link /root/bench-repo does not match installed location of bench (at /opt/bench/bench-repo)

at the previous try i skipped because the error says Found existing installation: bench 4.1.0 I thought bench already installed and proceed to next command bench init erpnext