[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gpsprof -r fails with no gpsd running
From: |
Gary E. Miller |
Subject: |
Re: gpsprof -r fails with no gpsd running |
Date: |
Thu, 23 Jan 2020 13:39:25 -0800 |
Yo Greg!
On Thu, 23 Jan 2020 10:45:06 -0500
Greg Troxel <address@hidden> wrote:
> (I'm trying to fix the gpsprof problem with TPV records with no fix.)
Cool. Another nice to have feature would be an option for how many minutes
to capture.
> Running gpsprof with a saved file results in a stack backtrace in the
> case where the is no runnning gpsd.
Yes, I do that.
> The problem seems to be that it creates gps.gps(None) but that tries
> to connect anyway.
This part of gpsprof gets broken every few years...
> $ python3.7 gpsprof -r < saved-logfile-gpspipe-w-style.txt
Why do you specify python3.7?
> gpsprof: replotting...Traceback (most recent call last):
> File "gpsprof", line 1179, in <module>
> plot.replot(sys.stdin)
> File "gpsprof", line 321, in replot
> self.session = gps.gps(host=None)
> File "/home/n0/gdt/SOFTWARE/GPSD/gpsd/gps/gps.py", line 231, in
> __init__ gpscommon.__init__(self, host, port, verbose, reconnect)
> File "/home/n0/gdt/SOFTWARE/GPSD/gpsd/gps/client.py", line 43, in
> __init__ self.connect(self.host, self.port)
> File "/home/n0/gdt/SOFTWARE/GPSD/gpsd/gps/client.py", line 69, in
> connect self.sock.connect(sa)
> ConnectionRefusedError: [Errno 61] Connection refused
Oh, that is new-ish. Maybe related to the reconnect patches?
Maybe try a bi-sect?
> I am unclear on whether gps.gps(host=None) (see line 320, or close,
> within replot()) is
>
> wrongly called because it assumes a running gpsd, or
>
> wrongly behaving, in that None should produce a valid object that
> does not try to connect and always behaves as if disconnected, or
>
> something else
My guess is the meaning of None got changed somewhat recently.
RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
address@hidden Tel:+1 541 382 8588
Veritas liberabit vos. -- Quid est veritas?
"If you can't measure it, you can't improve it." - Lord Kelvin
pgpgDx42P__0y.pgp
Description: OpenPGP digital signature