You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varBinds = pMod.apiTrapPDU.getVarBindList(reqPDU)
else:
varBinds = pMod.apiPDU.getVarBindList(reqPDU)
for oid, val in varBinds:
info_oid = oid.prettyPrint()
+++
error occurred:
++++
Exception in thread t1:
Traceback (most recent call last):
File "C:\Python27\lib\threading.py", line 801, in __bootstrap_inner
self.run()
File "C:/SPLXAuto_Dev/SPLXAuto/SPLXTestResource/Script/python/splx_snmp.py", line 28, in run
transportDispatcher.runDispatcher()
File "C:\Python27\lib\site-packages\pysnmp-4.2.5-py2.7.egg\pysnmp\carrier\asynsock\dispatch.py", line 41, in runDispatcher
raise PySnmpError('poll error: %s' % ';'.join(format_exception(*exc_info())))
PySnmpError: poll error: Traceback (most recent call last):
; File "C:\Python27\lib\site-packages\pysnmp-4.2.5-py2.7.egg\pysnmp\carrier\asynsock\dispatch.py", line 37, in runDispatcher
use_poll=True, map=self.__sockMap, count=1)
; File "C:\Python27\lib\asyncore.py", line 220, in loop
poll_fun(timeout, map)
; File "C:\Python27\lib\asyncore.py", line 156, in poll
read(obj)
; File "C:\Python27\lib\asyncore.py", line 87, in read
obj.handle_error()
; File "C:\Python27\lib\asyncore.py", line 83, in read
obj.handle_read_event()
; File "C:\Python27\lib\asyncore.py", line 449, in handle_read_event
self.handle_read()
; File "C:\Python27\lib\site-packages\pysnmp-4.2.5-py2.7.egg\pysnmp\carrier\asynsock\dgram\base.py", line 83, in handle_read
self._cbFun(self, transportAddress, incomingMessage)
; File "C:\Python27\lib\site-packages\pysnmp-4.2.5-py2.7.egg\pysnmp\carrier\base.py", line 52, in _cbFun
self, transportDomain, transportAddress, incomingMessage
; File "C:/SPLXAuto_Dev/SPLXAuto/SPLXTestResource/Script/python/splx_snmp.py", line 69, in cbFun
info_oid = oid.prettyPrint()
;AttributeError: 'str' object has no attribute 'prettyPrint'
++++
pysnmp version: 4.2.5
Any suggestion to fix this error?
The text was updated successfully, but these errors were encountered:
Code references example "Listen for notifications at IPv4 & IPv6 interfaces" as:
http://snmplabs.com/pysnmp/examples/v1arch/asyncore/manager/ntfrcv/transport-tweaks.html
+++
if reqPDU.isSameTypeWith(pMod.TrapPDU()):
if msgVer == api.protoVersion1:
+++
error occurred:
++++
Exception in thread t1:
Traceback (most recent call last):
File "C:\Python27\lib\threading.py", line 801, in __bootstrap_inner
self.run()
File "C:/SPLXAuto_Dev/SPLXAuto/SPLXTestResource/Script/python/splx_snmp.py", line 28, in run
transportDispatcher.runDispatcher()
File "C:\Python27\lib\site-packages\pysnmp-4.2.5-py2.7.egg\pysnmp\carrier\asynsock\dispatch.py", line 41, in runDispatcher
raise PySnmpError('poll error: %s' % ';'.join(format_exception(*exc_info())))
PySnmpError: poll error: Traceback (most recent call last):
; File "C:\Python27\lib\site-packages\pysnmp-4.2.5-py2.7.egg\pysnmp\carrier\asynsock\dispatch.py", line 37, in runDispatcher
use_poll=True, map=self.__sockMap, count=1)
; File "C:\Python27\lib\asyncore.py", line 220, in loop
poll_fun(timeout, map)
; File "C:\Python27\lib\asyncore.py", line 156, in poll
read(obj)
; File "C:\Python27\lib\asyncore.py", line 87, in read
obj.handle_error()
; File "C:\Python27\lib\asyncore.py", line 83, in read
obj.handle_read_event()
; File "C:\Python27\lib\asyncore.py", line 449, in handle_read_event
self.handle_read()
; File "C:\Python27\lib\site-packages\pysnmp-4.2.5-py2.7.egg\pysnmp\carrier\asynsock\dgram\base.py", line 83, in handle_read
self._cbFun(self, transportAddress, incomingMessage)
; File "C:\Python27\lib\site-packages\pysnmp-4.2.5-py2.7.egg\pysnmp\carrier\base.py", line 52, in _cbFun
self, transportDomain, transportAddress, incomingMessage
; File "C:/SPLXAuto_Dev/SPLXAuto/SPLXTestResource/Script/python/splx_snmp.py", line 69, in cbFun
info_oid = oid.prettyPrint()
;AttributeError: 'str' object has no attribute 'prettyPrint'
++++
pysnmp version: 4.2.5
Any suggestion to fix this error?
The text was updated successfully, but these errors were encountered: