Splunk Dev

Splunk-sdk-python installation failed on windows 7 64-bit

anjanikumar
Engager

While trying to install splunk-sdk-python ON Windows 7 64-bit. I have followed the approaches suggested in http://dev.splunk.com/view/python-sdk/SP-CAAAEDG
1. Using pip on windows.
Command used: python.exe -m pip install splunk-sdk-python
Error: print "Could not import coverage. Please install it and try again"
SyntaxError: Missing parentheses in call to 'print'.
2. Installing Python egg from pip.
Same error persists.
3. Cloning Splunk-sdk-python from git.
After downloading the zip from github and extracting it.
Running the command: python setup.py throws the same error.
splunk-sdk-python error
Please help me in resolving the above issue.

0 Karma

k_harini
Communicator

Were you able to resolve this? I'm facing same issue 😞

0 Karma

joao_amorim
Communicator

@k_harini Just install Python version 2.7.x instead of Python version 3.x.

anshanno
Path Finder

Python
The Splunk SDK for Python requires Python 2.6 or later. At this time, Python 3 is not supported.

SOURCE

anshanno
Path Finder

I guess I don't have enough rep to post links? Anyway, if you read the requirements you will see my answer posted above 🙂

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...