<?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: Error when import numpy in my script ? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Error-when-import-numpy-in-my-script/m-p/223493#M2892</link>
    <description>&lt;P&gt;It's possible that something else you imported prior has already imported a module named add_newdocs.&lt;/P&gt;

&lt;P&gt;What happens if you remove previous imports in test.py?&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jan 2017 03:17:56 GMT</pubDate>
    <dc:creator>jkat54</dc:creator>
    <dc:date>2017-01-12T03:17:56Z</dc:date>
    <item>
      <title>Error when import numpy in my script ?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Error-when-import-numpy-in-my-script/m-p/223490#M2889</link>
      <description>&lt;P&gt;i installed python Splunk_SA_Scientific_Python_linux_x86_64 to import numpy module and follow the instruction in readme file but i got this error :&lt;BR /&gt;
Traceback (most recent call last):&lt;BR /&gt;
  File "test.py", line 4, in &lt;BR /&gt;
    import numpy as np &lt;BR /&gt;
  File "/splunk/splunk/etc/apps/Splunk_SA_Scientific_Python_linux_x86_64/bin/linux_x86_64/lib/python2.7/site-packages/numpy/&lt;STRONG&gt;init&lt;/STRONG&gt;.py", line 180, in &lt;BR /&gt;
    from . import add_newdocs&lt;BR /&gt;
ImportError: cannot import name add_newdocs&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:19:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Error-when-import-numpy-in-my-script/m-p/223490#M2889</guid>
      <dc:creator>heshamzaid</dc:creator>
      <dc:date>2020-09-29T12:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error when import numpy in my script ?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Error-when-import-numpy-in-my-script/m-p/223491#M2890</link>
      <description>&lt;P&gt;Do you have add_newdocs.py in this directory?  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; /splunk/splunk/etc/apps/Splunk_SA_Scientific_Python_linux_x86_64/bin/linux_x86_64/lib/python2.7/site-packages/numpy/
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If not, that's the cause.&lt;/P&gt;

&lt;P&gt;Another possibility is that maybe these files are owned by someone other than the splunk user?  The below might fix it:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; chown -Rf splunk.  /splunk/splunk/etc/apps/Splunk_SA_Scientific_Python_linux_x86_64/
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Jan 2017 16:37:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Error-when-import-numpy-in-my-script/m-p/223491#M2890</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2017-01-10T16:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error when import numpy in my script ?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Error-when-import-numpy-in-my-script/m-p/223492#M2891</link>
      <description>&lt;P&gt;i have the add_newdocs.py file in /splunk/splunk/etc/apps/Splunk_SA_Scientific_Python_linux_x86_64/bin/linux_x86_64/lib/python2.7/site-packages/numpy&lt;/P&gt;

&lt;P&gt;and its own to the splunk user &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:21:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Error-when-import-numpy-in-my-script/m-p/223492#M2891</guid>
      <dc:creator>heshamzaid</dc:creator>
      <dc:date>2020-09-29T12:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error when import numpy in my script ?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Error-when-import-numpy-in-my-script/m-p/223493#M2892</link>
      <description>&lt;P&gt;It's possible that something else you imported prior has already imported a module named add_newdocs.&lt;/P&gt;

&lt;P&gt;What happens if you remove previous imports in test.py?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2017 03:17:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Error-when-import-numpy-in-my-script/m-p/223493#M2892</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2017-01-12T03:17:56Z</dc:date>
    </item>
  </channel>
</rss>

