Splunk Dev

How to correct Splunk SDK Python syntax error?

erick_costa
Path Finder

Python 2.4.3
Splunk 6

Error:

/splunklib/client.py", line 196
return entries if isinstance(entries, list) else [entries]
^
SyntaxError: invalid syntax

What should I do?

Tags (3)
0 Karma

martin_mueller
SplunkTrust
SplunkTrust

The if expression was introduced in Python 2.5.

Get Updates on the Splunk Community!

Celebrating the Winners of the ‘Splunk Build-a-thon’ Hackathon!

We are thrilled to announce the winners of the Splunk Build-a-thon, our first-ever hackathon dedicated to ...

Why You Should Register for Splunk University at .conf25

Level up before .conf25 even begins Splunk University is back in Boston, September 6–8, and it’s your chance ...

Building Splunk proficiency is a marathon, not a sprint

Building Splunk skills is a lot like training for a marathon. It’s about consistent progress, celebrating ...