Sublime Forum

Python errors when running prettify_json

#1

When I first started using Sublime, I was pleased to find the prettify_json plugin for it. And it worked great. But at some point, it stopped working. Now whenever I try to use it I get errors like this:

Traceback (most recent call last):
File “./sublime_plugin.py”, line 362, in run_
File “./prettify_json.py”, line 22, in run
File “/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/json/init.py”, line 307, in loads
return _default_decoder.decode(s)
File “/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/json/decoder.py”, line 319, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File “/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/json/decoder.py”, line 336, in raw_decode
obj, end = self._scanner.iterscan(s, **kw).next()
File “/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/json/scanner.py”, line 55, in iterscan
rval, next_pos = action(m, context)
File “/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/json/decoder.py”, line 171, in JSONObject
raise ValueError(errmsg(“Expecting property name”, s, end))
ValueError: Expecting property name: line 1 column 1 (char 1)

I’m on Mac OS X 10.9.4. When I run “python --version” at my command line, I get Python 2.7.5. But it looks like Sublime is trying to use Python 2.6. Is that the source of my problem? Any suggestions?

0 Likes