Developing for Splunk Enterprise

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

Roy99
Builder

@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
*NEW* Splunk Love Promo!
Snag a $25 Visa Gift Card for Giving Your Review!

It's another Splunk Love Special! For a limited time, you can review one of our select Splunk products through Gartner Peer Insights and receive a $25 Visa gift card!

Review:





Or Learn More in Our Blog >>