PySNMP Error: pysnmp.smi.error.SmiError

Lulu picture Lulu · Sep 16, 2010 · Viewed 9.8k times · Source

I am running a Python program on a Windows XP machine. When I run the program, I get the following error:

File "C:\Python27\lib\pysnmp\smi\builder.pyt, line 230, in loadModules...
pysnmp.smi.error.SmiError: MIB file "SNMPv2-MIB.py[co]" not found in search path

The file SNMPv2-MIB.py is currently located in C:\Python27\Lib\pysnmp\smi\mibs. Does anyone know how I can solve this?

Answer

Thomas picture Thomas · Sep 8, 2012

if a mib is missing make sure you have performed a pip install pysnmp-mibs first if you used pip install pysnmp.