Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSONDecodeError #18

Open
sedwards2 opened this issue Mar 14, 2017 · 0 comments
Open

JSONDecodeError #18

sedwards2 opened this issue Mar 14, 2017 · 0 comments

Comments

@sedwards2
Copy link

sedwards2 commented Mar 14, 2017

I got this stack trace when trying to build the browser off of 8.0.0.4 (I installed both the 7_2 and 8_0 sdks and used a python 3.5 based virtualenv):

[I] (.venv3) sedwards@ws ~/i/isilon_stat_browser>
./build_stat_browser.py --cluster 10.25.103.184
Cluster username: root
Password:
Traceback (most recent call last):
File "./build_stat_browser.py", line 68, in
build_browser()
File "./build_stat_browser.py", line 63, in build_browser
bb.build_browser()
File "/home/sedwards/isilon/isilon_stat_browser/stat_key_browser/browser_builder.py", line 130, in build_browser
key_data = self._write_key_data_json(jskeys_path)
File "/home/sedwards/isilon/isilon_stat_browser/stat_key_browser/browser_builder.py", line 103, in _write_key_data_json
key_dict = self._transform_key_dict(key_dict)
File "/home/sedwards/isilon/isilon_stat_browser/stat_key_browser/browser_builder.py", line 89, in _transform_key_dict
tagger = Tagger()
File "/home/sedwards/isilon/isilon_stat_browser/stat_key_browser/tagger.py", line 29, in init
defs = json.load(def_file)
File "/usr/lib/python3.5/json/init.py", line 268, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "/usr/lib/python3.5/json/init.py", line 319, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.5/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.5/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Tried Python 2.7 and got a slightly different stack trace against 8.0.0.4:
[I] (.venv2) sedwards@ws ~/i/isilon_stat_browser> ./build_stat_browser.py --cluster 10.25.103.184
Cluster username: root
Password:
Traceback (most recent call last):
File "./build_stat_browser.py", line 68, in
build_browser()
File "./build_stat_browser.py", line 63, in build_browser
bb.build_browser()
File "/home/sedwards/isilon/isilon_stat_browser/stat_key_browser/browser_builder.py", line 130, in build_browser
key_data = self._write_key_data_json(jskeys_path)
File "/home/sedwards/isilon/isilon_stat_browser/stat_key_browser/browser_builder.py", line 103, in _write_key_data_json
key_dict = self._transform_key_dict(key_dict)
File "/home/sedwards/isilon/isilon_stat_browser/stat_key_browser/browser_builder.py", line 89, in _transform_key_dict
tagger = Tagger()
File "/home/sedwards/isilon/isilon_stat_browser/stat_key_browser/tagger.py", line 29, in init
defs = json.load(def_file)
File "/usr/lib/python2.7/json/init.py", line 291, in load
**kw)
File "/usr/lib/python2.7/json/init.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant