<?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: Script input Error - No module named splunklib.client in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Script-input-Error-No-module-named-splunklib-client/m-p/359453#M65583</link>
    <description>&lt;P&gt;How can I set pythonpath to the splunk path? I'm confuse. &lt;/P&gt;</description>
    <pubDate>Wed, 25 Apr 2018 14:43:25 GMT</pubDate>
    <dc:creator>tamduong16</dc:creator>
    <dc:date>2018-04-25T14:43:25Z</dc:date>
    <item>
      <title>Script input Error - No module named splunklib.client</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Script-input-Error-No-module-named-splunklib-client/m-p/359450#M65580</link>
      <description>&lt;P&gt;I am trying to index data from my python script. Everything set up correctly but I still don't see data coming in. So search for events using index=_internal sourcetype=splunkd and have the following error:&lt;BR /&gt;
ERROR ExecProcessor - message from "python "C:\Program Files\Splunk\etc\system\bin\REV_API_viewerreport.py"" ImportError: No module named splunklib.client.&lt;/P&gt;

&lt;P&gt;I tried copying the package to the same folder where I have my script but it still giving me the same error. What should I do?&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:13:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Script-input-Error-No-module-named-splunklib-client/m-p/359450#M65580</guid>
      <dc:creator>tamduong16</dc:creator>
      <dc:date>2020-09-29T19:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Script input Error - No module named splunklib.client</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Script-input-Error-No-module-named-splunklib-client/m-p/359451#M65581</link>
      <description>&lt;P&gt;How you are running script? Did you set pythonpath to the splunk path? &lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 03:10:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Script-input-Error-No-module-named-splunklib-client/m-p/359451#M65581</guid>
      <dc:creator>p_gurav</dc:creator>
      <dc:date>2018-04-25T03:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Script input Error - No module named splunklib.client</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Script-input-Error-No-module-named-splunklib-client/m-p/359452#M65582</link>
      <description>&lt;P&gt;&lt;CODE&gt;splunklib.client&lt;/CODE&gt; is part of the Splunk Python SDK.&lt;BR /&gt;
Did you follow the guide for installation of the SDK (&lt;A href="http://dev.splunk.com/view/python-sdk/SP-CAAAEDG"&gt;http://dev.splunk.com/view/python-sdk/SP-CAAAEDG&lt;/A&gt;)?&lt;/P&gt;

&lt;P&gt;It seems like your PYTHONPATH environment variable is not set properly, causing import statement to fail.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 09:08:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Script-input-Error-No-module-named-splunklib-client/m-p/359452#M65582</guid>
      <dc:creator>damien_chillet</dc:creator>
      <dc:date>2018-04-25T09:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Script input Error - No module named splunklib.client</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Script-input-Error-No-module-named-splunklib-client/m-p/359453#M65583</link>
      <description>&lt;P&gt;How can I set pythonpath to the splunk path? I'm confuse. &lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 14:43:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Script-input-Error-No-module-named-splunklib-client/m-p/359453#M65583</guid>
      <dc:creator>tamduong16</dc:creator>
      <dc:date>2018-04-25T14:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Script input Error - No module named splunklib.client</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Script-input-Error-No-module-named-splunklib-client/m-p/359454#M65584</link>
      <description>&lt;P&gt;@damien_chillet&lt;BR /&gt;
Thanks for the answer. I placed the file splunk-sdk-python-1.6.3 in my C drive. Then I went to edit my eviromental variable for Path and wrote this line: PYTHONPATH=C:\splunk-sdk-python-1.6.3. But I still have the same error. Am I doing it right?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 17:27:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Script-input-Error-No-module-named-splunklib-client/m-p/359454#M65584</guid>
      <dc:creator>tamduong16</dc:creator>
      <dc:date>2018-04-25T17:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Script input Error - No module named splunklib.client</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Script-input-Error-No-module-named-splunklib-client/m-p/359455#M65585</link>
      <description>&lt;P&gt;Hey,&lt;BR /&gt;
can you run &lt;CODE&gt;python -c 'import sys; print sys.path'&lt;/CODE&gt; and check if the SDK path appears in there?&lt;BR /&gt;
I believe you need to restart your Windows machine for the new environment variable to appear.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2018 08:53:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Script-input-Error-No-module-named-splunklib-client/m-p/359455#M65585</guid>
      <dc:creator>damien_chillet</dc:creator>
      <dc:date>2018-04-26T08:53:37Z</dc:date>
    </item>
  </channel>
</rss>

