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!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...