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!

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...