I'm putting together a new system.

ntpq dies with:
ntpq: can't find Python NTP library -- check PYTHONPATH.
No module named util

Note is says "util", not "ntp.util".  I've got ntpsec.pth and it works well 
enough to fix the initial can't find error.

The build directory contains util.py and util.pyc, but no util.pyo
Neither was installed.

[murray@third raw]$ ll /usr/local/lib/python2.7/site-packages/ntp/
total 644
-rwxr-xr-x 1 root root 161792 Mar 14 05:15 ntpc.so
-rw-r--r-- 1 root root    347 Mar 14 05:16 __init__.py
-rw-r--r-- 1 root root  21925 Mar 14 05:16 agentx.py
-rw-r--r-- 1 root root  52621 Mar 14 05:16 agentx_packet.py
-rw-r--r-- 1 root root  72111 Mar 14 05:16 packet.py
-rw-r--r-- 1 root root   8970 Mar 14 05:16 statfiles.py
-rw-r--r-- 1 root root    272 Mar 14 05:16 __init__.pyc
-rw-r--r-- 1 root root    272 Mar 14 05:16 __init__.pyo
-rw-r--r-- 1 root root  16189 Mar 14 05:16 agentx.pyc
-rw-r--r-- 1 root root  16189 Mar 14 05:16 agentx.pyo
-rw-r--r-- 1 root root  52293 Mar 14 05:16 agentx_packet.pyc
-rw-r--r-- 1 root root  52293 Mar 14 05:16 agentx_packet.pyo
-rw-r--r-- 1 root root  57846 Mar 14 05:16 packet.pyc
-rw-r--r-- 1 root root  57846 Mar 14 05:16 packet.pyo
-rw-r--r-- 1 root root   7120 Mar 14 05:16 statfiles.pyc
-rw-r--r-- 1 root root   7120 Mar 14 05:16 statfiles.pyo
-rw-r--r-- 1 root root   4704 Mar 14 05:16 control.pyo
-rw-r--r-- 1 root root   3025 Mar 14 05:16 magic.pyo
-rw-r--r-- 1 root root   3073 Mar 14 05:16 magic.pyc
-rw-r--r-- 1 root root   4824 Mar 14 05:16 control.pyc
-rw-r--r-- 1 root root   4648 Mar 14 05:16 control.py
-rw-r--r-- 1 root root   4557 Mar 14 05:16 magic.py
[murray@third raw]$ 


-- 
These are my opinions.  I hate spam.



_______________________________________________
devel mailing list
devel@ntpsec.org
http://lists.ntpsec.org/mailman/listinfo/devel

Reply via email to