NTPQ : Parsing Error : Debug Level 2 (and above?) : COMMANDs (apeers, lpeers, lopeers) etc ... ?
I am opening this issue on behalf of Max Power, who sent a report to the bug-owner mailing list. My intention is to make sure it gets into the issue tracker.
Max's message specifically calls out the error message TypeError: argument should be integer or bytes-like object, not 'str'
in the stack trace listed below.
From:
Max Power <dist23@juno.com>
Date:
2019-10-09, 3:22 p.m.
NTPQ : Parsing Error : Debug Level 2 (and above?) : COMMANDs (apeers, lpeers, lopeers) + OTHERS???
ntpq> debug 2
debug level is 2
ntpq> lopeers
sendrequest: opcode=1, associd=0, qdata=
2019-10-09T22:15:18.8689845Z Fragment collection begins
2019-10-09T22:15:18.8691783Z Fragment collection ends. 80 bytes in 1 fragments
Traceback (most recent call last):
File "/usr/bin/ntpq", line 1680, in <module>
interpreter.cmdloop()
File "/usr/lib/python3.7/cmd.py", line 138, in cmdloop
stop = self.onecmd(line)
File "/usr/lib/python3.7/cmd.py", line 217, in onecmd
return func(arg)
File "/usr/bin/ntpq", line 1144, in do_lopeers
self.__dopeers(showall=True, mode="opeers")
File "/usr/bin/ntpq", line 213, in __dopeers
if not self.__dogetassoc():
File "/usr/bin/ntpq", line 173, in __dogetassoc
self.peers = self.session.readstat()
File "/usr/lib/python3/dist-packages/ntp/packet.py", line 1172, in readstat
self.doquery(opcode=ntp.control.CTL_OP_READSTAT, associd=associd)
File "/usr/lib/python3/dist-packages/ntp/packet.py", line 1159, in doquery
res = self.getresponse(opcode, associd, not retry)
File "/usr/lib/python3/dist-packages/ntp/packet.py", line 1079, in getresponse
eol = self.response.find("\n")
TypeError: argument should be integer or bytes-like object, not 'str'