<?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 Python Script error - ImportError: No module named azure.keyvault in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Python-Script-error-ImportError-No-module-named-azure/m-p/442060#M95053</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I am trying to import azure.keyvault through Splunk script input, but i am getting the following error - ImportError:&amp;nbsp;No&amp;nbsp;module&amp;nbsp;named&amp;nbsp;azure.keyvault. &lt;/P&gt;

&lt;P&gt;Initially i indexed events via visual studio code editor, where i installed azure.keyvault using command -pip install azure-keyvault. &lt;/P&gt;

&lt;P&gt;Now i am trying to run the python code as Splunk script input and getting the error - no module found&lt;/P&gt;

&lt;P&gt;I copied the azure SDK for python folders from python(which i installed) sitepackages and placed it under splunk_home/python2.7/Lib/sitepackages/ and restarted Splunk, but still it didnt work&lt;/P&gt;

&lt;P&gt;Myscript inculdes below lines&lt;/P&gt;

&lt;P&gt;from&amp;nbsp;azure.keyvault&amp;nbsp;import&amp;nbsp;KeyVaultClient, KeyVaultAuthentication&lt;BR /&gt;
from&amp;nbsp;azure.common.credentials&amp;nbsp;import&amp;nbsp;ServicePrincipalCredentials &lt;/P&gt;

&lt;P&gt;Please provide ur inputs&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jun 2019 07:19:12 GMT</pubDate>
    <dc:creator>bhuvanabala</dc:creator>
    <dc:date>2019-06-26T07:19:12Z</dc:date>
    <item>
      <title>Splunk Python Script error - ImportError: No module named azure.keyvault</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Python-Script-error-ImportError-No-module-named-azure/m-p/442060#M95053</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I am trying to import azure.keyvault through Splunk script input, but i am getting the following error - ImportError:&amp;nbsp;No&amp;nbsp;module&amp;nbsp;named&amp;nbsp;azure.keyvault. &lt;/P&gt;

&lt;P&gt;Initially i indexed events via visual studio code editor, where i installed azure.keyvault using command -pip install azure-keyvault. &lt;/P&gt;

&lt;P&gt;Now i am trying to run the python code as Splunk script input and getting the error - no module found&lt;/P&gt;

&lt;P&gt;I copied the azure SDK for python folders from python(which i installed) sitepackages and placed it under splunk_home/python2.7/Lib/sitepackages/ and restarted Splunk, but still it didnt work&lt;/P&gt;

&lt;P&gt;Myscript inculdes below lines&lt;/P&gt;

&lt;P&gt;from&amp;nbsp;azure.keyvault&amp;nbsp;import&amp;nbsp;KeyVaultClient, KeyVaultAuthentication&lt;BR /&gt;
from&amp;nbsp;azure.common.credentials&amp;nbsp;import&amp;nbsp;ServicePrincipalCredentials &lt;/P&gt;

&lt;P&gt;Please provide ur inputs&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 07:19:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Python-Script-error-ImportError-No-module-named-azure/m-p/442060#M95053</guid>
      <dc:creator>bhuvanabala</dc:creator>
      <dc:date>2019-06-26T07:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Python Script error - ImportError: No module named azure.keyvault</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Python-Script-error-ImportError-No-module-named-azure/m-p/442061#M95054</link>
      <description>&lt;P&gt;It is possible that when you ran the pip install command the azure-keyvault module got installed in the directories pertaining to the Linux system version of Python and not the Splunk version of Python. When I have needed modules that aren't in the Splunk Python I add the module to the bin folder of my app so that it's part of the app. Installing/placing the module in Splunk's Python means that when you upgrade Splunk the module could get removed.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 12:32:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Python-Script-error-ImportError-No-module-named-azure/m-p/442061#M95054</guid>
      <dc:creator>snowmizer</dc:creator>
      <dc:date>2019-06-26T12:32:50Z</dc:date>
    </item>
  </channel>
</rss>

