Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

Issue with Python modules when attempting to execute app script. "ImportError: No module named searchcommands"

$
0
0
I am trying to use an app that appears to call some Python scripts to get the data into Splunk. Splunk is having some trouble with the Python modules required to run the script, and I am not quite sure how to solve it using Splunk's own Python environment. (I could probably fix this if Splunk used a standalone Python environment, but I do not know how to get it to do that) Here is the log from the job inspector: 09-21-2016 12:09:48.162 INFO ChunkedExternProcessor - Running process: "C:\Program Files\Splunk\bin\python.exe" "C:\Program Files\Splunk\etc\apps\TA-prtg\bin\prtglivedata.py" 09-21-2016 12:09:48.340 ERROR ChunkedExternProcessor - EOF while attempting to read transport header 09-21-2016 12:09:48.342 ERROR ChunkedExternProcessor - Error in 'prtglivedata' command: External search command exited unexpectedly with non-zero error code 1. 09-21-2016 12:09:48.342 INFO UserManager - Unwound user context: admin -> NULL 09-21-2016 12:09:48.345 ERROR ChunkedExternProcessor - stderr: Traceback (most recent call last): 09-21-2016 12:09:48.346 ERROR ChunkedExternProcessor - stderr: File "C:\Program Files\Splunk\etc\apps\TA-prtg\bin\prtglivedata.py", line 32, in 09-21-2016 12:09:48.346 ERROR ChunkedExternProcessor - stderr: from splunklib.searchcommands import dispatch, GeneratingCommand, Configuration, Option, validators 09-21-2016 12:09:48.346 ERROR ChunkedExternProcessor - stderr: ImportError: No module named searchcommands I tried to run the Python script directly using Splunk's Python, but that throws an error as well: c:\Program Files\Splunk\bin>splunk cmd python "C:\Program Files\Splunk\etc\apps\TA-prtg\bin\prtglivedata.py" Traceback (most recent call last): File "C:\Program Files\Splunk\etc\apps\TA-prtg\bin\prtglivedata.py", line 32, in from splunklib.searchcommands import dispatch, GeneratingCommand, Configuration, Option, validators ImportError: No module named searchcommands

Viewing all articles
Browse latest Browse all 47296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>