gjslint dies with DistributionNotFound on OS X 10.8.2

115 views
Skip to first unread message

Josh Jordan

unread,
Sep 20, 2012, 6:04:53 AM9/20/12
to closure-lin...@googlegroups.com
I expect gslint -h to show me a help message, but instead it dies.

$ /usr/local/bin/gjslint -h
Traceback (most recent call last):
  File "/usr/local/bin/gjslint", 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: closure-linter==2.3.6.1

Here's a typescript of the installation, along with some information about my python version:

$ which python
/usr/bin/python
$ /usr/bin/python --version
Python 2.7.2
Processing closure_linter-latest.tar.gz
Running closure_linter-2.3.6.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-34F4SH/closure_linter-2.3.6.1/egg-dist-tmp-mIRODG
zip_safe flag not set; analyzing archive contents...
closure-linter 2.3.6.1 is already the active version in easy-install.pth
Installing fixjsstyle script to /usr/local/bin
Installing gjslint script to /usr/local/bin

Installed /Library/Python/2.7/site-packages/closure_linter-2.3.6.1-py2.7.egg
Processing dependencies for closure-linter==2.3.6.1
Finished processing dependencies for closure-linter==2.3.6.1
$

Johannes Nel

unread,
Sep 21, 2012, 2:24:09 AM9/21/12
to closure-lin...@googlegroups.com
I seriously doubt this is your problem, but, installing ports on OSX post 10.6.8 meant switching from the llvm c compiler to the gcc one. I am not sure what the deps are python on this and even if C-Pthon still needs to run make when installing anything when installing the linter, but it is an easy enough env var to switch to check out.
--
j:pn
\\no comment
Reply all
Reply to author
Forward
0 new messages