First version of ntpmon

Hal Murray hmurray at megapathdsl.net
Thu Dec 8 14:23:22 UTC 2016


I tried it, and it barfed with:

[murray at hgm ntpclients]$ ./ntpmon 
Traceback (most recent call last):
  File "./ntpmon", line 91, in <module>
    variables, peer.associd))
  File "/usr/local/lib/python2.7/site-packages/ntp/util.py", line 224, in 
summary
    if hmode == ntp.magic.MODE_BCLIENT:
AttributeError: 'module' object has no attribute 'MODE_BCLIENT'
[murray at hgm ntpclients]$

MODE_BCLIENT is only a comment.  That's been fixed in a more-recent git pull, 
but why was it using util from the installed library rather than local?

What's the order of searching  dot, PYTHONPATH, and sys.path?

After a pull, a few minutes ago, it now says:

[murray at hgm ntpclients]$ ./ntpmon 
Traceback (most recent call last):
  File "./ntpmon", line 91, in <module>
    variables, peer.associd))
_curses.error: addstr() returned ERR
[murray at hgm ntpclients]$ 



-- 
These are my opinions.  I hate spam.





More information about the devel mailing list