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
SplunkTrust
SplunkTrust

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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...