<?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: Issue Executing Python Script on Windows UF in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Issue-Executing-Python-Script-on-Windows-UF/m-p/544037#M90809</link>
    <description>&lt;P&gt;Rather than jump through those (unsupported) hoops, why not replace the UF with a HF?&amp;nbsp; It comes with Python.&lt;/P&gt;</description>
    <pubDate>Tue, 16 Mar 2021 17:23:53 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2021-03-16T17:23:53Z</dc:date>
    <item>
      <title>Issue Executing Python Script on Windows UF</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Issue-Executing-Python-Script-on-Windows-UF/m-p/544012#M90803</link>
      <description>&lt;P&gt;I'm having an issue running a python script to generate the contents of an email body to splunk.&lt;/P&gt;&lt;P&gt;I've had to install a Windows UF to a Windows 10 workstation as local admin.&lt;/P&gt;&lt;P&gt;I've deployed a python script that works when I manually run it on the Workstation.&lt;/P&gt;&lt;P&gt;Since Splunk UFs don't come with Python, I downloaded Python separately and added an environmental variable and path. I consistantly get the following messages:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;Couldn&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN class="t"&gt;t&lt;/SPAN&gt; &lt;SPAN class="t"&gt;start&lt;/SPAN&gt; &lt;SPAN class="t"&gt;command&lt;/SPAN&gt;&lt;SPAN&gt; "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Python3.exe&lt;/SPAN&gt;&lt;SPAN&gt; "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;C:\Program&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Files\SplunkUniversalForwarder\bin\scripts\script1.py&lt;/SPAN&gt;&lt;SPAN&gt;""&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt; &lt;SPAN class="t"&gt;The&lt;/SPAN&gt; &lt;SPAN class="t"&gt;system&lt;/SPAN&gt; &lt;SPAN class="t"&gt;cannot&lt;/SPAN&gt; &lt;SPAN class="t"&gt;find&lt;/SPAN&gt; &lt;SPAN class="t"&gt;the&lt;/SPAN&gt; &lt;SPAN class="t"&gt;file&lt;/SPAN&gt; &lt;SPAN class="t"&gt;specified.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;Couldn&lt;SPAN&gt;'&lt;/SPAN&gt;t start command&lt;SPAN&gt; "&lt;/SPAN&gt;Python3.exe&lt;SPAN&gt; "&lt;/SPAN&gt;C:\Program Files\SplunkUniversalForwarder\etc\apps\custom-app\bin\script2&lt;SPAN&gt;""&lt;/SPAN&gt;: The system cannot find the file specified.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;I've tried:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN class="t"&gt;Adding PYTHONPATH to splunk-launch.conf for external&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="t"&gt;Adding .bat wrapper&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="t"&gt;Tried .cmd&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="t"&gt;Tried Powershell&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="t"&gt;Installing and deploying Splunk for Python Computing and adding the full path of python to the .bat files&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN class="t"&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/1406"&gt;@woodcock&lt;/a&gt;&amp;nbsp;do you have any suggestions? Anyone? Any suggestions?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 14:30:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Issue-Executing-Python-Script-on-Windows-UF/m-p/544012#M90803</guid>
      <dc:creator>dianasmith</dc:creator>
      <dc:date>2021-03-16T14:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Issue Executing Python Script on Windows UF</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Issue-Executing-Python-Script-on-Windows-UF/m-p/544037#M90809</link>
      <description>&lt;P&gt;Rather than jump through those (unsupported) hoops, why not replace the UF with a HF?&amp;nbsp; It comes with Python.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 17:23:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Issue-Executing-Python-Script-on-Windows-UF/m-p/544037#M90809</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-03-16T17:23:53Z</dc:date>
    </item>
  </channel>
</rss>

