I am working on a project in which I am trying to get ARP table of my router. I am using snmp to connect with my router. I am using Python language in which I have a library named as pysnmp. The problem is that I am getting error in the built in functions of this library despite of installing it correctly. I have also viewed the official getup library which also has the same folders as I have downloaded. I have downloaded the library using pip install pysnmp. I have reached that the library which I have downloaded is complete and correct. I am using the code given by the official snmp get a page to check whether my code is correct or not. The code which I am using is from pysnmp.hlapi import * iterator = getCmd(SnmpEngine(), CommunityData('public'), UdpTransportTarget(('demo.snmplabs.com', 161)), ContextData(), ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysDescr', 0))) errorIndication, errorStatus, errorIndex, varBinds = next(iterator) if errorIndication: # SNMP engine errors print(errorIndication) else: if errorStatus: # SNMP agent errors print('%s at %s' % (errorStatus.prettyPrint(), varBinds[int(errorIndex)-1] if errorIndex else '?')) else: for varBind in varBinds: # SNMP response contents print(' = '.join([x.prettyPrint() for x in varBind])) I have seen different solutions and I have check that the repository of pysnmp is same in the get up as it is in my computer. I have tried different versions of pysnmp on different computers but I have got the same result. Image of the folder in my computer. Error ai am getting while I am trying to run it. Continue reading...