<?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 Why does slim validate complain about undefined setting python.version even though it is valid? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Why-does-slim-validate-complain-about-undefined-setting-python/m-p/539911#M9691</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am trying to use the slim utility for validating and packaging my app. When running &lt;FONT face="courier new,courier"&gt;slim validate&lt;/FONT&gt;, it complains about&amp;nbsp;undefined setting &lt;FONT face="courier new,courier"&gt;python.version&lt;/FONT&gt; in &lt;FONT face="courier new,courier"&gt;alert_actions.conf&lt;/FONT&gt; even though it is clearly documented:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.1.2/Admin/Alertactionsconf" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/8.1.2/Admin/Alertactionsconf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Did I miss something?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;slim validate: Validating app at "&amp;lt;My App name&amp;gt;"...
slim validate: [WARNING] /path/to/&amp;lt;My App name&amp;gt;/default/alert_actions.conf, line 2: Undefined setting in stanza [default]: python.version&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Apr 2022 19:01:05 GMT</pubDate>
    <dc:creator>citruz</dc:creator>
    <dc:date>2022-04-25T19:01:05Z</dc:date>
    <item>
      <title>Why does slim validate complain about undefined setting python.version even though it is valid?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Why-does-slim-validate-complain-about-undefined-setting-python/m-p/539911#M9691</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am trying to use the slim utility for validating and packaging my app. When running &lt;FONT face="courier new,courier"&gt;slim validate&lt;/FONT&gt;, it complains about&amp;nbsp;undefined setting &lt;FONT face="courier new,courier"&gt;python.version&lt;/FONT&gt; in &lt;FONT face="courier new,courier"&gt;alert_actions.conf&lt;/FONT&gt; even though it is clearly documented:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.1.2/Admin/Alertactionsconf" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/8.1.2/Admin/Alertactionsconf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Did I miss something?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;slim validate: Validating app at "&amp;lt;My App name&amp;gt;"...
slim validate: [WARNING] /path/to/&amp;lt;My App name&amp;gt;/default/alert_actions.conf, line 2: Undefined setting in stanza [default]: python.version&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 19:01:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Why-does-slim-validate-complain-about-undefined-setting-python/m-p/539911#M9691</guid>
      <dc:creator>citruz</dc:creator>
      <dc:date>2022-04-25T19:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Why does slim validate complain about undefined setting python.version even though it is valid?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Why-does-slim-validate-complain-about-undefined-setting-python/m-p/541050#M9692</link>
      <description>&lt;P&gt;No, you didn't miss anything.&lt;/P&gt;&lt;P&gt;The splunk-packaging-toolkit (&lt;STRONG&gt;slim&lt;/STRONG&gt;), &lt;STRONG&gt;splunk-appinspect&lt;/STRONG&gt;, and the Splunk Python SDK are not perfectly aligned yet.&lt;/P&gt;&lt;P data-unlink="true"&gt;If you want slim to work better, you could update the files in ./venv/Lib/site-packages/slim/config/conf-specs/*.conf.spec to what you find in your target Splunk version's config files. If you don't have a Splunk installation, replace commands.conf.spec and others with a current version from Splunk docs (&lt;A href="https://docs.splunk.com/Documentation/Splunk/Latest/Admin/Commandsconf#commands.conf.spec" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/Latest/Admin/Commandsconf#commands.conf.spec&lt;/A&gt;).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some of the other issues I've seen:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Options must be provided before the command &lt;STRIKE&gt;documented &lt;STRONG&gt;slim&lt;/STRONG&gt; options may not exist (e.g. &lt;STRONG&gt;--quiet&lt;/STRONG&gt;)&lt;/STRIKE&gt;&lt;/LI&gt;&lt;LI&gt;Python SDK doesn't pass &lt;STRONG&gt;splunk-appinspect&amp;nbsp;&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;splunk-appinspect&amp;nbsp;&lt;/STRONG&gt;and &lt;STRONG&gt;slim&lt;/STRONG&gt; raise conflicting errors&lt;/LI&gt;&lt;LI&gt;no &lt;STRONG&gt;slim&lt;/STRONG&gt; option to set the location of inspect.yml&lt;/LI&gt;&lt;LI&gt;no option to return a non-zero code if any validations fail in &lt;STRONG&gt;splunk-appinspect&lt;/STRONG&gt; or &lt;STRONG&gt;slim&lt;/STRONG&gt;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I'd recommend packaging the app with &lt;STRONG&gt;slim&lt;/STRONG&gt; and using &lt;STRONG&gt;splunk-appinspect&amp;nbsp;&lt;/STRONG&gt;&amp;nbsp;to validate, rather than using the validation in &lt;STRONG&gt;slim&lt;/STRONG&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 17:31:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Why-does-slim-validate-complain-about-undefined-setting-python/m-p/541050#M9692</guid>
      <dc:creator>malvidin</dc:creator>
      <dc:date>2022-05-04T17:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: slim validate complains about undefined setting python.version even though it is valid</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Why-does-slim-validate-complain-about-undefined-setting-python/m-p/541136#M9693</link>
      <description>&lt;P&gt;Just to add to the list of issues:&lt;/P&gt;&lt;P&gt;Slim and AppInspect cannot even be installed in the same venv because the former depends on&amp;nbsp;future&amp;gt;=0.18.2 while the latter depends on&amp;nbsp;future==0.17.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 08:36:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Why-does-slim-validate-complain-about-undefined-setting-python/m-p/541136#M9693</guid>
      <dc:creator>citruz</dc:creator>
      <dc:date>2021-02-24T08:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: slim validate complains about undefined setting python.version even though it is valid</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Why-does-slim-validate-complain-about-undefined-setting-python/m-p/595287#M9694</link>
      <description>&lt;P&gt;I am still experiencing this same issue, does anyone have any ideas for this? I think we may be able to do something with in the `README/input.conf.spec`? But any guidance would be much appreciated&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 18:52:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Why-does-slim-validate-complain-about-undefined-setting-python/m-p/595287#M9694</guid>
      <dc:creator>thehappydinoa</dc:creator>
      <dc:date>2022-04-25T18:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: slim validate complains about undefined setting python.version even though it is valid</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Why-does-slim-validate-complain-about-undefined-setting-python/m-p/595634#M9695</link>
      <description>&lt;P&gt;Hey there!&lt;/P&gt;&lt;P&gt;There's no official solution right now, probably the best course of action for now is to follow the recommendation of updating the spec files within the slim installation path. This is a currently known issue but there's no ETA on a fix.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 18:43:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Why-does-slim-validate-complain-about-undefined-setting-python/m-p/595634#M9695</guid>
      <dc:creator>mcmaster</dc:creator>
      <dc:date>2022-04-27T18:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: slim validate complains about undefined setting python.version even though it is valid</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Why-does-slim-validate-complain-about-undefined-setting-python/m-p/595641#M9696</link>
      <description>&lt;P&gt;Hey, I was actually able to fix it by adding the following lines to the `Splunk_TA_my_addon/README/input.conf.spec`. Then I stopped getting that warning from slim.&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;[my_input://&amp;lt;name&amp;gt;]&lt;BR /&gt;# ... my other values&lt;BR /&gt;start_by_shell = &amp;lt;bool&amp;gt;&lt;BR /&gt;python.version = &amp;lt;string&amp;gt;&lt;BR /&gt;interval = &amp;lt;integer&amp;gt;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 18:48:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Why-does-slim-validate-complain-about-undefined-setting-python/m-p/595641#M9696</guid>
      <dc:creator>thehappydinoa</dc:creator>
      <dc:date>2022-04-27T18:48:38Z</dc:date>
    </item>
  </channel>
</rss>

