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!

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...

Cloud Platform & Enterprise: Classic Dashboard Export Feature Deprecation

As of Splunk Cloud Platform 9.3.2408 and Splunk Enterprise 9.4, classic dashboard export features are now ...

Explore the Latest Educational Offerings from Splunk (November Releases)

At Splunk Education, we are committed to providing a robust learning experience for all users, regardless of ...