<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Splunk custom command ERROR ValueError: I/O operation on closed file in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-custom-command-ERROR-ValueError-I-O-operation-on-closed/m-p/759332#M12105</link>
    <description>&lt;P&gt;I'd take a guess that it's an issue with a python version incompatibility. 9.3 uses python 3.9 by default whereas earlier 9.x used 3.7 I think.&lt;/P&gt;&lt;P&gt;With 8.2 you probably could have still gotten away with python 2 so if your command used this it shouldn't work properly with Splunk 9.3.&lt;/P&gt;</description>
    <pubDate>Sun, 15 Mar 2026 21:43:57 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2026-03-15T21:43:57Z</dc:date>
    <item>
      <title>Splunk custom command ERROR ValueError: I/O operation on closed file</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-custom-command-ERROR-ValueError-I-O-operation-on-closed/m-p/759328#M12104</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've a custom command worked well with 8.2 and failing in 9.3 with the following error. Tried with both protocol version 1 and 2, i.e Intersplunk and Splunk SDK ways.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sharing of your experience and possible fix for this error would be much appreciated.&amp;nbsp; thank you in advacne.&lt;/P&gt;&lt;PRE&gt;03-15-2026 17:31:06.388 ERROR ScriptRunner [3954753 phase_1] - stderr from '/opt/splunk/bin/python3.9 /opt/splunk/etc/apps/botcop/bin/nndetailscmd.py':  Traceback (most recent call last):
03-15-2026 17:31:06.388 ERROR ScriptRunner [3954753 phase_1] - stderr from '/opt/splunk/bin/python3.9 /opt/splunk/etc/apps/botcop/bin/nndetailscmd.py':    File "/opt/splunk/etc/apps/botcop/bin/nndetailscmd.py", line 11, in &amp;lt;module&amp;gt;
03-15-2026 17:31:06.388 ERROR ScriptRunner [3954753 phase_1] - stderr from '/opt/splunk/bin/python3.9 /opt/splunk/etc/apps/botcop/bin/nndetailscmd.py':      results,dummyresults,settings = splunk.Intersplunk.getOrganizedResults()
03-15-2026 17:31:06.388 ERROR ScriptRunner [3954753 phase_1] - stderr from '/opt/splunk/bin/python3.9 /opt/splunk/etc/apps/botcop/bin/nndetailscmd.py':    File "/opt/splunk/lib/python3.9/site-packages/splunk/Intersplunk.py", line 359, in getOrganizedResults
03-15-2026 17:31:06.388 ERROR ScriptRunner [3954753 phase_1] - stderr from '/opt/splunk/bin/python3.9 /opt/splunk/etc/apps/botcop/bin/nndetailscmd.py':      results = readResults(input_str, settings)
03-15-2026 17:31:06.388 ERROR ScriptRunner [3954753 phase_1] - stderr from '/opt/splunk/bin/python3.9 /opt/splunk/etc/apps/botcop/bin/nndetailscmd.py':    File "/opt/splunk/lib/python3.9/site-packages/splunk/Intersplunk.py", line 275, in readResults
03-15-2026 17:31:06.388 ERROR ScriptRunner [3954753 phase_1] - stderr from '/opt/splunk/bin/python3.9 /opt/splunk/etc/apps/botcop/bin/nndetailscmd.py':      input_buf = TextIOWrapper(sys.stdin.buffer, encoding='utf-8')
03-15-2026 17:31:06.388 ERROR ScriptRunner [3954753 phase_1] - stderr from '/opt/splunk/bin/python3.9 /opt/splunk/etc/apps/botcop/bin/nndetailscmd.py':  ValueError: I/O operation on closed file&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Mar 2026 17:44:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-custom-command-ERROR-ValueError-I-O-operation-on-closed/m-p/759328#M12104</guid>
      <dc:creator>Bhupal</dc:creator>
      <dc:date>2026-03-15T17:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk custom command ERROR ValueError: I/O operation on closed file</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-custom-command-ERROR-ValueError-I-O-operation-on-closed/m-p/759332#M12105</link>
      <description>&lt;P&gt;I'd take a guess that it's an issue with a python version incompatibility. 9.3 uses python 3.9 by default whereas earlier 9.x used 3.7 I think.&lt;/P&gt;&lt;P&gt;With 8.2 you probably could have still gotten away with python 2 so if your command used this it shouldn't work properly with Splunk 9.3.&lt;/P&gt;</description>
      <pubDate>Sun, 15 Mar 2026 21:43:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-custom-command-ERROR-ValueError-I-O-operation-on-closed/m-p/759332#M12105</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2026-03-15T21:43:57Z</dc:date>
    </item>
  </channel>
</rss>

