python path

dropkick23 at gmail.com dropkick23 at gmail.com
Thu May 1 20:48:53 UTC 2025


Source code: ntpsec-1.2.4.tar.gz
I'm using ArchLinux Arm on RPI-4

Getting the following error on:
$ ./waf build 2>&1 | tee buildWAF.txt

---cut ----
running: /home/gek/src/ntpsec-1.2.4/build/main/ntpclients/ntploggps
--version  FAILED
Expected: ntploggps ntpsec-1.2.4
Got (stderr): ntploggps: can't find Python GPSD library.
No module named 'gps'

--- cut----


.bashrc
export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python3.13/site-packages/

PYHTONPATH seems correct:
$ printenv
SHELL=/bin/bash
PWD=/home/gek/src/ntpsec-1.2.4
LOGNAME=gek
XDG_SESSION_TYPE=tty
MOTD_SHOWN=pam
HOME=/home/gek
LANG=en_US.UTF-8
SSH_CONNECTION=192.168.100.110 55862 192.168.100.240 22
XDG_SESSION_CLASS=user
PYTHONPATH=:/usr/local/lib/python3.13/site-packages/
TERM=xterm-256color
USER=gek
SHLVL=1
XDG_SESSION_ID=5
XDG_RUNTIME_DIR=/run/user/1202
SSH_CLIENT=192.168.100.110 55862 22
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1202/bus
MAIL=/var/spool/mail/gek
SSH_TTY=/dev/pts/0
_=/usr/bin/printenv
OLDPWD=/home/gek


I can import gps from cmd line
[gek at tick ntpsec-1.2.4]$ python
Python 3.13.3 (main, Apr 18 2025, 17:59:07) [GCC 14.2.1 20250207] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gps
>>>


I ran the following waf config
$ ./waf configure --refclock=nmea,pps,local,generic,shm --prefix=/usr 2>&1
| tee configureWAF.txt

output from configure
 --- cut---
Writing configuration header:                                   : config.h

Build Options
  CC                            :  /usr/bin/gcc
  CFLAGS                        :  -DUNITY_EXCLUDE_FLOAT_PRINT -Wshadow
-Wpacked -Wcast-qual -Wmissing-declarations -Wdisabled-optimization
-Wimplicit-function-declaration -Winvalid-pch -Wpointer-arith
-Wwrite-strings -Winit-self -Wfloat-equal -Wformat -Wformat-signedness
-Wformat-security -Wsuggest-attribute=noreturn -fPIC -O1 -Wall -Wextra
-Wmissing-prototypes -Wstrict-prototypes -Wundef -Wunused -g -std=c99
-D_GNU_SOURCE
  LDFLAGS                       :  -fstack-protector-all -Wl,-z,now
-Wl,-z,relro
  LINKFLAGS_NTPD                :  -pie
  PREFIX                        :  /usr
  LIBDIR                        :  /usr/lib
  Droproot Support              :  Linux
  Debug Support                 :  No
  Refclocks                     :  generic, local, nmea, pps, shm
  Build Docs                    :  No
  Build Manpages                :  No
Checking for program 'python'                                   :
/usr/bin/python
Checking for python version >= 2.7.0                            : 3.13.3
Checking for python module 'curses'                             : ok
Checking for python module 'argparse'                           : 1.1
Checking for python module 'gps' (ver >= num(3, 18))            : 3.25.1~dev
  PYSHEBANG                    :  /usr/bin/env python
  PYTHONDIR                     :  /usr/lib/python3.13/site-packages   #
should be /usr/lib/local/python3.13/site-packages ?????
  PYTHONARCHDIR            :  /usr/lib/python3.13/site-packages   # should
be /usr/lib/local/python3.13/site-packages ?????
'configure' finished successfully (13.730s)


$ ls /usr/local/lib/python3.13/site-packages/gps
aiogps.py         client.py  gps.py       __main__.py  packet.py
 watch_options.py
clienthelpers.py  fake.py    __init__.py  misc.py      ubx.py

thanks,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/users/attachments/20250501/a6871f67/attachment.htm>


More information about the users mailing list