[pysnmp-users] MibNotFoundError even without using MIBs
Brought to you by:
elie
From: Rafael G. F. <ra...@be...> - 2020-11-06 21:00:27
|
Hi all, I am having an weird issue when running a SNMP GET command. I am getting an error `pysnmp.smi.error.MibNotFoundError: No module PYSNMP-SOURCE-MIB loaded at <pysnmp.smi.builder.MibBuilder object at 0x7f40c8f806d8>` however we use the OIDs directly, the MIBs are not used at all in this project. Even though the PYSNMP-SOURCE-MIB is not used, we have the file PYSNMP-SOURCE-MIB.py installed at .../python3.6/site-packages/pysnmp/smi/mibs. This is the snippet that is causing the error: cmd = cmdgen.CommandGenerator() error_indication, error_status, error_index, var_binds = cmd.getCmd( cmdgen.CommunityData("test-agent", "public"), cmdgen.UdpTransportTarget((management_ip, 161), timeout=0.5, retries=0), *indexes ) Thanks, |