You might have some luck setting the LD_LIBRARY_PATH before python runs. Note the example below imports the requests package, which spits up the same error.
$ /opt/splunk/bin/python
Python 2.7.13 (default, Nov 1 2017, 03:43:17)
[GCC 5.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import requests
>>> ERROR:root:code for hash md5 was not found.
[snip]
>>> exit()
$ export LD_LIBRARY_PATH=/opt/splunk/lib
$ /opt/splunk/bin/python
Python 2.7.13 (default, Nov 1 2017, 03:43:17)
[GCC 5.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import requests
>>>
Not sure what to do (other than setting os.environ['LD_LIBRARY_PATH'] and spawning a new python process or something equally ugly) if you can only do things within python.
,You might have some luck setting the LD_LIBRARY_PATH before python runs:
$ /opt/splunk/bin/python
Python 2.7.13 (default, Nov 1 2017, 03:43:17)
[GCC 5.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import requests
>>> ERROR:root:code for hash md5 was not found.
[snip]
>>> exit()
$ export LD_LIBRARY_PATH=/opt/splunk/lib
$ /opt/splunk/bin/python
Python 2.7.13 (default, Nov 1 2017, 03:43:17)
[GCC 5.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import requests
>>>
Not sure what to do (other than setting os.environ['LD_LIBRARY_PATH'] and spawning a new python process or something equally ugly) if you can only do things within python.
... View more