MartijnBraam / gpsd-py3

Python 3 GPSD client
107 stars 45 forks source link

Index Error if no FIX #4

Open cuda12 opened 7 years ago

cuda12 commented 7 years ago

I get an index error (list index out of range)

line 87, in from_json last_tpv = packet['tpv'][-1]

if I dont have a gps fix.

jkronen commented 7 years ago

Same error for me

jnunezortuno commented 7 years ago

Same error but with 3D FIX

MartijnBraam commented 7 years ago

Hmm what version of gpsd do you use? I can't get gpsd to give me a response without tpv data with or without a fix.