<?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 arcpy unable to load gapy (DLL load failed) in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-unable-to-load-gapy-dll-load-failed/m-p/361188#M15852</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After reinstalling ArcGIS Pro v2.6 on my Windows 10 64-bit machine,&amp;nbsp;I get the error below when I import arcpy. As a result&amp;nbsp;I can't run any Python scripts in ArcGIS Pro - if I tried to use the Python Window in ArcGIS Pro, the application&amp;nbsp;gets stuck and I had&amp;nbsp;to use Task Manager to close it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can get the Python environment working by editing&amp;nbsp;&lt;STRONG&gt;C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\toolbox.py&lt;/STRONG&gt;&amp;nbsp;to remove all import statements from &lt;STRONG&gt;.ga.&amp;nbsp;&lt;/STRONG&gt;As&amp;nbsp;I don't have a GA license, I don't have any issues with this GA classes not being imported, but the situation still doesn't seem ideal and I imagine future Pro updates may overwrite&amp;nbsp;my modifications which I would then have to reapply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While I'm up and running now, I would appreciate any insight anyone could offer as to why this is happening.&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; import arcpy
Traceback (most recent call last):
 File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;
 File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\__init__.py", line 79, in &amp;lt;module&amp;gt;
 from arcpy.toolbox import *
 File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\toolbox.py", line 403, in &amp;lt;module&amp;gt;
 from .ga import SearchNeighborhoodStandard, SearchNeighborhoodSmooth, 
SearchNeighborhoodStandardCircular, SearchNeighborhoodSmoothCircular, 
SearchNeighborhoodStandard3D, CrossValidationResult, GeostatisticalDatasets
 File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\ga.py", line 33, in &amp;lt;module&amp;gt;
 from arcpy import _ga
 File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\_ga.py", line 30, in &amp;lt;module&amp;gt;
 import gapy
 File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\gapy\__init__.py", line 1, in &amp;lt;module&amp;gt;
 from ._gapy import *
ImportError: DLL load failed: The specified procedure could not be found.&lt;/PRE&gt;&lt;P&gt;This is my paths output&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python36.zip
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\DLLs
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages
C:\Program Files\ArcGIS\Pro\bin
C:\Program Files\ArcGIS\Pro\Resources\ArcPy
C:\Program Files\ArcGIS\Pro\Resources\ArcToolbox\Scripts
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\future-0.18.2-py3.6.egg
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\pytz-2019.3-py3.6.egg
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\pywin32security
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\sympy-1.5.1-py3.6.egg&lt;/PRE&gt;&lt;P&gt;Additional details in case it helps:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Have a standard ArcPro license, but other colleagues with the same license aren't having the same problem as me.&lt;/LI&gt;&lt;LI&gt;Previously had ArcGIS Pro 2.6.1 installed and successfully running Python scripts as&amp;nbsp;normal&lt;/LI&gt;&lt;LI&gt;Had an issue where I couldn't publish and Web Tools to our Portal - part of the process of resolving this I decided to reinstall ArcGIS Pro&lt;/LI&gt;&lt;LI&gt;After that reinstall is when I started&amp;nbsp;encountering this error&lt;/LI&gt;&lt;LI&gt;Did an uninstall and removed all folders / registry keys that were left over&lt;OL&gt;&lt;LI&gt;still no luck after reinstalling&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Repeated 5, but this time removed every trace of Python on my system&lt;OL&gt;&lt;LI&gt;still no luck&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Updating to 2.6.1 then 2.6.2 made no difference&lt;/LI&gt;&lt;LI&gt;Reinstalled Pro but edited the toolbox.py file as mentioned&amp;nbsp;above - now working (as far as I can tell).&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 16:22:53 GMT</pubDate>
    <dc:creator>HeathcliffRongo</dc:creator>
    <dc:date>2021-12-12T16:22:53Z</dc:date>
    <item>
      <title>arcpy unable to load gapy (DLL load failed)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-unable-to-load-gapy-dll-load-failed/m-p/361188#M15852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After reinstalling ArcGIS Pro v2.6 on my Windows 10 64-bit machine,&amp;nbsp;I get the error below when I import arcpy. As a result&amp;nbsp;I can't run any Python scripts in ArcGIS Pro - if I tried to use the Python Window in ArcGIS Pro, the application&amp;nbsp;gets stuck and I had&amp;nbsp;to use Task Manager to close it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can get the Python environment working by editing&amp;nbsp;&lt;STRONG&gt;C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\toolbox.py&lt;/STRONG&gt;&amp;nbsp;to remove all import statements from &lt;STRONG&gt;.ga.&amp;nbsp;&lt;/STRONG&gt;As&amp;nbsp;I don't have a GA license, I don't have any issues with this GA classes not being imported, but the situation still doesn't seem ideal and I imagine future Pro updates may overwrite&amp;nbsp;my modifications which I would then have to reapply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While I'm up and running now, I would appreciate any insight anyone could offer as to why this is happening.&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; import arcpy
Traceback (most recent call last):
 File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;
 File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\__init__.py", line 79, in &amp;lt;module&amp;gt;
 from arcpy.toolbox import *
 File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\toolbox.py", line 403, in &amp;lt;module&amp;gt;
 from .ga import SearchNeighborhoodStandard, SearchNeighborhoodSmooth, 
SearchNeighborhoodStandardCircular, SearchNeighborhoodSmoothCircular, 
SearchNeighborhoodStandard3D, CrossValidationResult, GeostatisticalDatasets
 File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\ga.py", line 33, in &amp;lt;module&amp;gt;
 from arcpy import _ga
 File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\_ga.py", line 30, in &amp;lt;module&amp;gt;
 import gapy
 File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\gapy\__init__.py", line 1, in &amp;lt;module&amp;gt;
 from ._gapy import *
ImportError: DLL load failed: The specified procedure could not be found.&lt;/PRE&gt;&lt;P&gt;This is my paths output&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python36.zip
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\DLLs
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages
C:\Program Files\ArcGIS\Pro\bin
C:\Program Files\ArcGIS\Pro\Resources\ArcPy
C:\Program Files\ArcGIS\Pro\Resources\ArcToolbox\Scripts
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\future-0.18.2-py3.6.egg
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\pytz-2019.3-py3.6.egg
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\pywin32security
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\sympy-1.5.1-py3.6.egg&lt;/PRE&gt;&lt;P&gt;Additional details in case it helps:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Have a standard ArcPro license, but other colleagues with the same license aren't having the same problem as me.&lt;/LI&gt;&lt;LI&gt;Previously had ArcGIS Pro 2.6.1 installed and successfully running Python scripts as&amp;nbsp;normal&lt;/LI&gt;&lt;LI&gt;Had an issue where I couldn't publish and Web Tools to our Portal - part of the process of resolving this I decided to reinstall ArcGIS Pro&lt;/LI&gt;&lt;LI&gt;After that reinstall is when I started&amp;nbsp;encountering this error&lt;/LI&gt;&lt;LI&gt;Did an uninstall and removed all folders / registry keys that were left over&lt;OL&gt;&lt;LI&gt;still no luck after reinstalling&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Repeated 5, but this time removed every trace of Python on my system&lt;OL&gt;&lt;LI&gt;still no luck&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Updating to 2.6.1 then 2.6.2 made no difference&lt;/LI&gt;&lt;LI&gt;Reinstalled Pro but edited the toolbox.py file as mentioned&amp;nbsp;above - now working (as far as I can tell).&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:22:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-unable-to-load-gapy-dll-load-failed/m-p/361188#M15852</guid>
      <dc:creator>HeathcliffRongo</dc:creator>
      <dc:date>2021-12-12T16:22:53Z</dc:date>
    </item>
  </channel>
</rss>

