gpsd-dev
[Top][All Lists]
Advanced

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

Re: ✘gpsd release coming


From: Greg Troxel
Subject: Re: ✘gpsd release coming
Date: Tue, 04 Aug 2020 11:44:53 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (berkeley-unix)

Fred Wright <fw@fwright.net> writes:

> It turns out that the issue isn't Python 2 - it's SSH.  Your library
> finder doesn't work when the command is executed over SSH.
>
> E.g, on Fedora 25:
>
> [fw@MacFed gpsd]$ /usr/local/bin/gpscat -V
> gpscat: Version 3.20.1~dev
> [fw@MacFed gpsd]$ ssh localhost /usr/local/bin/gpscat -V
> fw@localhost's password:
> Traceback (most recent call last):
>   File "/usr/local/bin/gpscat", line 24, in <module>
>     import gps.packet as sniffer
>   File "/usr/local/lib/python2.7/site-packages/gps/packet.py", line
> 135, in <module>
>     _packet = importado()
>   File "/usr/local/lib/python2.7/site-packages/gps/packet.py", line
> 131, in importado
>     raise OSError("Can't find packet library")
> OSError: Can't find packet library

It seems obvious to me that the gps python programs should be loading
the packet library by the full pathname that was chosen at "scons build"
time, without relying on anything in the environment, so that

  $ env - /usr/local/bin/gpscat -V

should work.  That might be a good thing to try first.

Attachment: signature.asc
Description: PGP signature


reply via email to

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