<?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: Python Extension Module To DB2 doesn't work in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Python-Extension-Module-To-DB2-doesn-t-work/m-p/103440#M1528</link>
    <description>&lt;P&gt;Well as i mentioned in original post, i did saw the article you are referring to but it doesn't help in my case. I guess the problem in my case is 1)NO Python DB2  module is available for 64 bit OS OR 2) i am missing how to extract ibm_db-1.0.3-py2.6-win32.egg file to c:\Splunk\bin. Please note following commands doesn't work for me.&lt;BR /&gt;
 1)splunk cmd python setup.py install&lt;BR /&gt;
 2) splunk cmd ./ibm_db-1.0.3-py2.6-win32.egg &lt;BR /&gt;
What am i missing?&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 09:22:01 GMT</pubDate>
    <dc:creator>bansi</dc:creator>
    <dc:date>2020-09-28T09:22:01Z</dc:date>
    <item>
      <title>Python Extension Module To DB2 doesn't work</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Python-Extension-Module-To-DB2-doesn-t-work/m-p/103438#M1526</link>
      <description>&lt;P&gt;I am trying to add the DB2 database module (i.e ibm_db-1.0.3-py2.6-win32.egg) to Splunk Python on Windows 2008 Server 64 bit OS&lt;/P&gt;

&lt;P&gt;I found a similar question here: 
&lt;A href="http://answers.splunk.com/questions/8/can-i-add-python-modules-to-the-splunk-environment" rel="nofollow"&gt;http://answers.splunk.com/questions/8/can-i-add-python-modules-to-the-splunk-environment&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://answers.splunk.com/questions/6033/adding-python-module-to-splunk" rel="nofollow"&gt;http://answers.splunk.com/questions/6033/adding-python-module-to-splunk&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;When I did the steps mentioned in the posting,  it doesn't extract anything. So please let me kno where i am going wrong.&lt;/P&gt;

&lt;P&gt;Here are the steps&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Copy the ibm_db-1.0.3-py2.6-win32.egg file to c:\Splunk\bin&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Extract Python Module using below command didn't do anything:&lt;/P&gt;

&lt;P&gt;cd c:\splunk\bin&lt;/P&gt;

&lt;P&gt;splunk cmd python setup.py install&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Opens up a new command prompt window and immediately closes it. I am sure it didnt do anything as i didnt find  aynthing extracted in the folder&lt;/P&gt;

&lt;P&gt;C:\Splunk\Python-2.6\Lib\site-packages&lt;/P&gt;

&lt;P&gt;I also tried copying setup.py to c:Splunk\bin but it didnt help.&lt;/P&gt;

&lt;P&gt;Then i tried the following command which didnt work either&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$ splunk cmd ./ibm_db-1.0.3-py2.6-win32.egg 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So i am not sure if their is an easy way to add python module to Splunk. Please note i am using Python version of Splunk i.e. 2.6&lt;/P&gt;</description>
      <pubDate>Sat, 11 Dec 2010 03:38:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Python-Extension-Module-To-DB2-doesn-t-work/m-p/103438#M1526</guid>
      <dc:creator>bansi</dc:creator>
      <dc:date>2010-12-11T03:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: Python Extension Module To DB2 doesn't work</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Python-Extension-Module-To-DB2-doesn-t-work/m-p/103439#M1527</link>
      <description>&lt;P&gt;See the existing question/answer:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://answers.splunk.com/questions/8/can-i-add-python-modules-to-the-splunk-environment" rel="nofollow"&gt;http://answers.splunk.com/questions/8/can-i-add-python-modules-to-the-splunk-environment&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Dec 2010 08:16:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Python-Extension-Module-To-DB2-doesn-t-work/m-p/103439#M1527</guid>
      <dc:creator>araitz</dc:creator>
      <dc:date>2010-12-11T08:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Python Extension Module To DB2 doesn't work</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Python-Extension-Module-To-DB2-doesn-t-work/m-p/103440#M1528</link>
      <description>&lt;P&gt;Well as i mentioned in original post, i did saw the article you are referring to but it doesn't help in my case. I guess the problem in my case is 1)NO Python DB2  module is available for 64 bit OS OR 2) i am missing how to extract ibm_db-1.0.3-py2.6-win32.egg file to c:\Splunk\bin. Please note following commands doesn't work for me.&lt;BR /&gt;
 1)splunk cmd python setup.py install&lt;BR /&gt;
 2) splunk cmd ./ibm_db-1.0.3-py2.6-win32.egg &lt;BR /&gt;
What am i missing?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:22:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Python-Extension-Module-To-DB2-doesn-t-work/m-p/103440#M1528</guid>
      <dc:creator>bansi</dc:creator>
      <dc:date>2020-09-28T09:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Python Extension Module To DB2 doesn't work</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Python-Extension-Module-To-DB2-doesn-t-work/m-p/103441#M1529</link>
      <description>&lt;P&gt;executing an egg directly as jonvey's example isn't going to work on windows.  &lt;/P&gt;

&lt;P&gt;I'm not a big fan of eggs as they're supposed to make things easier, but they make things harder if you don't know how they work.  There's this general egg-install-on-windows thing  &lt;A href="http://stackoverflow.com/questions/458311/how-do-i-install-an-egg-file-without-easy-install-in-windows"&gt;http://stackoverflow.com/questions/458311/how-do-i-install-an-egg-file-without-easy-install-in-windows&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Do we really ask people to install python modules in our environment? It's generally a more stable result to install modules in a system python that won't get updated on splunk upgrade.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2010 02:42:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Python-Extension-Module-To-DB2-doesn-t-work/m-p/103441#M1529</guid>
      <dc:creator>jrodman</dc:creator>
      <dc:date>2010-12-16T02:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Python Extension Module To DB2 doesn't work</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Python-Extension-Module-To-DB2-doesn-t-work/m-p/103442#M1530</link>
      <description>&lt;P&gt;Ok i have installed pyodbc module on system python 2.7 and have external database lookup script running under system Python 2.7.&lt;/P&gt;

&lt;P&gt;Please let me know how to integrate the database lookup script into Splunk Python version 2.6.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2010 23:04:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Python-Extension-Module-To-DB2-doesn-t-work/m-p/103442#M1530</guid>
      <dc:creator>bansi</dc:creator>
      <dc:date>2010-12-20T23:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Python Extension Module To DB2 doesn't work</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Python-Extension-Module-To-DB2-doesn-t-work/m-p/103443#M1531</link>
      <description>&lt;P&gt;Bansi how you made your lookup script running in Splunk? Im going mad..&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2013 16:03:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Python-Extension-Module-To-DB2-doesn-t-work/m-p/103443#M1531</guid>
      <dc:creator>stefano_guidoba</dc:creator>
      <dc:date>2013-10-10T16:03:01Z</dc:date>
    </item>
  </channel>
</rss>

