Fix for Python library path problem

Eric S. Raymond esr at thyrsus.com
Wed Sep 27 21:36:56 UTC 2017


Gary E. Miller via devel <devel at ntpsec.org>:
> Yo Eric!
> 
> On Wed, 27 Sep 2017 16:43:54 -0400
> "Eric S. Raymond" <esr at thyrsus.com> wrote:
> 
> > Gary E. Miller via devel <devel at ntpsec.org>:
> > > Except for your upcoming solution to the PYTHONPATH issue.  
> > 
> > Explain "the PYTHONPATH issue", please.
> 
> I just installed git head.  No PYTHONPATH:
> 
> spidey ntpsec # ntpq -up
> ntpq: can't find Python NTP library.
> No module named 'ntp'

What is on your sys.path?  Looks like waf is installing to the wrong place.
You should do an install with --destdir=/tmp/ntp to see what installation
path it's generating.

> When I add PYTHONPATH it works again:
> 
> spidey ntpsec # export PYTHONPATH=/usr/local/lib64/python3.4/site-packages
> spidey ntpsec # ntpq -up
> [...]
> 
> When I unset PYTHONPATH, it is broken again:
> 
> spidey ntpsec # unset PYTHONPATH
> spidey ntpsec # ntpq -up
> ntpq: can't find Python NTP library.
> No module named 'ntp'
> 
> This is why all the commits that ripped out PYTHONPATH stuff need to be
> reverted.

Please go have that argument with Fred, not me.  We'll do whatever
fixes you two can agree on.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>

My work is funded by the Internet Civil Engineering Institute: https://icei.org
Please visit their site and donate: the civilization you save might be your own.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 811 bytes
Desc: not available
URL: <https://lists.ntpsec.org/pipermail/devel/attachments/20170927/6c6270e4/attachment.bin>


More information about the devel mailing list