-
Notifications
You must be signed in to change notification settings - Fork 378
Closed
Description
I think I stumbled onto a bug in 1.6.12 that impacts at least 7.1.4 and 7.3.0. It seems to be related to python 2 vs 3 and athe TextIOWrapper around the output stream. The initial registration seems to be fine (--scheme
), but whenever the script is run to collect data that's when it fails.
When I downgrade splunk-sdk version to 1.6.11 my modular input (TA) works fine again.
Here's the traceback from the 1.6.12 version from a local 7.3 instance running on a Mac:
Traceback (most recent call last):
File "/Users/lalleman/splunk73/splunk/etc/apps/TA-oam_dms/bin/OAM_DMS.py", line 422, in <module>
sys.exit(OamDmsModularInput().run(sys.argv))
File "/Users/lalleman/splunk73/splunk/etc/apps/TA-oam_dms/bin/../lib/splunklib/modularinput/script.py", line 56, in run
return self.run_script(args, EventWriter(), sys.stdin)
File "/Users/lalleman/splunk73/splunk/etc/apps/TA-oam_dms/bin/../lib/splunklib/modularinput/event_writer.py", line 49, in __init__
self._out = TextIOWrapper(output)
AttributeError: 'file' object has no attribute 'readable'
Metadata
Metadata
Assignees
Labels
No labels