<?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: Failing import in Splunk Framework app in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Failing-import-in-Splunk-Framework-app/m-p/76312#M1060</link>
    <description>&lt;P&gt;The way it works in Splunk 6 is that the Python SDK is available to Django code. So if your app Python code is running in Django, you can access the Python SDK (and thus &lt;CODE&gt;splunklib.client&lt;/CODE&gt;).&lt;/P&gt;

&lt;P&gt;I've noted the desire to have it available to all Python code as an enhancement request.&lt;/P&gt;</description>
    <pubDate>Fri, 04 Oct 2013 21:47:21 GMT</pubDate>
    <dc:creator>ineeman</dc:creator>
    <dc:date>2013-10-04T21:47:21Z</dc:date>
    <item>
      <title>Failing import in Splunk Framework app</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Failing-import-in-Splunk-Framework-app/m-p/76311#M1059</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;

&lt;P&gt;I am trying to write my first Splunk Application Framework app . However I am running into trouble when it comes to the python code associated with my custom module. The problem seems to originate in an import :&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;"import splunklib.client as client"&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;Looking into web_service.log I can see the following lines :&lt;/P&gt;

&lt;P&gt;2013-09-29 11:10:02,743 ERROR   [5247e059c217902b0] root:555 - Unable to start splunkweb&lt;BR /&gt;
2013-09-29 11:10:02,743 ERROR   [5247e059c217902b0] root:556 - No module named splunklib.client&lt;/P&gt;

&lt;P&gt;....&lt;/P&gt;

&lt;P&gt;ImportError: No module named splunklib.client&lt;/P&gt;

&lt;P&gt;Since splunklib is a part of the Python SDK and the Python SDK is available on the Application Framework I thought it would be straightforward to access it . What am I missing here ? How would someone proceed in order to employ the Python SDK in his app ?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 29 Sep 2013 08:23:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Failing-import-in-Splunk-Framework-app/m-p/76311#M1059</guid>
      <dc:creator>rantravee</dc:creator>
      <dc:date>2013-09-29T08:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Failing import in Splunk Framework app</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Failing-import-in-Splunk-Framework-app/m-p/76312#M1060</link>
      <description>&lt;P&gt;The way it works in Splunk 6 is that the Python SDK is available to Django code. So if your app Python code is running in Django, you can access the Python SDK (and thus &lt;CODE&gt;splunklib.client&lt;/CODE&gt;).&lt;/P&gt;

&lt;P&gt;I've noted the desire to have it available to all Python code as an enhancement request.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2013 21:47:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Failing-import-in-Splunk-Framework-app/m-p/76312#M1060</guid>
      <dc:creator>ineeman</dc:creator>
      <dc:date>2013-10-04T21:47:21Z</dc:date>
    </item>
  </channel>
</rss>

