GPS python programming (zeros)

Hi,

I’m having troubles with GPS output. When i type:
$ cat /dev/ttyUSB0

i have NMEA sentences coming out (it’s what i want)

But, when i try to see output with python (this is basic code):
import gps
session=gps.gps(‘localhost’,‘2947’)
session.stream()
print session

i got this:
Time: (nan)
Lat/Lon: 0.000000 0.000000
Altitude: ?
Speed: ?
Track: ?
Status: STATUS_NO_FIX
Mode: MODE_NO_FIX
Quality: 0 p=0.00 h=0.00 v=0.00 t=0.00 g=0.00
Y: 0 satellites in view:

So does somebody know why is this all zeros and unknown?

nina3marin,

check if gpsd daemon is running.

try:
cgps

cgps -help

[]s

julio menezes