python path
Gary E. Miller
gem at rellim.com
Fri May 2 00:24:18 UTC 2025
Yo dropkick23 at gmail.com!
Lost the list again. Please stay on the list
I'm running out of ideas. Everything works, except waf does not...
Did you check the file permissions on each directory in the path?
> > /usr/local/lib/python3.13/site-packages ?
On Thu, 1 May 2025 17:21:09 -0600
dropkick23 at gmail.com wrote:
> [gek at tick ntpsec-1.2.4]$ head waf -n 3
> #!/usr/bin/env python
> # encoding: latin-1
> # Thomas Nagy, 2005-2018
>
> [gek at tick ntpsec-1.2.4]$ python -m gps
> gps module version: 3.25.1~dev
>
> [root at tick ~]# python -m gps
> /usr/bin/python: No module named gps
>
> root fails as expected, PYTHONPATH not set
> FYI: i'm running 'waf build' as user gek that has PYTHONPATH set
> correctly as demonstrated above.
>
> I expect if gps module was in /usr/lib/python3.13/site-packages all
> would be ok.
Mught be worth a test, but remember it breaks the FHS rules to have it there.
>
> FYI I'll be offline for a couple of hours, thanks for your help
>
>
> On Thu, May 1, 2025 at 5:06 PM Gary E. Miller via users
> <users at ntpsec.org> wrote:
>
> > Yo dropkick23 at gmail.com!
> >
> > Whoops, we dropped users@ off. More than just I were
> > helping you.
> >
> > On Thu, 1 May 2025 16:43:40 -0600
> > dropkick23 at gmail.com wrote:
> >
> > > [gek at tick ntpsec-1.2.4]$ python -V
> > > Python 3.13.3
> >
> > Well, that is just odd. Your PYTHONPATH points to an installed
> > gpsd, and your Python is using the PYTHONPATH. Exactly like many
> > of my installs. But your waf is not finding the gps module.
> >
> > Is your waf head like mine:
> >
> > claire ~ $ head waf -n 3
> > #!/usr/bin/env python
> > # encoding: latin-1
> > # Thomas Nagy, 2005-2018
> >
> > claire ~ $ /usr/bin/env python -V
> > Python 3.13.3
> >
> > My python finds the gpsd module just fine:
> >
> > claire ~ $ python -m gps
> > gps module version: 3.25.1~dev
> >
> > Do you get the same results as root?
> >
> > Is there some permission issue in
> > /usr/local/lib/python3.13/site-packages ?
RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
gem at 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
More information about the users
mailing list