Today i have decided to write some unit test on JavaScript via Jasmine, but i encountered the following exception stack trace.
Traceback (most recent call last):
File "/usr/local/bin/jasmine", line 5, in <module>
from pkg_resources import load_entry_point
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2603, in <module>
working_set.require(__requires__)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 666, in require
needed = self.resolve(parse_requirements(requirements))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve
raise DistributionNotFound(req) # XXX put more info here
pkg_resources.DistributionNotFound: six
Although Six module was on my Python package directory, it could not be found. Upgrading setuptools via pip
may help
to solve this problem:
[sudo] pip install --upgrade setuptools
Just wanted to say that this suggestion just solved the problem for me.