<?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: How to debug the sum.py sdk example command from the command line? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/How-to-debug-the-sum-py-sdk-example-command-from-the-command/m-p/150939#M2076</link>
    <description>&lt;P&gt;Ah, I just found that the python commands reloads every time you do a search, so no need to have the command line example work.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Oct 2014 09:01:06 GMT</pubDate>
    <dc:creator>hansj</dc:creator>
    <dc:date>2014-10-07T09:01:06Z</dc:date>
    <item>
      <title>How to debug the sum.py sdk example command from the command line?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-debug-the-sum-py-sdk-example-command-from-the-command/m-p/150938#M2075</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;For debugging I want to run my custom search commands from the command line.&lt;/P&gt;

&lt;P&gt;The generatehello.py sdk example command runs fine from the command line and produces the results it should: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$ python generatehello.py __EXECUTE__ count=5 &amp;lt; /dev/null. 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, I am having trouble running the sum.py command the same way:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;python sum.py __EXECUTE__ total=lines linecount &amp;lt; /dev/null
ERROR
"TypeError at ""/home/hansj/dev/splunk-sdk-python-master/splunklib/searchcommands/splunk_csv/dict_reader.py"", line 38 :  'NoneType' object is not iterable"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I guess the sum command requires an event stream, perhaps also for debugging, and if such, how does one go about debugging that?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Hans J.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Oct 2014 11:34:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-debug-the-sum-py-sdk-example-command-from-the-command/m-p/150938#M2075</guid>
      <dc:creator>hansj</dc:creator>
      <dc:date>2014-10-03T11:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug the sum.py sdk example command from the command line?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-debug-the-sum-py-sdk-example-command-from-the-command/m-p/150939#M2076</link>
      <description>&lt;P&gt;Ah, I just found that the python commands reloads every time you do a search, so no need to have the command line example work.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Oct 2014 09:01:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-debug-the-sum-py-sdk-example-command-from-the-command/m-p/150939#M2076</guid>
      <dc:creator>hansj</dc:creator>
      <dc:date>2014-10-07T09:01:06Z</dc:date>
    </item>
  </channel>
</rss>

