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.
Hi,
OK, since last night the number of unread mails has increased. Here is the revised traceback.
Traceback (most recent call last): check_mail( ) json_str) python2. 6/json/ __init_ _.py", line 307, in loads decoder. decode( s) python2. 6/json/ decoder. py", line 319, in decode python2. 6/json/ decoder. py", line 336, in raw_decode iterscan( s, **kw).next() python2. 6/json/ scanner. py", line 55, in iterscan python2. 6/json/ decoder. py", line 183, in JSONObject context) .next() python2. 6/json/ scanner. py", line 55, in iterscan python2. 6/json/ decoder. py", line 217, in JSONArray context) .next() python2. 6/json/ scanner. py", line 55, in iterscan python2. 6/json/ decoder. py", line 193, in JSONObject errmsg( "Expecting , delimiter", s, end - 1))
File "./zimdicator.py", line 173, in <module>
zim = Zimdicator()
File "./zimdicator.py", line 90, in __init__
self.
File "./zimdicator.py", line 127, in check_mail
json_data = json.loads(
File "/usr/lib/
return _default_
File "/usr/lib/
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/
obj, end = self._scanner.
File "/usr/lib/
rval, next_pos = action(m, context)
File "/usr/lib/
value, end = iterscan(s, idx=end, context=
File "/usr/lib/
rval, next_pos = action(m, context)
File "/usr/lib/
value, end = iterscan(s, idx=end, context=
File "/usr/lib/
rval, next_pos = action(m, context)
File "/usr/lib/
raise ValueError(
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.