splunk-sdk-python icon indicating copy to clipboard operation
splunk-sdk-python copied to clipboard

Splunk SDK results.py requires deprecation.py - when will a release fix this issue?

Open gjanders opened this issue 6 months ago • 3 comments

Describe the bug In all current releases of the SDK including 2.1.1, there is an issue with using results.py. The results.py requires deprecation.py which is not bundled in the SDK.

Pull request https://github.com/splunk/splunk-sdk-python/pull/670 fixes it, issue https://github.com/splunk/splunk-sdk-python/issues/572 refers to it, but there is no 2.1.2 release to fix the issue.

To Reproduce Download python SDK from https://github.com/splunk/splunk-sdk-python/releases/tag/2.1.1 Upload splunklib directory to a server: splunk cmd python results.py

Is enough to re-produce the issue.

Expected behavior deprecation.py should be included in the SDK, or removed from the results.py, this appears to be fixed in the develop branch.

SDK (please complete the following information): 2.1.1, 2.1.0

Additional context Refer to https://github.com/splunk/splunk-sdk-python/issues/572

I was advised that "pip install" will work as expected, but historically I've just used the release without an issue prior to 2.1.0, 2.1.1

gjanders avatar May 08 '26 00:05 gjanders

I second this

TwilightMercy avatar May 08 '26 06:05 TwilightMercy

Release is going to happen this month, but just copying the SDK without pip install is not generally a thing we support.

mateusz834 avatar May 08 '26 13:05 mateusz834

Refer to https://github.com/splunk/splunk-sdk-python#packaging-your-app

mateusz834 avatar May 08 '26 13:05 mateusz834