community/ntpsec: python based client tools not working
# ntpq -p
Traceback (most recent call last):
File "/usr/bin/ntpq", line 26, in <module>
import ntp.ntpc
File "/usr/lib/python3.8/site-packages/ntp/ntpc.py", line 52, in <module>
_ntpc = _importado()
File "/usr/lib/python3.8/site-packages/ntp/ntpc.py", line 38, in _importado
return _dlo(ntpc_paths)
File "/usr/lib/python3.8/site-packages/ntp/ntpc.py", line 49, in _dlo
raise OSError("Can't find %s library" % LIB)
OSError: Can't find ntpc library
# ntpdig
Traceback (most recent call last):
File "/usr/bin/ntpdig", line 19, in <module>
import ntp.packet
File "/usr/lib/python3.8/site-packages/ntp/packet.py", line 219, in <module>
import ntp.ntpc
File "/usr/lib/python3.8/site-packages/ntp/ntpc.py", line 52, in <module>
_ntpc = _importado()
File "/usr/lib/python3.8/site-packages/ntp/ntpc.py", line 38, in _importado
return _dlo(ntpc_paths)
File "/usr/lib/python3.8/site-packages/ntp/ntpc.py", line 49, in _dlo
raise OSError("Can't find %s library" % LIB)
OSError: Can't find ntpc library
Above commands started to work after moving these files from default /usr/lib/ntp
to /usr/lib
:
# ls -l /usr/lib/ntp
total 48
lrwxrwxrwx 1 root root 16 Feb 18 23:17 libntpc.so -> libntpc.so.1.1.0
lrwxrwxrwx 1 root root 16 Feb 18 23:17 libntpc.so.1 -> libntpc.so.1.1.0
-rwxr-xr-x 1 root root 46928 Oct 12 01:12 libntpc.so.1.1.0
Affected are at least Alpine edge
and 3.13-stable