<?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 unable to execute Python script using custom search command in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/unable-to-execute-Python-script-using-custom-search-command/m-p/580473#M11087</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am seeking assistance to execute Python script located under custom app.&amp;nbsp; Script is working fine in cmd prompt. But from Splunk console it is throwing error code 1.&lt;/P&gt;&lt;P&gt;I am trying to invoke script through below custom search command defined under commands.conf file.&lt;/P&gt;&lt;P&gt;| script &amp;lt;python script&amp;gt;&lt;/P&gt;&lt;P&gt;I have also installed required modules like Pandas and its dependencies. I am still seeing below errors. Please assist me to fix below errors&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;stderr import pandas as pd&lt;BR /&gt;stderr from 'C:\Program Files\Splunk\bin\Python3.exe \__init__.py", line 17, in &amp;lt;module&amp;gt;&lt;BR /&gt;stderr "Unable to import required dependencies:\n" + "\n".join(missing_dependencies)&lt;BR /&gt;ImportError: Unable to import required dependencies:&lt;BR /&gt;numpy&lt;BR /&gt;Importing the numpy C-extensions failed. This error can happen for&lt;BR /&gt;The Python version is: Python3.7 from "C:\Program Files\Splunk\bin\Python3.exe"&lt;BR /&gt;The NumPy version is: "1.22.0" and make sure that they are the versions you expect.&lt;BR /&gt;Original error was: No module named 'numpy.core._multiarray_umath'&lt;BR /&gt;External search command returned error code 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jan 2022 15:21:37 GMT</pubDate>
    <dc:creator>vijayaaccent</dc:creator>
    <dc:date>2022-01-10T15:21:37Z</dc:date>
    <item>
      <title>unable to execute Python script using custom search command</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/unable-to-execute-Python-script-using-custom-search-command/m-p/580473#M11087</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am seeking assistance to execute Python script located under custom app.&amp;nbsp; Script is working fine in cmd prompt. But from Splunk console it is throwing error code 1.&lt;/P&gt;&lt;P&gt;I am trying to invoke script through below custom search command defined under commands.conf file.&lt;/P&gt;&lt;P&gt;| script &amp;lt;python script&amp;gt;&lt;/P&gt;&lt;P&gt;I have also installed required modules like Pandas and its dependencies. I am still seeing below errors. Please assist me to fix below errors&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;stderr import pandas as pd&lt;BR /&gt;stderr from 'C:\Program Files\Splunk\bin\Python3.exe \__init__.py", line 17, in &amp;lt;module&amp;gt;&lt;BR /&gt;stderr "Unable to import required dependencies:\n" + "\n".join(missing_dependencies)&lt;BR /&gt;ImportError: Unable to import required dependencies:&lt;BR /&gt;numpy&lt;BR /&gt;Importing the numpy C-extensions failed. This error can happen for&lt;BR /&gt;The Python version is: Python3.7 from "C:\Program Files\Splunk\bin\Python3.exe"&lt;BR /&gt;The NumPy version is: "1.22.0" and make sure that they are the versions you expect.&lt;BR /&gt;Original error was: No module named 'numpy.core._multiarray_umath'&lt;BR /&gt;External search command returned error code 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 15:21:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/unable-to-execute-Python-script-using-custom-search-command/m-p/580473#M11087</guid>
      <dc:creator>vijayaaccent</dc:creator>
      <dc:date>2022-01-10T15:21:37Z</dc:date>
    </item>
  </channel>
</rss>

