[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gpsd-users] exception in json/decoder.py
From: |
Rob Andrews |
Subject: |
[gpsd-users] exception in json/decoder.py |
Date: |
Mon, 02 Apr 2012 12:40:04 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20120310 Thunderbird/11.0 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hoping this is a known issue . . .
I am getting an error from the python json decoder called from
gps/client.py.
File "/usr/lib/python2.6/json/decoder.py", line 195, in JSONObject
raise ValueError(errmsg("Expecting , delimiter", s, end - 1))
ValueError: Expecting , delimiter: line 1 column 140 (char 140
I modified decoder.py to dump what it is looking at - the exception
seems to come at "parity":"},{"c
where the decoder is expecting a ',' and getting a 'c'.
Here is the string the decoder is working on.
{"class":"DEVICES","devices":[{"class":"DEVICE","path":"/dev/bus/usb/002/017","activated":1333320497.24,"native":0,"bps":9600,"parity":"},{"class":"DEVICE","path":"/dev/ttyUSB0","activated":1333378902.45,"flags":1,"driver":"Garmin
USB binary","subtype":"811:
2.60","native":0,"bps":9600,"parity":"N","stopbits":1,"cycle":1.00}]}
issue:CrunchBang Linux statler \n \l
issue.net:CrunchBang Linux statler
lsb-release-crunchbang:DISTRIB_ID=CrunchBang
lsb-release-crunchbang:DISTRIB_DESCRIPTION="CrunchBang 10 statler"
Linux bus 2.6.32-5-amd64 #1 SMP Thu Mar 22 17:26:33 UTC 2012 x86_64
GNU/Linux
Python 2.6.6
gpsd: 2.95 (revision 2010-11-16T19:40:47)
Any help greatly appreciated
rob
- --
Robert A. Andrews (MIEEE)
Principal Consultant address@hidden
Component Oriented Software Engineering & Embedded Computing.
Telephone: (613).447.7154 (cell)
(613).963.0212 (Ottawa)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iF4EAREIAAYFAk951mQACgkQ6Lk1+5W0nO+8YwD/Rcf48C+Oj7yweWJoGs8I2y+s
fOU2Ss+DQTw5af6LeDwBAIAGquW/P9PSdy3f/M07XFukBzQPKsiMFens8tWfO4zI
=O8br
-----END PGP SIGNATURE-----
- [gpsd-users] exception in json/decoder.py,
Rob Andrews <=