<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SMI error converting MIB to Python egg in Installation</title>
    <link>https://community.splunk.com/t5/Installation/SMI-error-converting-MIB-to-Python-egg/m-p/104875#M9570</link>
    <description>&lt;P&gt;My error message is: "python E:\Splunk\etc\apps\snmp_ta\bin\snmp.py" pysnmp.smi.error.SmiError: MIB file "WWP-TRAFFIC-PROFILE-MIB.py[co]" not found in search path&lt;/P&gt;

&lt;P&gt;I have a WWP-TRAFFIC-PROFILE-MIB.py and .egg file present.  However my egg does not contain any .pyc files.&lt;BR /&gt;
Am I missing a step in the build/compile process?&lt;BR /&gt;
Doing my development on a centOS box, and splunk is installed on a windows box.&lt;/P&gt;

&lt;P&gt;thx&lt;/P&gt;</description>
    <pubDate>Wed, 11 Sep 2013 13:41:44 GMT</pubDate>
    <dc:creator>pmeyerson</dc:creator>
    <dc:date>2013-09-11T13:41:44Z</dc:date>
    <item>
      <title>SMI error converting MIB to Python egg</title>
      <link>https://community.splunk.com/t5/Installation/SMI-error-converting-MIB-to-Python-egg/m-p/104866#M9561</link>
      <description>&lt;P&gt;Hello, new to Splunk here.  Having some issues converting a SonicWall MIB to the python egg format.&lt;BR /&gt;&lt;BR /&gt;
Here was my input:&lt;BR /&gt;
 "#build-pysnmp-mib -o SONICWALL-FIREWALL-TRAP-MIB.py SONICWALL-FIREWALL-TRAP-MIB.MIB"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;
 Output:&lt;BR /&gt;&lt;BR /&gt;
Traceback (most recent call last):&lt;BR /&gt;&lt;BR /&gt;
  File "/usr/bin/libsmi2pysnmp", line 4, in &amp;lt; module &amp;gt;&lt;BR /&gt;&lt;BR /&gt;
    import pkg_resources&lt;BR /&gt;&lt;BR /&gt;
  File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 3007, in &amp;lt; module &amp;gt;&lt;BR /&gt;&lt;BR /&gt;
  File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 728, in require&lt;BR /&gt;&lt;BR /&gt;
  File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 626, in resolve&lt;BR /&gt;&lt;BR /&gt;
pkg_resources.DistributionNotFound: pycrypto&amp;gt;=2.4.1&lt;BR /&gt;&lt;BR /&gt;
smidump -k -f python SONICWALL-FIREWALL-TRAP-MIB.MIB | /usr/bin/libsmi2pysnmp fails&lt;BR /&gt;&lt;BR /&gt;
make sure you are using libsmi version &amp;gt; 0.4.5 (or svn)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;
The libsmi version: libsmi-0.4.8-4.el6.x86_64&lt;BR /&gt;&lt;BR /&gt;
&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;could anyone point me in the right direction on what I should do next?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:24:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/SMI-error-converting-MIB-to-Python-egg/m-p/104866#M9561</guid>
      <dc:creator>tchristoff</dc:creator>
      <dc:date>2020-09-28T14:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: SMI error converting MIB to Python egg</title>
      <link>https://community.splunk.com/t5/Installation/SMI-error-converting-MIB-to-Python-egg/m-p/104867#M9562</link>
      <description>&lt;P&gt;DistributionNotFound: pycrypto&amp;gt;=2.4.1&lt;/P&gt;

&lt;P&gt;Have you addressed this error ? ie : upgrade your pycrypto version.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2013 01:46:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/SMI-error-converting-MIB-to-Python-egg/m-p/104867#M9562</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2013-07-24T01:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: SMI error converting MIB to Python egg</title>
      <link>https://community.splunk.com/t5/Installation/SMI-error-converting-MIB-to-Python-egg/m-p/104868#M9563</link>
      <description>&lt;P&gt;Question are you doing this on a Windows Box?  Personally I have never been able to get build-pysnmp-mib to work on any Windows Python install.  My work around has been to run a cygwin install or on nix box. Dont know if that is your problem.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2013 15:10:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/SMI-error-converting-MIB-to-Python-egg/m-p/104868#M9563</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2013-07-24T15:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: SMI error converting MIB to Python egg</title>
      <link>https://community.splunk.com/t5/Installation/SMI-error-converting-MIB-to-Python-egg/m-p/104869#M9564</link>
      <description>&lt;P&gt;Am working on a CentOS box, and I will try upgrading python-crypto package, seems the yum repo thinks its latest ver.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2013 16:57:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/SMI-error-converting-MIB-to-Python-egg/m-p/104869#M9564</guid>
      <dc:creator>tchristoff</dc:creator>
      <dc:date>2013-07-24T16:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: SMI error converting MIB to Python egg</title>
      <link>https://community.splunk.com/t5/Installation/SMI-error-converting-MIB-to-Python-egg/m-p/104870#M9565</link>
      <description>&lt;P&gt;So it is looking like from the distro im using it will not work.  As a work around I will try on a higher version of RHEL. Thanks for the help!&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2013 17:20:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/SMI-error-converting-MIB-to-Python-egg/m-p/104870#M9565</guid>
      <dc:creator>tchristoff</dc:creator>
      <dc:date>2013-07-24T17:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: SMI error converting MIB to Python egg</title>
      <link>https://community.splunk.com/t5/Installation/SMI-error-converting-MIB-to-Python-egg/m-p/104871#M9566</link>
      <description>&lt;P&gt;smidump fails with the same error for me on OSX. I have pycrypto 2.6 installed. Any other ideas?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2013 19:57:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/SMI-error-converting-MIB-to-Python-egg/m-p/104871#M9566</guid>
      <dc:creator>halr9000</dc:creator>
      <dc:date>2013-07-26T19:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: SMI error converting MIB to Python egg</title>
      <link>https://community.splunk.com/t5/Installation/SMI-error-converting-MIB-to-Python-egg/m-p/104872#M9567</link>
      <description>&lt;P&gt;If you can get smidump to work, then build-pysnmp-mib will work. Try running &lt;STRONG&gt;smidump&lt;/STRONG&gt; by itself -- chances are you don't even have smidump available, but if you do, it should give you a more specific error (particularly if you leave off the -k):&lt;/P&gt;

&lt;P&gt;smidump .\SONICWALL-FIREWALL-TRAP-MIB.MIB&lt;/P&gt;

&lt;P&gt;If that fails, the MIB probably depends on other MIBs which aren't in your SMIPATH (try setting that environment variable to where you have your .MIB files, or create a $HOME/.smirc file defining path=/where/you/have/your/mibs )&lt;/P&gt;

&lt;P&gt;If you don't have smidump, you can install it (even on OSX, if you've got your xcode &amp;amp; gnu tools set up) from &lt;A href="http://www.ibr.cs.tu-bs.de/projects/libsmi/download/libsmi-current.tar.gz"&gt;http://www.ibr.cs.tu-bs.de/projects/libsmi/download/libsmi-current.tar.gz&lt;/A&gt; using &lt;CODE&gt;./configure&lt;/CODE&gt; &amp;amp;&amp;amp; &lt;CODE&gt;make install&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2013 16:26:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/SMI-error-converting-MIB-to-Python-egg/m-p/104872#M9567</guid>
      <dc:creator>Jaykul</dc:creator>
      <dc:date>2013-09-10T16:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: SMI error converting MIB to Python egg</title>
      <link>https://community.splunk.com/t5/Installation/SMI-error-converting-MIB-to-Python-egg/m-p/104873#M9568</link>
      <description>&lt;P&gt;I was getting the same error, running on a centOS box.&lt;/P&gt;

&lt;P&gt;Here is what I did to address the issue.  Please take in mind I am not a linux expert by any means, not sure if it would be OK to perform these steps on any production environment.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Downloaded pycrypto-2.6 and untar&lt;/LI&gt;
&lt;LI&gt;cd to pycrypto-2.6 and run python setup.py install to install module&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;I then had to do the same thing for pyans1.&lt;BR /&gt;
This allowed me to combile .py files from my standard .MIB files.&lt;BR /&gt;
(However I still got an error when I tried to use them with snmp modular input) &lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2013 18:51:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/SMI-error-converting-MIB-to-Python-egg/m-p/104873#M9568</guid>
      <dc:creator>pmeyerson</dc:creator>
      <dc:date>2013-09-10T18:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: SMI error converting MIB to Python egg</title>
      <link>https://community.splunk.com/t5/Installation/SMI-error-converting-MIB-to-Python-egg/m-p/104874#M9569</link>
      <description>&lt;P&gt;What sort of error? Mine are working (although I had to drop the py/pyc loose in the folder, haven't been able to get an .egg to work) &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2013 05:20:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/SMI-error-converting-MIB-to-Python-egg/m-p/104874#M9569</guid>
      <dc:creator>Jaykul</dc:creator>
      <dc:date>2013-09-11T05:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: SMI error converting MIB to Python egg</title>
      <link>https://community.splunk.com/t5/Installation/SMI-error-converting-MIB-to-Python-egg/m-p/104875#M9570</link>
      <description>&lt;P&gt;My error message is: "python E:\Splunk\etc\apps\snmp_ta\bin\snmp.py" pysnmp.smi.error.SmiError: MIB file "WWP-TRAFFIC-PROFILE-MIB.py[co]" not found in search path&lt;/P&gt;

&lt;P&gt;I have a WWP-TRAFFIC-PROFILE-MIB.py and .egg file present.  However my egg does not contain any .pyc files.&lt;BR /&gt;
Am I missing a step in the build/compile process?&lt;BR /&gt;
Doing my development on a centOS box, and splunk is installed on a windows box.&lt;/P&gt;

&lt;P&gt;thx&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2013 13:41:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/SMI-error-converting-MIB-to-Python-egg/m-p/104875#M9570</guid>
      <dc:creator>pmeyerson</dc:creator>
      <dc:date>2013-09-11T13:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: SMI error converting MIB to Python egg</title>
      <link>https://community.splunk.com/t5/Installation/SMI-error-converting-MIB-to-Python-egg/m-p/104876#M9571</link>
      <description>&lt;P&gt;I guess this is more of a python issue... I was able to compile my .pyc files but now I get this error:&lt;BR /&gt;
 pysnmp.smi.error.SmiError: MIB module "E:\Splunk\etc\apps\snmp_ta\bin\mibs\WWP-LEOS-TRAFFIC-PROFILE-MIB.py" load error: importSymbols: empty MIB module name&lt;/P&gt;

&lt;P&gt;thanks for any suggestions&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2013 14:34:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/SMI-error-converting-MIB-to-Python-egg/m-p/104876#M9571</guid>
      <dc:creator>pmeyerson</dc:creator>
      <dc:date>2013-09-11T14:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: SMI error converting MIB to Python egg</title>
      <link>https://community.splunk.com/t5/Installation/SMI-error-converting-MIB-to-Python-egg/m-p/104877#M9572</link>
      <description>&lt;P&gt;Have you enabled the EPEL repository? I had some success installing python-pip from that repo and using pip install &lt;PYTHON module="" name=""&gt; to install the requisite modules.&lt;/PYTHON&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2013 18:34:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/SMI-error-converting-MIB-to-Python-egg/m-p/104877#M9572</guid>
      <dc:creator>andarnold</dc:creator>
      <dc:date>2013-11-22T18:34:11Z</dc:date>
    </item>
  </channel>
</rss>

