Splunk Dev

How to make splunklib compatible with Python 3?

davietch
Path Finder

Hello,

I am coding a custom command and I am using splunklib to interact with Splunk SDK.

I am also using the Splunk Platform Upgrade Readiness App that allows me to spot if my code is compatible with Python 3.

My issue is that this app tells me that some python files in the splunklib are only compatible with Python 2 runtime. I've updated the Splunklib to the very latest release...

You can see the result of the app scaning below:splunklibpython2.jpg

Is this normal ? is there a way to make it compatible with Python 3?

Labels (2)
0 Karma
1 Solution

tpavlik_splunk
Splunk Employee
Splunk Employee

Hi @davietch we have confirmed that splunklib is Python 3 compatible and that these Warnings are erroneous. Until the Splunk Platform Upgrade Readiness App is updated to prevent these Warnings they can be safely ignored, thanks for bringing this to our attention.

View solution in original post

0 Karma

aditrifan
New Member

There is no update? I am facing the same issue. 

0 Karma

tpavlik_splunk
Splunk Employee
Splunk Employee

Hi @davietch we have confirmed that splunklib is Python 3 compatible and that these Warnings are erroneous. Until the Splunk Platform Upgrade Readiness App is updated to prevent these Warnings they can be safely ignored, thanks for bringing this to our attention.

0 Karma

davietch
Path Finder

No one? 😥

0 Karma
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...