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.

yew
Observer

How do I install reinstall this add-on within a cloud instance?

0 Karma

DanielPi
Moderator
Moderator

Hi @yew,

I’m a Community Moderator in the Splunk Community.

This question was posted 8 years ago, so it might not get the attention you need for your question to be answered. We recommend that you post a new question so that your issue can get the  visibility it deserves. To increase your chances of getting help from the community, follow these guidelines in the Splunk Answers User Manual when creating your post.

Thank you! 

0 Karma

yew
Observer

It's okay. I was able to figure out how to install this. It's a bit odd that dependencies like this are not automatically managed.

0 Karma

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!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...