Error updating to V7 (Solved)

hi every one,

When i tried to update to the last version of the erpnext on OS X this error appear:

File “/Library/Python/2.7/site-packages/pkg_resources/init.py”, line 829, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The ‘GitPython==0.3.2.RC1’ distribution was not found and is required by bench

but i check the version that i have of gitpython and is up to date:

$ pip show gitpython

Metadata-Version: 2.0
Name: GitPython
Version: 2.0.3
Summary: Python Git Library

actually even tried to update any way:

$ sudo -H pip install gitpython --upgrade
Requirement already up-to-date: gitpython in /Library/Python/2.7/site-packages

any idea of what is happening ?..

Thank you!!!

Hi @gvargas,

You will need to install gitpython in frappe environment.

Please go to frappe-bench directory then activate the virtual environment by

activate env/bin/activate then, install the gitpython using
pip install gitpython

Thanks, Makarand

Thank you for answer @makarand_b, i tried it but doesn’t work here is the log:

$ virtualenv frappeenv
New python executable in /Users/gvargas/frappe-bench/frappeenv/bin/python
Installing setuptools, pip, wheel…done.
$ source frappeenv/bin/activate
(frappeenv) $ pip install gitpython
Collecting gitpython
Downloading GitPython-2.0.3-py2.py3-none-any.whl (425kB)
100% |████████████████████████████████| 430kB 246kB/s
Collecting gitdb>=0.6.4 (from gitpython)
Downloading gitdb-0.6.4.tar.gz (400kB)
100% |████████████████████████████████| 409kB 2.6MB/s
Collecting smmap>=0.8.5 (from gitdb>=0.6.4->gitpython)
Downloading smmap-0.9.0.tar.gz
Building wheels for collected packages: gitdb, smmap
Running setup.py bdist_wheel for gitdb … done
Stored in directory: /Users/gvargas/Library/Caches/pip/wheels/24/af/3c/0dc34fe9f16a057738fe88aee0c794a57755f238c0eaaf70f1
Running setup.py bdist_wheel for smmap … done
Stored in directory: /Users/gvargas/Library/Caches/pip/wheels/f2/8d/a5/d50981a5b89062285700f9aaed87d9ca02f287226f7c0979b2
Successfully built gitdb smmap
Installing collected packages: smmap, gitdb, gitpython
Successfully installed gitdb-0.6.4 gitpython-2.0.3 smmap-0.9.0
(frappeenv) $ deactivate
$ bench update
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 5, in
from pkg_resources import load_entry_point
File “/Library/Python/2.7/site-packages/pkg_resources/init.py”, line 2927, in
@_call_aside
File “/Library/Python/2.7/site-packages/pkg_resources/init.py”, line 2913, in _call_aside
f(*args, **kwargs)
File “/Library/Python/2.7/site-packages/pkg_resources/init.py”, line 2940, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File “/Library/Python/2.7/site-packages/pkg_resources/init.py”, line 637, in _build_master
return cls._build_from_requirements(requires)
File “/Library/Python/2.7/site-packages/pkg_resources/init.py”, line 650, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File “/Library/Python/2.7/site-packages/pkg_resources/init.py”, line 829, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The ‘GitPython==0.3.2.RC1’ distribution was not found and is required by bench

i solved the error…

i downloaded the itPython-0.3.2.RC1 from here:

GitPython-0.3.2.RC1

i compile it and then copie the .egg to /Library/Python/2.7/site-packages/ then i install the .egg.

and walla! i can update bench.