All Apps and Add-ons

Why is the fit command resulting in error "Failed to find Python for Scientific Computing Add-on..."?

burwell
SplunkTrust
SplunkTrust

On either Splunk 6.4.3 or Splunk 6.5, I have both the latest Machine Learning Toolkit 2.0 and Scientific Python 1.2.

The apps are enabled, I am admin, the permissions are good.

Splunk search that fails:

index=main  | fit

Error:

Error in 'fit' command: Failed to find Python for Scientific Computing Add-on (Splunk_SA_Scientific_Python_linux_x86_64)

splunkd.log says:

10-11-2016 18:58:56.806 +0000 ERROR ChunkedExternProcessor - stderr: Traceback (most recent call last):
10-11-2016 18:58:56.806 +0000 ERROR ChunkedExternProcessor - stderr:   File "/opt/splunk/etc/apps/Splunk_ML_Toolkit/bin/cexc/__init__.py", line 127, in run
10-11-2016 18:58:56.806 +0000 ERROR ChunkedExternProcessor - stderr:     while self._handle_chunk():
10-11-2016 18:58:56.806 +0000 ERROR ChunkedExternProcessor - stderr:   File "/opt/splunk/etc/apps/Splunk_ML_Toolkit/bin/cexc/__init__.py", line 254, in _handle_chunk
10-11-2016 18:58:56.806 +0000 ERROR ChunkedExternProcessor - stderr:     ret = self.handler(metadata, body)
10-11-2016 18:58:56.806 +0000 ERROR ChunkedExternProcessor - stderr:   File "/opt/splunk/etc/apps/Splunk_ML_Toolkit/bin/cexc/__init__.py", line 326, in handler
10-11-2016 18:58:56.806 +0000 ERROR ChunkedExternProcessor - stderr:     raise RuntimeError(self.msg)
10-11-2016 18:58:56.806 +0000 ERROR ChunkedExternProcessor - stderr: RuntimeError: Failed to find Python for Scientific Computing Add-on (Splunk_SA_Scientific_Python_linux_x86_64)
10-11-2016 18:58:56.806 +0000 ERROR ChunkedExternProcessor - Error in 'fit' command: Failed to find Python for Scientific Computing Add-on (Splunk_SA_Scientific_Python_linux_x86_64)
1 Solution

yangzd
Splunk Employee
Splunk Employee

The error message indicates the Python for Scientific Computing Add-on is not installed properly.

Can you double check the app installation, specifically:

  1. It is the right PSC bits on your platform, that is Linux-64bit in your environment.
  2. PSC is installed to $SPLUNK_HOME/etc/apps/, and has unchanged name, that is "Splunk_SA_Scientific_Python_linux_x86_64" in your environment.

You may need to reinstall PSC and restart Splunk.

View solution in original post

yangzd
Splunk Employee
Splunk Employee

The error message indicates the Python for Scientific Computing Add-on is not installed properly.

Can you double check the app installation, specifically:

  1. It is the right PSC bits on your platform, that is Linux-64bit in your environment.
  2. PSC is installed to $SPLUNK_HOME/etc/apps/, and has unchanged name, that is "Splunk_SA_Scientific_Python_linux_x86_64" in your environment.

You may need to reinstall PSC and restart Splunk.

burwell
SplunkTrust
SplunkTrust

Thanks! Yes we have 64 bit Linux but I had called the app dir Splunk_SA_Scientific_Python_linux and not Splunk_SA_Scientific_Python_linux_x86_64.

I renamed the dir to the correct _x86_64, restarted Splunk and the error went away.

Thanks yangzd!

0 Karma

amitsharma39
New Member

I'm facing the same error. Also in my case, the name of the folder is correct as mentioned above. Using MLT 3.0 & PSC 1.2. Have done uninstall and splunk restart several times - no help.

0 Karma

thambisetty
Super Champion

Error in 'fit' command: External search command exited unexpectedly. getting same error.

————————————
If this helps, give a like below.
0 Karma

fsaporito
Explorer

me too and the name is correct.

0 Karma

yangzd
Splunk Employee
Splunk Employee

Awesome. You are very welcome!

0 Karma
Get Updates on the Splunk Community!

The Splunk Success Framework: Your Guide to Successful Splunk Implementations

Splunk Lantern is a customer success center that provides advice from Splunk experts on valuable data ...

Splunk Training for All: Meet Aspiring Cybersecurity Analyst, Marc Alicea

Splunk Education believes in the value of training and certification in today’s rapidly-changing data-driven ...

Investigate Security and Threat Detection with VirusTotal and Splunk Integration

As security threats and their complexities surge, security analysts deal with increased challenges and ...