Skip to content

Instantly share code, notes, and snippets.

@amrox
Created September 15, 2011 03:43
Show Gist options
  • Select an option

  • Save amrox/1218473 to your computer and use it in GitHub Desktop.

Select an option

Save amrox/1218473 to your computer and use it in GitHub Desktop.
It's shit like this, Python package management
$ sudo pip install jsonpretty
Downloading/unpacking jsonpretty
Downloading JSONPretty-1.0.0.tar.gz
Running setup.py egg_info for package jsonpretty
Requirement already satisfied (use --upgrade to upgrade): simplejson in /Library/Python/2.7/site-packages (from jsonpretty)
Installing collected packages: jsonpretty
Running setup.py install for jsonpretty
Installing jsonpretty script to /usr/local/bin
Successfully installed jsonpretty
Cleaning up...
$ which jsonpretty
/usr/local/bin/jsonpretty
$ jsonpretty file.js
Traceback (most recent call last):
File "/usr/local/bin/jsonpretty", line 8, in <module>
load_entry_point('JSONPretty==1.0.0', 'console_scripts', 'jsonpretty')()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 318, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2221, in load_entry_point
return ep.load()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 1954, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
ImportError: No module named jsonpretty
@RyanBalfanz
Copy link

[sudo] gem install jsonpretty

(https://github.com/nicksieger/jsonpretty)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment