<?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: splunk remote server SDK access (Python) in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/splunk-remote-server-SDK-access-Python/m-p/19491#M126</link>
    <description>&lt;P&gt;Splunk uses Python 2.7 last time I checked.&lt;/P&gt;

&lt;P&gt;Easy way to check if it's your Python version that's having the issue is to run the script like this:&lt;/P&gt;

&lt;P&gt;$SPLUNK_HOME/bin/splunk cmd python &lt;SCRIPT.NAME&gt;&lt;/SCRIPT.NAME&gt;&lt;/P&gt;

&lt;P&gt;Brian&lt;/P&gt;</description>
    <pubDate>Thu, 05 Apr 2012 12:22:10 GMT</pubDate>
    <dc:creator>Brian_Osburn</dc:creator>
    <dc:date>2012-04-05T12:22:10Z</dc:date>
    <item>
      <title>splunk remote server SDK access (Python)</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/splunk-remote-server-SDK-access-Python/m-p/19490#M125</link>
      <description>&lt;P&gt;I am trying to access remote splunk instance and on the local machine i have splunk SDK downloaded and installed splunk-sdk and added export PYTHONPATH=~/splunk-sdk-python to my .bash_profile.&lt;BR /&gt;
when i try to execute the examples e.g. python info.py i get the below error&lt;/P&gt;

&lt;P&gt;__ File "info.py", line 23, in &lt;MODULE&gt;&lt;BR /&gt;
__    from utils import parse&lt;BR /&gt;
__  ImportError: cannot import name parse&lt;/MODULE&gt;&lt;/P&gt;

&lt;P&gt;i have utils 0.1 installed. Any idea on how to run the splunk sdk examples.&lt;/P&gt;

&lt;P&gt;BTW i am running python2.6 on CentOS&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2012 03:26:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/splunk-remote-server-SDK-access-Python/m-p/19490#M125</guid>
      <dc:creator>sunilsattiraju</dc:creator>
      <dc:date>2012-04-05T03:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: splunk remote server SDK access (Python)</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/splunk-remote-server-SDK-access-Python/m-p/19491#M126</link>
      <description>&lt;P&gt;Splunk uses Python 2.7 last time I checked.&lt;/P&gt;

&lt;P&gt;Easy way to check if it's your Python version that's having the issue is to run the script like this:&lt;/P&gt;

&lt;P&gt;$SPLUNK_HOME/bin/splunk cmd python &lt;SCRIPT.NAME&gt;&lt;/SCRIPT.NAME&gt;&lt;/P&gt;

&lt;P&gt;Brian&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2012 12:22:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/splunk-remote-server-SDK-access-Python/m-p/19491#M126</guid>
      <dc:creator>Brian_Osburn</dc:creator>
      <dc:date>2012-04-05T12:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: splunk remote server SDK access (Python)</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/splunk-remote-server-SDK-access-Python/m-p/19492#M127</link>
      <description>&lt;P&gt;This is a question related to the Python SDK - &lt;A href="http://dev.splunk.com/view/python-sdk/SP-CAAAEBB"&gt;http://dev.splunk.com/view/python-sdk/SP-CAAAEBB&lt;/A&gt; - which works with Python 2.6+.  &lt;/P&gt;

&lt;P&gt;Utils comes with the SDK - so there is no extra installation required.  Have you done all of the setup required outlined on the link above?&lt;/P&gt;

&lt;P&gt;We have a number of command line examples here as well to try:  &lt;A href="http://dev.splunk.com/view/SP-CAAAEFK#info"&gt;http://dev.splunk.com/view/SP-CAAAEFK#info&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2012 15:37:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/splunk-remote-server-SDK-access-Python/m-p/19492#M127</guid>
      <dc:creator>psanford_splunk</dc:creator>
      <dc:date>2012-04-05T15:37:16Z</dc:date>
    </item>
  </channel>
</rss>

