SplunkMLToolkit 0.9.1 complains that Python for Scientific Computing is not installed (even after restart). App SplunkSAScientificPythonwindowsx8664 1.0.0 is installed and shows up in the application list on the manage applications screen. Can someone advise how to troubleshoot?
Flagging the Python... app as visible was tried, but this did not fix the problem.
Hi brad! Sorry you are having trouble here. Could you check a couple of things for me?
First, can you confirm that your Splunk search head is running version at least 6.3.0 and running on 64-bit Windows? (and not, e.g. 32-bit Windows 7).
Second, could you go to the "Search" tab in the ML Toolkit and Showcase app and try running the following two searches and report back the output?
Best regards, -jacob
The environment in question is a single instance with the search head and indexer on the same server. If I issue splunk version the response back is "Splunk 6.3.0 (build aa7d4b1ccb80)". The host operating system is Windows 2008R2 Enterprise (x64). | fit returns "fit: Failed to load SplunkSAScientific_Python (Python for Scientific Computing App) ". | listmodels returns "No results found."
Great, thanks for trying these two things!
I'm suspecting that the Python for Scientific Computing app didn't install correctly. There are a couple of ways to test this:
(1) Delete %SPLUNKHOME%\etc\apps\SplunkSAScientificPython and all of its contents, restart Splunk, and then try to reinstall it.
(2) Open cmd.exe, and run:
import sys, pandas
If (1) fixes it, then indeed something went wrong when installing Python for Scientific Computing. If (2) doesn't raise any errors, then Python for Scientific Python is probably installed correctly, and there is likely a bug in the "fit" command that we'll need to track down.
Suggestion 1 did nothing. I attempted suggestion two and found that python fails to start. It generated this error in the application event log:
Activation context generation failed for "C:\Program Files\Splunk\etc\apps\SplunkSAScientificPythonwindowsx8664\bin\windowsx8664\python.exe". Dependent Assembly Microsoft.VC90.CRT,processorArchitecture="amd64",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8" could not be found. Please use sxstrace.exe for detailed diagnosis.
John, super helpful. Thanks so much for going the extra distance to help diagnose this! I'm glad you found a workaround. Cheers, -jacob
The scientific flavor of python (on Windows) requires Microsoft Visual C++ 2008 runtime to be installed. After installing vcredest_x64.exe, ML toolkit started working. Problem solved!