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!

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 ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...