<?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 Splunk SDK for Python insane error need help in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-SDK-for-Python-insane-error-need-help/m-p/432059#M7736</link>
    <description>&lt;P&gt;I am looking at the examples/abc of the python sdk and get an error&lt;BR /&gt;&lt;BR /&gt;
"connection = six.moves.http_client.HTTPSConnection(HOST, PORT)&lt;BR /&gt;
NameError: name 'six' is not defined"&lt;/P&gt;

&lt;P&gt;IT IS DEFINED?!&lt;BR /&gt;
import splunklib.six.moves.http_client&lt;/P&gt;</description>
    <pubDate>Tue, 28 Aug 2018 00:46:33 GMT</pubDate>
    <dc:creator>tesme</dc:creator>
    <dc:date>2018-08-28T00:46:33Z</dc:date>
    <item>
      <title>Splunk SDK for Python insane error need help</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-SDK-for-Python-insane-error-need-help/m-p/432059#M7736</link>
      <description>&lt;P&gt;I am looking at the examples/abc of the python sdk and get an error&lt;BR /&gt;&lt;BR /&gt;
"connection = six.moves.http_client.HTTPSConnection(HOST, PORT)&lt;BR /&gt;
NameError: name 'six' is not defined"&lt;/P&gt;

&lt;P&gt;IT IS DEFINED?!&lt;BR /&gt;
import splunklib.six.moves.http_client&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2018 00:46:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-SDK-for-Python-insane-error-need-help/m-p/432059#M7736</guid>
      <dc:creator>tesme</dc:creator>
      <dc:date>2018-08-28T00:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk SDK for Python insane error need help</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-SDK-for-Python-insane-error-need-help/m-p/432060#M7737</link>
      <description>&lt;P&gt;It's not quite defined.... &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;import splunklib.six.moves.http_client
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;makes &lt;CODE&gt;splunklib.six.moves.http_client&lt;/CODE&gt; available but that's very different than &lt;CODE&gt;six.moves.http_client&lt;/CODE&gt; (which is missing the leading &lt;CODE&gt;splunklib.&lt;/CODE&gt; part)&lt;/P&gt;

&lt;P&gt;As it seems they've been fairly consistent here in their invocation, I would alter that import statement like so: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;import splunklib.six as six
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thus making &lt;CODE&gt;six&lt;/CODE&gt; available in as a name, and thus everything resolves properly&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2018 05:00:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-SDK-for-Python-insane-error-need-help/m-p/432060#M7737</guid>
      <dc:creator>acharlieh</dc:creator>
      <dc:date>2018-08-28T05:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk SDK for Python insane error need help</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-SDK-for-Python-insane-error-need-help/m-p/432061#M7738</link>
      <description>&lt;P&gt;Hi @tesme, Did the answer below solve your question? If yes, please click “Accept” directly below the answer to resolve the post. If not, please comment with more information if you are still having issues. Thanks!!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2018 21:50:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-SDK-for-Python-insane-error-need-help/m-p/432061#M7738</guid>
      <dc:creator>mstjohn_splunk</dc:creator>
      <dc:date>2018-08-28T21:50:59Z</dc:date>
    </item>
  </channel>
</rss>

