gpsd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-users] exception in json/decoder.py


From: Eric S. Raymond
Subject: Re: [gpsd-users] exception in json/decoder.py
Date: Wed, 4 Apr 2012 11:58:07 -0400
User-agent: Mutt/1.5.21 (2010-09-15)

Rob Andrews <address@hidden>:
> 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

Yes, this is a known and fixed issue.  Please upgrade to the most
recent version.
-- 
                <a href="http://www.catb.org/~esr/";>Eric S. Raymond</a>

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]