gpsd-users
[Top][All Lists]
Advanced

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

Re: gpsfake python error


From: Александр Лясин
Subject: Re: gpsfake python error
Date: Thu, 13 Aug 2020 08:22:00 +0500

I compile GPSD 3.19v:
# gpsd -V
gpsd: 3.19-dev (revision dev-3.19a-770-gde7a1c4)

I created .scons-option-cache

bash-4.3$ cat .scons-option-cache  
dbus_export = False
libgpsmm = False
qt = False
python = False
prefix = '/data/procjects/Hola-PC/buildroot-2017.08-sk/output/staging/usr/'
sysroot = '/data/procjects/Hola-PC/buildroot-2017.08-sk/output/staging/'
target = 'arm-linux-gnueabihf'

and

scons wordsize=32 snapshot=off arch=arm sample=shell qt=no dbus_export=no

target OS:
Linux sr-imx6 4.9.124-imx6-sr #38 SMP Wed Sep 18 17:54:05 YEKT 2019 armv7l GNU/Linux (modified Armbian)


вт, 11 авг. 2020 г. в 03:04, Gary E. Miller <gem@rellim.com>:
Yo Александр!

On Mon, 10 Aug 2020 22:22:29 +0500
Александр Лясин <alexander.lyasin@gmail.com> wrote:

> I compiled gpsd for my ARM board and copied gpsd and py utilities
> (gpsfake etc.) to /usr/bin on the board. I copied gps python packet
> to /usr/lib/python2.7/dist-packages/gps. When I run the program
> gpsfake, get next:
>
> PYTHONPATH=/usr/lib/python2.7/dist-packages/gps gpsfake -u -P 3000
> /root/NMEA.txt
> Traceback (most recent call last):
>   File "/usr/sbin/gpsfake", line 28, in <module>
>     import gps
>   File "/usr/lib/python2.7/dist-packages/gps/gps.py", line 23, in
> <module> from .client import *
> ValueError: Attempted relative import in non-package

That whole thing with Python modules changed a lot.  So without knowing
the gpsd version you are using there is no way to comment.

I am also confused that you "compeild gpsd", but thengrab files from
"usr/lib".  When you compile by default then files go in /usr/local/lib.

The easiest thing is to send your entire build log.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
        gem@rellim.com  Tel:+1 541 382 8588

            Veritas liberabit vos. -- Quid est veritas?
    "If you can't measure it, you can't improve it." - Lord Kelvin

reply via email to

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