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 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

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 ...