Action: script python: problem with libraries and modules

Path Finder

Hello Team,
I have a sh script (alarm/action) which acts as a wrapper to python script.

I have several problems with splunk python libraries, followed:
Did not help at all.
But only:
copy of /usr/local/lib/python2.7/dist-packages



Helped a bit. Now my python script fails on SSL connections with error:

File "/opt/splunk/lib/python2.7/site-packages/requests/", line 506, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='', port=443): Max retries exceeded with url: / (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.",))'

What can i do now ?

I can execute my python script without any problems from SSH, it's just a problems when executed from Splunk....


Tags (1)
0 Karma
State of Splunk Careers

Access the Splunk Careers Report to see real data that shows how Splunk mastery increases your value and job satisfaction.

Find out what your skills are worth!