Closed yaleman closed 6 months ago
Since Python that is bundled with the Splunk Enterprise installation doesn't contain deprecation
, how should this requirement be satisfied when using the SDK in a Splunk app? Similarly, packaging
is also not bundled with Splunk Enterprise and is a dependency of deprecation
.
2.0.1 was released today with the update from the above PR.
When I try to:
from splunklib.results import ResultsReader
in my modular input (I need splunk to connect and get data from antoer splunk via api)
i get error like:
`Traceback (most recent call last):
File "../etc/apps/show_activity_analyser/bin/get_audit_GDI.py", line 9, in
That sure does look like you're running an old version
i know. That's why i think I'm missing sth "easy". But when I look into my changelog.md:
# Splunk Enterprise SDK for Python Changelog
## Version 2.0.2
### Minor changes
* Added six.py file back
Try:
import splunklib
print(splunklib.version) dir(splunklib)
sorry I'm on mobile. Maybe your code is using a cached version somewhere
i know. That's why i think I'm missing sth "easy".
The only other thing I could really suggest is installing the missing package or commenting out the offending code. There's no easy wins when there's a missing dependency.
(edit: removed some formatting)
Describe the bug
The package depends on
deprecation
but doesn't specify it as a dependency.To Reproduce Steps to reproduce the behaviour:
Expected behavior
Functional dependencies to be specified on install of the package.
Logs or Screenshots
Splunk (please complete the following information):
n/1
SDK (please complete the following information):
Additional context
The
tox
tests explicitly install the dependencies, but this shouldn't be required, as theinstall_requires
option should be used in setuptools.This is the only non-core-python dependency required by the package.