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!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...