ntpq broken on new Debian box

Hal Murray hmurray at megapathdsl.net
Wed Oct 14 17:08:10 UTC 2020


I'm setting up a new Debian system.  I'm far from a Debian wizard, but I'm not 
a total newbie either.

I have a ntp.pth setup, so ntpq finds the python libraries.

try:
    import ntp.control  <== worked
    import ntp.ntpc    <== died here

Traceback (most recent call last):
  File "/usr/local/bin/ntpq", line 26, in <module>
    import ntp.ntpc
  File "/usr/local/lib/python3/dist-packages/ntp/ntpc.py", line 52, in <module>
    _ntpc = _importado()
  File "/usr/local/lib/python3/dist-packages/ntp/ntpc.py", line 38, in 
_importado
    return _dlo(ntpc_paths)
  File "/usr/local/lib/python3/dist-packages/ntp/ntpc.py", line 49, in _dlo
    raise OSError("Can't find %s library" % LIB)
OSError: Can't find ntpc library

I think that's trying to tell me that it can't find libntpc.so

It's in /usr/local/lib/ntp/, where install put it.
$ ll /usr/local/lib/ntp/
total 192
-rwxr-xr-x 1 root root 192848 Oct 14 08:53 libntpc.so.1.1.0
lrwxrwxrwx 1 root root     16 Oct 14 08:58 libntpc.so.1 -> libntpc.so.1.1.0
lrwxrwxrwx 1 root root     16 Oct 14 08:58 libntpc.so -> libntpc.so.1.1.0
$

A working system has it in /usr/local/lib64/ntp/
I added a symlink from lib64 to lib
That didn't help.

---------

This system is python3 only, no python2.
python gets to python3

Is this a bug in my setup?  If so, what?  and/or how do I fix it?
Or is this a bug in our build/install stuff?



-- 
These are my opinions.  I hate spam.





More information about the devel mailing list