<?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 pytz python package not working in splunk in Installation</title>
    <link>https://community.splunk.com/t5/Installation/pytz-python-package-not-working-in-splunk/m-p/453254#M8284</link>
    <description>&lt;P&gt;I have a python script which will acquire the data from the url and index that in splunk.&lt;/P&gt;

&lt;P&gt;Now i have included &lt;STRONG&gt;from pytz import timezone&lt;/STRONG&gt; in the script to get the local time of the timezone and passin that time as a input to the url.&lt;/P&gt;

&lt;P&gt;Now the issue is while i configured that script in the Splunk i am getting &lt;STRONG&gt;ImportError: No module named pytz&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Please help me to resolve this.&lt;/P&gt;</description>
    <pubDate>Fri, 20 Jul 2018 17:47:41 GMT</pubDate>
    <dc:creator>Rajkumarkbm2</dc:creator>
    <dc:date>2018-07-20T17:47:41Z</dc:date>
    <item>
      <title>pytz python package not working in splunk</title>
      <link>https://community.splunk.com/t5/Installation/pytz-python-package-not-working-in-splunk/m-p/453254#M8284</link>
      <description>&lt;P&gt;I have a python script which will acquire the data from the url and index that in splunk.&lt;/P&gt;

&lt;P&gt;Now i have included &lt;STRONG&gt;from pytz import timezone&lt;/STRONG&gt; in the script to get the local time of the timezone and passin that time as a input to the url.&lt;/P&gt;

&lt;P&gt;Now the issue is while i configured that script in the Splunk i am getting &lt;STRONG&gt;ImportError: No module named pytz&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Please help me to resolve this.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 17:47:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/pytz-python-package-not-working-in-splunk/m-p/453254#M8284</guid>
      <dc:creator>Rajkumarkbm2</dc:creator>
      <dc:date>2018-07-20T17:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: pytz python package not working in splunk</title>
      <link>https://community.splunk.com/t5/Installation/pytz-python-package-not-working-in-splunk/m-p/453255#M8285</link>
      <description>&lt;P&gt;Hi @Rajkumarkbm2&lt;/P&gt;

&lt;P&gt;Have a look at this answer,&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/484369/how-can-i-add-python-modules-to-the-splunk-environ-1.html"&gt;https://answers.splunk.com/answers/484369/how-can-i-add-python-modules-to-the-splunk-environ-1.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Usually, Splunk uses the python Interpreter &amp;amp; libraries which comes with it &amp;amp; resides in $SplunkHome$/lib/python2.7/site-packages.&lt;/P&gt;

&lt;P&gt;&amp;amp; also you can use sys.path.append in script to import modules into your python file from different locations.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 18:54:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/pytz-python-package-not-working-in-splunk/m-p/453255#M8285</guid>
      <dc:creator>PowerPacked</dc:creator>
      <dc:date>2018-07-20T18:54:13Z</dc:date>
    </item>
  </channel>
</rss>

