We are trying to install the Splunk Python SDK, and getting errors. We execute:
python setup.py install Traceback (most recent call last): File "setup.py", line 17, in from setuptools import setup, Command ImportError: No module named setuptools
We are running this as root, on a server with Splunk 6.4.1 installed in /apps/splunk directory. Can someone help us?
The Python SDK uses setuptools as part of the install process. You'll need to use whatever package manager (yum, dpkg, etc) to install setuptools or alternatively download and install by hand if you're not using the Python install provided by your OS.
For instance on RHEL/CentOS
yum -y install python-setuptools
Once setuptools is installed the Python SDK should install with no issues.
If I'm following this correctly, the point is that if you're using the SDK you are using a system that doesn't have Splunk installed on it and therefore using standalone python. I could be misunderstanding though...