<?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 howto install and use Splunk python sdk on Windows in Installation</title>
    <link>https://community.splunk.com/t5/Installation/howto-install-and-use-Splunk-python-sdk-on-Windows/m-p/292318#M8100</link>
    <description>&lt;P&gt;I'm trying to create a custom search called acltranslate in Splunk on Windows&lt;/P&gt;

&lt;P&gt;When running the search I get an error:&lt;BR /&gt;
Error in 'acltranslate' command: External search command exited unexpectedly with non-zero error code 1.&lt;/P&gt;

&lt;P&gt;The log files contains:&lt;BR /&gt;
08-17-2017 10:18:36.505 INFO  ChunkedExternProcessor - Running process: "C:\Program Files\Splunk\bin\python.exe" "C:\Program Files\Splunk\etc\apps\pggm_TA_Windows\bin\acltranslate.py"&lt;BR /&gt;
08-17-2017 10:18:36.539 ERROR ChunkedExternProcessor - EOF while attempting to read transport header&lt;BR /&gt;
08-17-2017 10:18:36.540 ERROR ChunkedExternProcessor - Error in 'acltranslate' command: External search command exited unexpectedly with non-zero error code 1.&lt;BR /&gt;
08-17-2017 10:18:36.540 INFO  UserManager - Unwound user context: dijc -&amp;gt; NULL&lt;BR /&gt;
08-17-2017 10:18:36.543 ERROR ChunkedExternProcessor - stderr: Traceback (most recent call last):&lt;BR /&gt;
08-17-2017 10:18:36.543 ERROR ChunkedExternProcessor - stderr:   File "C:\Program Files\Splunk\etc\apps\pggm_TA_Windows\bin\acltranslate.py", line 2, in &lt;BR /&gt;
08-17-2017 10:18:36.543 ERROR ChunkedExternProcessor - stderr:     from splunklib.searchcommands import dispatch, StreamingCommand, Configuration&lt;BR /&gt;
08-17-2017 10:18:36.543 ERROR ChunkedExternProcessor - stderr: ImportError: No module named splunklib.searchcommands&lt;/P&gt;

&lt;P&gt;Clearly python is unable to find the SDK.&lt;/P&gt;

&lt;P&gt;How can I install the python sdk on Windows? All the docmentation I can find seems to be related to Unix/Linux variants. The official documentation provided with the SDK does not mention how to install the sdk on Windows&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 15:26:47 GMT</pubDate>
    <dc:creator>coenvandijk</dc:creator>
    <dc:date>2020-09-29T15:26:47Z</dc:date>
    <item>
      <title>howto install and use Splunk python sdk on Windows</title>
      <link>https://community.splunk.com/t5/Installation/howto-install-and-use-Splunk-python-sdk-on-Windows/m-p/292318#M8100</link>
      <description>&lt;P&gt;I'm trying to create a custom search called acltranslate in Splunk on Windows&lt;/P&gt;

&lt;P&gt;When running the search I get an error:&lt;BR /&gt;
Error in 'acltranslate' command: External search command exited unexpectedly with non-zero error code 1.&lt;/P&gt;

&lt;P&gt;The log files contains:&lt;BR /&gt;
08-17-2017 10:18:36.505 INFO  ChunkedExternProcessor - Running process: "C:\Program Files\Splunk\bin\python.exe" "C:\Program Files\Splunk\etc\apps\pggm_TA_Windows\bin\acltranslate.py"&lt;BR /&gt;
08-17-2017 10:18:36.539 ERROR ChunkedExternProcessor - EOF while attempting to read transport header&lt;BR /&gt;
08-17-2017 10:18:36.540 ERROR ChunkedExternProcessor - Error in 'acltranslate' command: External search command exited unexpectedly with non-zero error code 1.&lt;BR /&gt;
08-17-2017 10:18:36.540 INFO  UserManager - Unwound user context: dijc -&amp;gt; NULL&lt;BR /&gt;
08-17-2017 10:18:36.543 ERROR ChunkedExternProcessor - stderr: Traceback (most recent call last):&lt;BR /&gt;
08-17-2017 10:18:36.543 ERROR ChunkedExternProcessor - stderr:   File "C:\Program Files\Splunk\etc\apps\pggm_TA_Windows\bin\acltranslate.py", line 2, in &lt;BR /&gt;
08-17-2017 10:18:36.543 ERROR ChunkedExternProcessor - stderr:     from splunklib.searchcommands import dispatch, StreamingCommand, Configuration&lt;BR /&gt;
08-17-2017 10:18:36.543 ERROR ChunkedExternProcessor - stderr: ImportError: No module named splunklib.searchcommands&lt;/P&gt;

&lt;P&gt;Clearly python is unable to find the SDK.&lt;/P&gt;

&lt;P&gt;How can I install the python sdk on Windows? All the docmentation I can find seems to be related to Unix/Linux variants. The official documentation provided with the SDK does not mention how to install the sdk on Windows&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:26:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/howto-install-and-use-Splunk-python-sdk-on-Windows/m-p/292318#M8100</guid>
      <dc:creator>coenvandijk</dc:creator>
      <dc:date>2020-09-29T15:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: howto install and use Splunk python sdk on Windows</title>
      <link>https://community.splunk.com/t5/Installation/howto-install-and-use-Splunk-python-sdk-on-Windows/m-p/292319#M8101</link>
      <description>&lt;P&gt;You have to add your splunk-lib-directory to the python path. I'm not sure if this doc is still current but it may be worth have a look on:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.linuxtopia.org/online_books/programming_books/python_programming/python_ch28s04.html"&gt;http://www.linuxtopia.org/online_books/programming_books/python_programming/python_ch28s04.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2017 13:54:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/howto-install-and-use-Splunk-python-sdk-on-Windows/m-p/292319#M8101</guid>
      <dc:creator>rvany</dc:creator>
      <dc:date>2017-08-17T13:54:02Z</dc:date>
    </item>
  </channel>
</rss>

