Recently I upgraded my Mac to OSX 10.10.5 and upgraded a lot of other stuff
in the process. But now I can't get git-review to work. Whenever I try to
run it, it gives the following stacktrace:
Traceback (most recent call last):
File "/usr/local/bin/git-review", line 11, in <module>
sys.exit(main())
File "/Library/Python/2.7/site-packages/git_review/cmd.py", line 1522, in
main
_main()
File "/Library/Python/2.7/site-packages/git_review/cmd.py", line 1377, in
_main
(os.path.split(sys.argv[0])[-1], get_version()))
File "/Library/Python/2.7/site-packages/git_review/cmd.py", line 209, in
get_version
provider = pkg_resources.get_provider(requirement)
File
"/Library/Python/2.7/site-packages/distribute-0.6.14-py2.7.egg/pkg_resources.py",
line 177, in get_provider
return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
File
"/Library/Python/2.7/site-packages/distribute-0.6.14-py2.7.egg/pkg_resources.py",
line 654, in require
needed = self.resolve(parse_requirements(requirements))
File
"/Library/Python/2.7/site-packages/distribute-0.6.14-py2.7.egg/pkg_resources.py",
line 552, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: git-review
If I run "pip install --upgrade setuptools":
Requirement already up-to-date: setuptools in
/Library/Python/2.7/site-packages
If I run "pip install -U git-review":
Requirement already up-to-date: git-review in
/Library/Python/2.7/site-packages
Requirement already up-to-date: argparse in
/Library/Python/2.7/site-packages (from git-review)
Requirement already up-to-date: requests>=1.1 in
/Library/Python/2.7/site-packages (from git-review)
If I run "/usr/bin/easy_install --version":
distribute 0.6.14
I couldn't find any solution on Google or in our git-review docs. Any
suggestions?