Splunk Dev

Hello experts, my private splunk app is showing fail in python readiness app. But, My codes are compatible for python 3

Ashwini_5
Explorer

My private splunk app is showing fail in python readiness app. But, My codes are compatible for python 3 with splunk 8.2.1 version. Below is the issue which is showing. I have tried updating server.conf file with

[general]

python version =python3. But, this doesn't worked.  Can someone share your suggestion . 

 

Private Apps

ABC
Private App
Fail
Details
This app is not compatible with Python 3.
Application Path
/opt/splunk/etc/apps/ABC
Required Action
Update this app or uninstall it. If you do nothing, the app will fail.

Dismiss App

Email Result

Export Result
Issue:
File path designates Python 2 library.

Labels (1)
Tags (1)
0 Karma

Ashwini_5
Explorer

Thanks for your reply. Issue resolved after adding below line in script. 

from __future__ import print_function 

0 Karma

Roy_9
Motivator

@Ashwini_5 try the app vetting using the splunk add-on builder latest version, It will do all the pre checks and will throw you any errors with lines incase if there is any python incompatibility issues.

That should help with your issue.

Happy Splunking

sloshburch
Splunk Employee
Splunk Employee

Hi! Is it possible to add a screen shot? I thought the private apps provided more detail on the specific thing that is failing. I'm wondering if it's slightly hidden by the UI and so I'm optimistic a screenshot could help us see more details.

0 Karma
Get Updates on the Splunk Community!

Announcing the Expansion of the Splunk Academic Alliance Program

The Splunk Community is more than just an online forum — it’s a network of passionate users, administrators, ...

Learn Splunk Insider Insights, Do More With Gen AI, & Find 20+ New Use Cases You Can ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Buttercup Games: Further Dashboarding Techniques (Part 7)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...