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

ValueError: No JSON object could be decoded #371

Closed
znack2 opened this issue Mar 1, 2018 · 1 comment
Closed

ValueError: No JSON object could be decoded #371

znack2 opened this issue Mar 1, 2018 · 1 comment

Comments

@znack2
Copy link

znack2 commented Mar 1, 2018

Traceback (most recent call last): File "/usr/local/bin/powerline-shell", line 11, in <module> sys.exit(main()) File "/Library/Python/2.7/site-packages/powerline_shell/__init__.py", line 204, in main config = json.loads(f.read()) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 338, in loads return _default_decoder.decode(s) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 366, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 384, in raw_decode raise ValueError("No JSON object could be decoded") ValueError: No JSON object could be decoded

install by sudo pip install powerline-shell
use new version python

what should i do to fix it?

@b-ryan
Copy link
Owner

b-ryan commented Mar 1, 2018

At first glance it looks like you have a configuration file, but the file does not contain json. Do you have a file at ~/.powerline-shell.json?

@b-ryan b-ryan closed this as completed in ac3be5f Apr 21, 2018
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

2 participants