Comment 2 for bug 583069

Revision history for this message
Martin Wimpress  (flexiondotorg) wrote :

Hi,

OK, since last night the number of unread mails has increased. Here is the revised traceback.

Traceback (most recent call last):
  File "./zimdicator.py", line 173, in <module>
    zim = Zimdicator()
  File "./zimdicator.py", line 90, in __init__
    self.check_mail()
  File "./zimdicator.py", line 127, in check_mail
    json_data = json.loads(json_str)
  File "/usr/lib/python2.6/json/__init__.py", line 307, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.6/json/decoder.py", line 319, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.6/json/decoder.py", line 336, in raw_decode
    obj, end = self._scanner.iterscan(s, **kw).next()
  File "/usr/lib/python2.6/json/scanner.py", line 55, in iterscan
    rval, next_pos = action(m, context)
  File "/usr/lib/python2.6/json/decoder.py", line 183, in JSONObject
    value, end = iterscan(s, idx=end, context=context).next()
  File "/usr/lib/python2.6/json/scanner.py", line 55, in iterscan
    rval, next_pos = action(m, context)
  File "/usr/lib/python2.6/json/decoder.py", line 217, in JSONArray
    value, end = iterscan(s, idx=end, context=context).next()
  File "/usr/lib/python2.6/json/scanner.py", line 55, in iterscan
    rval, next_pos = action(m, context)
  File "/usr/lib/python2.6/json/decoder.py", line 193, in JSONObject
    raise ValueError(errmsg("Expecting , delimiter", s, end - 1))
ValueError: Expecting , delimiter: line 1 column 39725 (char 39725)

I added a line to print the contents of json_str and redirected the output of zimdicator .py to a file. The then out a few chars either side of the offending 39725 with the following.

cat json.txt | cut -c 39710-39740

Here is string that fragment.

e has vanished: \\"/var/lib/pos

Hope that helps.

Regards, Martin.