Getting Data In

python2 to python 3

martinnepoleanw
New Member

We have two addon built by addon builder 1.0.1 and when we scan with python readiness app, these  addons are failing. We are running with splunk 8.1 and like to know if there is any way covert these addons to python3 without much rework.

Labels (3)
0 Karma

PickleRick
SplunkTrust
SplunkTrust

As with any script, the amount of work needed to convert python2 to python3 varies heavily on what python features are used in the script. Some scripts can probably be converted automaticaly, some need manual work. It's hard to make general asumptions.

What I'd try in the first place is check whether there are newer versions of the apps you use that are python3-compatible so you could just upgrade the app.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

The Python Readiness app will offer suggestions to make the scripts compatible with Python3.  After running a scan, click on the app then click on "Show Issues".

---
If this reply helps you, Karma would be appreciated.
0 Karma

martinnepoleanw
New Member

python readiness app is suggesting to update latest python sdk but we are already running with splunk 8.1.2 and the custom addon is working without any issue. Do we need to update the sdk.

 

 

 

0 Karma
Get Updates on the Splunk Community!

.conf24 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

(view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...