What is IF-MIB: snimpy.mib.SMIException: unable to find b'IF-MIB' (check the path)?
<p>I followed <a href="https://snimpy.readthedocs.io/en/latest/usage.html#regular-python-module" rel="nofollow">the doc</a> but got the following error:</p>

<pre><code>&gt;&gt;&gt; from snimpy.manager import Manager as M
from snimpy.manager import load

load("IF-MIB")
m = M("localhost")
print(m.ifDescr[0])
Traceback (most recent call last):
  File "&lt;input&gt;", line 4, in &lt;module&gt;
  File "/home/ed8/projects/coaxis-opt/env/lib/python3.5/site-packages/snimpy/manager.py", line 578, in load
    m = mib.load(mibname)
  File "/home/ed8/projects/coaxis-opt/env/lib/python3.5/site-packages/snimpy/mib.py", line 605, in load
    raise SMIException("unable to find {0} (check the path)".format(mib))
snimpy.mib.SMIException: unable to find b'IF-MIB' (check the path)
</code></pre>

<h3>Question</h3>

<p>What is <code>IF-MIB</code>? Do I need to install some package on my system?</p>

<h3>Reference</h3>

<p><a href="https://github.com/vincentbernat/snimpy/issues/57" rel="nofollow">Doc example fails: snimpy.mib.SMIException: unable to find b'IF-MIB' (check the path)</a></p>

<p>As provided by <a href="https://github.com/vincentbernat/snimpy/issues/57#issuecomment-248692852" rel="nofollow">snimpy developer</a>:</p>

<blockquote>
  <p>If you are on Ubuntu, you need to </p>

<pre><code>apt-get install snmp-mibs-downloader
</code></pre>
</blockquote>

python snmp mib snimpy