<?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 force Splunk to use Python 3 for our app? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-force-Splunk-to-use-Python-3-for-our-app/m-p/486421#M193686</link>
    <description>&lt;P&gt;We use Splunk 8. If i add python3 in server.conf everything works fine but i dont want to force python3 for the whole server, just for the app. &lt;/P&gt;</description>
    <pubDate>Tue, 12 May 2020 06:55:24 GMT</pubDate>
    <dc:creator>dgriffioen</dc:creator>
    <dc:date>2020-05-12T06:55:24Z</dc:date>
    <item>
      <title>How to force Splunk to use Python 3 for our app?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-force-Splunk-to-use-Python-3-for-our-app/m-p/486417#M193682</link>
      <description>&lt;P&gt;We build our own app that only works in Python 3. I would like to know how to force Splunk to use python 3 for this app. We don't want to ask users to change the system wide setting in server.conf.  The app adds a new input form to Splunk under local inputs. Below is the error i`m getting.&lt;/P&gt;

&lt;P&gt;"Unable to initialize modular input "appname" defined in the app "appname": Introspecting scheme=appApi: script running failed (exited with code 1).."&lt;/P&gt;

&lt;P&gt;I tried adding python.version = python3 in inputs.conf, app.conf and props.conf but that does not fix it. Any idea how to fix this? or can it only be fixed by making the script compatible with python2?&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2020 15:42:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-force-Splunk-to-use-Python-3-for-our-app/m-p/486417#M193682</guid>
      <dc:creator>dgriffioen</dc:creator>
      <dc:date>2020-05-04T15:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to force Splunk to use Python 3 for our app?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-force-Splunk-to-use-Python-3-for-our-app/m-p/486418#M193683</link>
      <description>&lt;P&gt;The file in which to put &lt;CODE&gt;python.version = python3&lt;/CODE&gt; depends on how your app uses Python.  See &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.3/Python3Migration/ChangesEnterprise#Python_interpreter_settings"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.3/Python3Migration/ChangesEnterprise#Python_interpreter_settings&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;Of course, changing a .conf file requires restarting Splunk for the change to take effect.&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2020 16:43:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-force-Splunk-to-use-Python-3-for-our-app/m-p/486418#M193683</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-05-04T16:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to force Splunk to use Python 3 for our app?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-force-Splunk-to-use-Python-3-for-our-app/m-p/486419#M193684</link>
      <description>&lt;P&gt;The app adds a new input form to Splunk under local inputs. Below is the error i`m getting. &lt;/P&gt;

&lt;P&gt;"Unable to initialize modular input "appname" defined in the app "appname": Introspecting scheme=appApi: script running failed (exited with code 1).." &lt;/P&gt;

&lt;P&gt;I tried adding python.version = python3 in inputs.conf, app.conf and props.conf but that does not fix it. Any idea how to fix this? or can it only be fixed by making the script compatible with python2?&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 08:45:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-force-Splunk-to-use-Python-3-for-our-app/m-p/486419#M193684</guid>
      <dc:creator>dgriffioen</dc:creator>
      <dc:date>2020-05-06T08:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to force Splunk to use Python 3 for our app?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-force-Splunk-to-use-Python-3-for-our-app/m-p/486420#M193685</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Is your splunk version 7 or 8?&lt;/P&gt;

&lt;P&gt;R. Ismo&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 20:56:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-force-Splunk-to-use-Python-3-for-our-app/m-p/486420#M193685</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-05-11T20:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to force Splunk to use Python 3 for our app?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-force-Splunk-to-use-Python-3-for-our-app/m-p/486421#M193686</link>
      <description>&lt;P&gt;We use Splunk 8. If i add python3 in server.conf everything works fine but i dont want to force python3 for the whole server, just for the app. &lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 06:55:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-force-Splunk-to-use-Python-3-for-our-app/m-p/486421#M193686</guid>
      <dc:creator>dgriffioen</dc:creator>
      <dc:date>2020-05-12T06:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to force Splunk to use Python 3 for our app?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-force-Splunk-to-use-Python-3-for-our-app/m-p/486422#M193687</link>
      <description>&lt;P&gt;Did this help?&lt;/P&gt;

&lt;P&gt;If your script is specified with #! /usr/bin/env python, then python.version will be ignored for coldToFrozen. Also note that for warmToCold, this is always how the Python script is specified, so there is no applicable python.version for warmToCold.&lt;/P&gt;

&lt;P&gt;So try to specify path to python3 on the shebang.&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 21:22:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-force-Splunk-to-use-Python-3-for-our-app/m-p/486422#M193687</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-05-12T21:22:36Z</dc:date>
    </item>
  </channel>
</rss>

