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("Expecting value", s, err.value) from None #2

Open
robotzheng opened this issue Sep 19, 2024 · 1 comment
Open

JSONDecodeError("Expecting value", s, err.value) from None #2

robotzheng opened this issue Sep 19, 2024 · 1 comment

Comments

@robotzheng
Copy link

python clean_dataset.py

Traceback (most recent call last):
File "/home/notebook/code/personal/80306170/AGI/LAM/AgentQ/CPO/clean_dataset.py", line 21, in
instances = json.loads(f.read())
File "/opt/conda/envs/EN_VLLM/lib/python3.10/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "/opt/conda/envs/EN_VLLM/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/opt/conda/envs/EN_VLLM/lib/python3.10/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

@jadeCurl
Copy link
Collaborator

Hi,

Please check whether the format of your JSON file is correct.

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