<?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: How to configure Eclipse to work with Splunk python? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/How-to-configure-Eclipse-to-work-with-Splunk-python/m-p/130700#M1862</link>
    <description>&lt;P&gt;Luna Release 4.4.0&lt;/P&gt;</description>
    <pubDate>Fri, 19 Sep 2014 09:42:14 GMT</pubDate>
    <dc:creator>lquinn</dc:creator>
    <dc:date>2014-09-19T09:42:14Z</dc:date>
    <item>
      <title>How to configure Eclipse to work with Splunk python?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-configure-Eclipse-to-work-with-Splunk-python/m-p/130696#M1858</link>
      <description>&lt;P&gt;I am currently trying to debug an app for splunk and I would like to be able to look at it in eclipse. However I am struggling to configure eclipse to work with splunk. So far I have installed Eclipse, Tortoise HG and Mercurial. I have opened my repository and attempted to specify the interpreter as splunks python.  I have been following instructions from this similar question...&lt;/P&gt;

&lt;P&gt;&lt;A href="http://answers.splunk.com/answers/100884/how-test-python-in-eclipse.html"&gt;http://answers.splunk.com/answers/100884/how-test-python-in-eclipse.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;In their example they have the python executable in the python27 directory which is inside the splunk bin directory. I however have the python.exe file in straight in the bin directory and then the python 27 directory in splunk&lt;/P&gt;

&lt;P&gt;ie.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;-splunk
    -bin
        -python.exe
    -etc
    -include
    -Python27
    -.....
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The error message that occurs when I attempt to add the splunk python interpreter is&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  Unable to get info on the interpreter C:\Program Files\Splunk\bin\python.exe
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I figured it must be something to do with the fact that the python executable and the directory Python27 are separated. I tried copying the folders from the python27 directory into the bin directory, however it stil could not find all of the relevant files, this time the DLLs. Does anyone have any ideas? Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2014 16:06:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-configure-Eclipse-to-work-with-Splunk-python/m-p/130696#M1858</guid>
      <dc:creator>lquinn</dc:creator>
      <dc:date>2014-09-18T16:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Eclipse to work with Splunk python?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-configure-Eclipse-to-work-with-Splunk-python/m-p/130697#M1859</link>
      <description>&lt;P&gt;Ok, try this. In &lt;CODE&gt;$SPLUNK_HOME&lt;/CODE&gt;, create a file &lt;CODE&gt;splunk_python.cmd&lt;/CODE&gt;. Put the following in that file (change the path to whatever you have installed it as):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;echo off
"C:\Program Files\Splunk\bin\splunk.exe" cmd python %*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now in Eclipse, create a new python interpreter, and point it at &lt;CODE&gt;C:\Program Files\Splunk\bin\splunk_python.cmd&lt;/CODE&gt; (change the path to whatever you have installed it as)&lt;/P&gt;

&lt;P&gt;I was able to do something similar on Linux, and it works well.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2014 18:08:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-configure-Eclipse-to-work-with-Splunk-python/m-p/130697#M1859</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2014-09-18T18:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Eclipse to work with Splunk python?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-configure-Eclipse-to-work-with-Splunk-python/m-p/130698#M1860</link>
      <description>&lt;P&gt;Hi, thanks for your answer. I think you're on the right lines! I have followed your instructions above however when I added the splunk_python.cmd as the python interpreter I encountered the error&lt;/P&gt;

&lt;P&gt;Python stdlib not found or stdlib found without .py files.&lt;/P&gt;

&lt;P&gt;I tried manually pointing it in the direction of Python2.7/Lib however I ended up getting even more errors!&lt;/P&gt;</description>
      <pubDate>Fri, 19 Sep 2014 07:55:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-configure-Eclipse-to-work-with-Splunk-python/m-p/130698#M1860</guid>
      <dc:creator>lquinn</dc:creator>
      <dc:date>2014-09-19T07:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Eclipse to work with Splunk python?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-configure-Eclipse-to-work-with-Splunk-python/m-p/130699#M1861</link>
      <description>&lt;P&gt;What version of eclipse are you testing?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Sep 2014 09:27:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-configure-Eclipse-to-work-with-Splunk-python/m-p/130699#M1861</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2014-09-19T09:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Eclipse to work with Splunk python?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-configure-Eclipse-to-work-with-Splunk-python/m-p/130700#M1862</link>
      <description>&lt;P&gt;Luna Release 4.4.0&lt;/P&gt;</description>
      <pubDate>Fri, 19 Sep 2014 09:42:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-configure-Eclipse-to-work-with-Splunk-python/m-p/130700#M1862</guid>
      <dc:creator>lquinn</dc:creator>
      <dc:date>2014-09-19T09:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Eclipse to work with Splunk python?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-configure-Eclipse-to-work-with-Splunk-python/m-p/130701#M1863</link>
      <description>&lt;P&gt;Download Splunk Python SDk (zip) from splunk .. &lt;BR /&gt;
Extract it...&lt;BR /&gt;
you can see two folders.. &lt;STRONG&gt;splunklib&lt;/STRONG&gt; and &lt;STRONG&gt;utils&lt;/STRONG&gt;...&lt;BR /&gt;
Copy those folders into your machine's &lt;STRONG&gt;python\lib\site-packages&lt;/STRONG&gt; folder....&lt;BR /&gt;
Also copy the contents of &lt;STRONG&gt;%SPLUNK_HOM%\Python-2.7\Lib\site-packages&lt;/STRONG&gt; to &lt;STRONG&gt;python\lib\site-packages&lt;/STRONG&gt;...&lt;/P&gt;

&lt;P&gt;In your eclipse,  Configure your system's python (Installed by you) as python interpreter &lt;/P&gt;

&lt;P&gt;You can debug splunk python sdk...&lt;/P&gt;</description>
      <pubDate>Mon, 16 Feb 2015 12:45:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-configure-Eclipse-to-work-with-Splunk-python/m-p/130701#M1863</guid>
      <dc:creator>paramagurukarth</dc:creator>
      <dc:date>2015-02-16T12:45:05Z</dc:date>
    </item>
  </channel>
</rss>

