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!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

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

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...