[Top][All Lists]

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

gpsfake python error

From: Александр Лясин
Subject: gpsfake python error
Date: Mon, 10 Aug 2020 22:22:29 +0500


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/", line 23, in <module>
    from .client import *
ValueError: Attempted relative import in non-package

How can I to run gpsfake correctly?


reply via email to

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