Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12111

pysnmp-lextudio using next() with the getCmd() generator leads to TypeError: 'tuple' object is not an iterator

$
0
0

I have removed pysnmp and installed pysnmp-lextudio in an attempt to bring my codebase up to python 3.12.2

Code that ran with previous pysnmp versions now returns the error:'tuple' object is not an iterator

Offending code is next() of last line:

from pysnmp.hlapi import *g = getCmd(SnmpEngine(),    CommunityData('community', mpModel=1),    UdpTransportTarget((ipAddress, port)),    ContextData(),    ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysDescr', 0)))errorIndication, errorStatus, errorIndex, varBinds = next(g)

Any insight is welcome, device behaving via snmp walk.


Viewing all articles
Browse latest Browse all 12111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>