json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Unexpected error:Traceback (most recent call last): File "c:\users\zer\d2\manage.py", line 183, intrain(cfg, tub, model) File "c:\users\zer\d2\manage.py", line 148, in train tubgroup = TubGroup(tub_names) File "e:\desktop\pj\donkey\donkeycar\parts\datastore.py", line 659, in __init__ t.update_df() File "e:\desktop\pj\donkey\donkeycar\parts\datastore.py", line 191, in update_df df = pd.DataFrame([self.get_json_record(i) for i in self.get_index(shuffled=False)]) File "e:\desktop\pj\donkey\donkeycar\parts\datastore.py", line 191, in df = pd.DataFrame([self.get_json_record(i) for i in self.get_index(shuffled=False)])

  File "e:\desktop\pj\donkey\donkeycar\parts\datastore.py", line 339, in get_json_record

    json_data = json.load(fp)

  File "D:\ProgramData\Anaconda3\envs\donkey\lib\json\__init__.py", line 299, in load

    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)

  File "D:\ProgramData\Anaconda3\envs\donkey\lib\json\__init__.py", line 354, in loads

    return _default_decoder.decode(s)

  File "D:\ProgramData\Anaconda3\envs\donkey\lib\json\decoder.py", line 339, in decode

    obj, end = self.raw_decode(s, idx=_w(s, 0).end())

  File "D:\ProgramData\Anaconda3\envs\donkey\lib\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)

方法:

JSONDecodeError告诉你很多数据在发生错误之前被成功解析; 这可能是因为此时存在无效数据(格式错误或损坏的JSON文档)或数据被截断。请检查json文档

你可能感兴趣的:(json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0))