AIWintermuteAI / aXeleRate

Keras-based framework for AI on the Edge
MIT License
174 stars 72 forks source link

json.decoder.JSONDecodeError: Expecting ',' delimiter: line 35 column 2 (char 1325) #44

Closed wwzh2015 closed 3 years ago

wwzh2015 commented 3 years ago

What happend?

Note that this exception is used from _json

def __init__(self, msg, doc, pos):
    lineno = doc.count('\n', 0, pos) + 1
    colno = pos - doc.rfind('\n', 0, pos)
    errmsg = "%s: line %d column %d (char %d)" % (msg,lineno,colno,pos)
    ValueError.__init__(self, errmsg)
    self.msg = msg
    self.doc = doc
    self.pos = pos
    self.lineno = lineno
    self.colno = colno
AIWintermuteAI commented 3 years ago

https://github.com/AIWintermuteAI/aXeleRate/issues/20

wwzh2015 commented 3 years ago

Now trainning happend that tips:"json.decoder.JSONDecodeError: Expecting ',' delimiter: line 35 column 2 (char 1325) ",] tensorflow 1.15.4.

wwzh2015 commented 3 years ago

Traceback (most recent call last): File "axelerate/train.py", line 188, in setup_training(config_file=args.config) File "axelerate/train.py", line 160, in setup_training config = json.loads(config_buffer.read()) File "C:\ProgramData\Anaconda3\envs\ax210\lib\json__init__.py", line 348, in loads return _default_decoder.decode(s) File "C:\ProgramData\Anaconda3\envs\ax210\lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\ProgramData\Anaconda3\envs\ax210\lib\json\decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Expecting ',' delimiter: line 35 column 2 (char 1325)

wwzh2015 commented 3 years ago

class JSONDecodeError(ValueError): """Subclass of ValueError with the following additional properties:

msg: The unformatted error message
doc: The JSON document being parsed
pos: The start index of doc where parsing failed
lineno: The line corresponding to pos
colno: The column corresponding to pos

"""
# Note that this exception is used from _json
def __init__(self, msg, doc, pos):
    lineno = doc.count('\n', 0, pos) + 1
    colno = pos - doc.rfind('\n', 0, pos)
    errmsg = "%s: line %d column %d (char %d)" % (msg,lineno,colno,pos)
    ValueError.__init__(self, errmsg)   **←//this is 35 line**
    self.msg = msg
    self.doc = doc
    self.pos = pos
    self.lineno = lineno
    self.colno = colno

def __reduce__(self):
    return self.__class__, (self.msg, self.doc, self.pos)
wwzh2015 commented 3 years ago

sorry,nothing problem