<?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: Unable to import Python module in ArcMap in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/unable-to-import-python-module-in-arcmap/m-p/233318#M8024</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Phil,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you ever figure out what your problem was?&amp;nbsp; I am having a very similar problem, but I have no extra packages.&amp;nbsp; I am simply trying to import the arcpy package into the Python window in ArcMap or ArcCatalog , or run any processes that utilize numpy (Raster Calculator for instance), and I will get the error "ImportError: No module named numpy".&amp;nbsp; I can run/import these same processes/packages in IDLE and they work fine.&amp;nbsp; I'm not sure what the problem is.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance for any help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Josh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Jun 2013 20:41:01 GMT</pubDate>
    <dc:creator>JoshJones1</dc:creator>
    <dc:date>2013-06-25T20:41:01Z</dc:date>
    <item>
      <title>Unable to import Python module in ArcMap</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/unable-to-import-python-module-in-arcmap/m-p/233314#M8020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG style="font-size: &amp;quot;2&amp;quot;;"&gt;Summary: I can import a Python module in PythonWin or IDLE. I am not able to import the same module using the Python window in ArcMap.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm working with a Python module that handles NetCDF files (&lt;/SPAN&gt;&lt;STRONG&gt;netCDF4-0.9.win32-py2.6.exe&lt;/STRONG&gt;&lt;SPAN&gt; from &lt;/SPAN&gt;&lt;STRONG&gt;&lt;A href="http://code.google.com/p/netcdf4-python/downloads/list" rel="nofollow"&gt;http://code.google.com/p/netcdf4-python/downloads/list&lt;/A&gt;&lt;/STRONG&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The installer for this module is a little different than most. For example instead of dumping all of the files into:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;C:\python26\Lib\site-packages\netCDF4&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it just dumps them in the "site-packages" directory. Now, when I try to &lt;/SPAN&gt;&lt;SPAN style="color:&amp;quot;blue&amp;quot;;"&gt;&lt;STRONG&gt;import &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;the netCDF4 module in &lt;/SPAN&gt;&lt;STRONG&gt;PythonWin or IDLE&lt;/STRONG&gt;&lt;SPAN&gt;, it works fine, because that directory is part of &lt;/SPAN&gt;&lt;SPAN style="color:&amp;quot;darkorange&amp;quot;;"&gt;&lt;STRONG&gt;sys.path &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;so Python knows to look there when you &lt;/SPAN&gt;&lt;SPAN style="color:&amp;quot;blue&amp;quot;;"&gt;&lt;STRONG&gt;import &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;something.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But when I do this using the Python window in ArcGIS, I get an error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color:&amp;quot;red&amp;quot;;"&gt;Runtime error &amp;lt;type 'exceptions.ImportError'&amp;gt;: DLL load failed: The specified procedure could not be found. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can somebody from ESRI please look into this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 16:36:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/unable-to-import-python-module-in-arcmap/m-p/233314#M8020</guid>
      <dc:creator>PhilMorefield</dc:creator>
      <dc:date>2010-10-14T16:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to import Python module in ArcMap</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/unable-to-import-python-module-in-arcmap/m-p/233315#M8021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The problem is that a separate python 2.6 is installed in the arcmap directory. You need to go into a file and change or add a path to make it work. Im not sure since I am still at 9.3.1 but I know its come up a few times so if you do a search you should be able to find a solution.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Oct 2010 17:19:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/unable-to-import-python-module-in-arcmap/m-p/233315#M8021</guid>
      <dc:creator>ChrisMathers</dc:creator>
      <dc:date>2010-10-22T17:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to import Python module in ArcMap</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/unable-to-import-python-module-in-arcmap/m-p/233316#M8022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You might try to add the path to the import prior to import.&amp;nbsp; I have had funky stuff with python and arcgis.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My new rule is to install python 2.6 prior to install any arcgis stuff.&amp;nbsp; I think 2.6 is the flavor for arcgis 10 and you will also need numpy module installed as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;___&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import sys&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sys.path.append("C:\python26\Lib\site-packages\netCDF4")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import netCDF4&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-bob&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Oct 2010 17:58:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/unable-to-import-python-module-in-arcmap/m-p/233316#M8022</guid>
      <dc:creator>RobertBinckes</dc:creator>
      <dc:date>2010-10-22T17:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to import Python module in ArcMap</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/unable-to-import-python-module-in-arcmap/m-p/233317#M8023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Re: the two replies so far...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I installed Python and numpy before ArcGIS. So ArcGIS is using my Python installation instead of the other way around. The path to all the netCDF4 stuff was already in sys.path. Re-appending it did not fix the problem. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure the netCDF4 installer is totally stable, so I'm checking into some stuff there that might resolve this. But it still seems very odd that the module imports correctly &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;outside of the ArcGIS Python window.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Oct 2010 19:40:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/unable-to-import-python-module-in-arcmap/m-p/233317#M8023</guid>
      <dc:creator>PhilMorefield</dc:creator>
      <dc:date>2010-10-22T19:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to import Python module in ArcMap</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/unable-to-import-python-module-in-arcmap/m-p/233318#M8024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Phil,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you ever figure out what your problem was?&amp;nbsp; I am having a very similar problem, but I have no extra packages.&amp;nbsp; I am simply trying to import the arcpy package into the Python window in ArcMap or ArcCatalog , or run any processes that utilize numpy (Raster Calculator for instance), and I will get the error "ImportError: No module named numpy".&amp;nbsp; I can run/import these same processes/packages in IDLE and they work fine.&amp;nbsp; I'm not sure what the problem is.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance for any help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Josh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 20:41:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/unable-to-import-python-module-in-arcmap/m-p/233318#M8024</guid>
      <dc:creator>JoshJones1</dc:creator>
      <dc:date>2013-06-25T20:41:01Z</dc:date>
    </item>
  </channel>
</rss>

