<?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: &amp;quot;DLL Load Failed: The specified procedure could not be found.&amp;quot; in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/amp-amp-quot-dll-load-failed-the-specified/m-p/164404#M12619</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not sure if my error is related but let's take a shot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a simple python script in a toolbox.&amp;nbsp; The script is called in various models to timestamp a sqltable that the model was run.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Run alone or from any of the models its embeded in (via ArcGIS), the script works just fine.&amp;nbsp; I also have a .Net console app running as a scheduled task to automatically run many of these models.&amp;nbsp; When run from .Net the model fails at the timestamp script with the below error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"&amp;lt;type 'exceptions.ImportError'&amp;gt;: DLL load failed: The specified module could not be found."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've just recently upgraded to ArcGIS 10sp2, and hence python 2.6&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2011 15:23:46 GMT</pubDate>
    <dc:creator>ChristopherGraff</dc:creator>
    <dc:date>2011-06-16T15:23:46Z</dc:date>
    <item>
      <title>&amp;amp;quot;DLL Load Failed: The specified procedure could not be found.&amp;amp;quot;</title>
      <link>https://community.esri.com/t5/python-questions/amp-amp-quot-dll-load-failed-the-specified/m-p/164402#M12617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've posted this elsewhere, but this new forum seems ideal:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to bring &lt;/SPAN&gt;&lt;A href="http://netcdf4-python.googlecode.com/files/netCDF4-0.9.3.win32-py2.6.exe" rel="nofollow"&gt;a Python module that handles NetCDF files &lt;/A&gt;&lt;SPAN&gt;into ArcMap. I am able to import the module fine in IDLE or PythonWin. But when I try to import in ArcMap (Python window), I get:&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;1) Can somebody try to recreate this so I can eliminate my computer(s) as the problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Any ideas on how this can be corrected on my end?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) Any ideas on how I can notify ESRI of this and ask them to investigate?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 18:57:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/amp-amp-quot-dll-load-failed-the-specified/m-p/164402#M12617</guid>
      <dc:creator>PhilMorefield</dc:creator>
      <dc:date>2010-11-24T18:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: "DLL Load Failed: The specified procedure could not be found."</title>
      <link>https://community.esri.com/t5/python-questions/amp-amp-quot-dll-load-failed-the-specified/m-p/164403#M12618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is due to the nature of the build of the ArcGIS desktop applications. It establishes its own process-level settings in Windows for various binary runtime settings, which in turn causes a failure in any compiled module which has an embedded manifest within it. The binary Python modules (.pyd) include such a manifest, and &lt;/SPAN&gt;&lt;A href="http://bugs.python.org/issue7833"&gt;as noted on the Python.org web site's issue tracker&lt;/A&gt;&lt;SPAN&gt;, the issue was not fixed for Python 2.6/2.7 and may likely not be fixed in future versions as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One possible workaround is to use the &lt;/SPAN&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/xd3shwhf(v=VS.100).aspx"&gt;Microsoft utility editbin&lt;/A&gt;&lt;SPAN&gt; to strip the manifest from the .pyd files of interest using the /ALLOWISOLATION:NO option.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 23:41:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/amp-amp-quot-dll-load-failed-the-specified/m-p/164403#M12618</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2011-06-07T23:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: "DLL Load Failed: The specified procedure could not be found."</title>
      <link>https://community.esri.com/t5/python-questions/amp-amp-quot-dll-load-failed-the-specified/m-p/164404#M12619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not sure if my error is related but let's take a shot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a simple python script in a toolbox.&amp;nbsp; The script is called in various models to timestamp a sqltable that the model was run.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Run alone or from any of the models its embeded in (via ArcGIS), the script works just fine.&amp;nbsp; I also have a .Net console app running as a scheduled task to automatically run many of these models.&amp;nbsp; When run from .Net the model fails at the timestamp script with the below error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"&amp;lt;type 'exceptions.ImportError'&amp;gt;: DLL load failed: The specified module could not be found."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've just recently upgraded to ArcGIS 10sp2, and hence python 2.6&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 15:23:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/amp-amp-quot-dll-load-failed-the-specified/m-p/164404#M12619</guid>
      <dc:creator>ChristopherGraff</dc:creator>
      <dc:date>2011-06-16T15:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: "DLL Load Failed: The specified procedure could not be found."</title>
      <link>https://community.esri.com/t5/python-questions/amp-amp-quot-dll-load-failed-the-specified/m-p/164405#M12620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;This is due to the nature of the build of the ArcGIS desktop applications. It establishes its own process-level settings in Windows for various binary runtime settings, which in turn causes a failure in any compiled module which has an embedded manifest within it. The binary Python modules (.pyd) include such a manifest, and &lt;A href="http://bugs.python.org/issue7833"&gt;as noted on the Python.org web site's issue tracker&lt;/A&gt;, the issue was not fixed for Python 2.6/2.7 and may likely not be fixed in future versions as well.&lt;BR /&gt;&lt;BR /&gt;One possible workaround is to use the &lt;A href="http://msdn.microsoft.com/en-us/library/xd3shwhf(v=VS.100).aspx"&gt;Microsoft utility editbin&lt;/A&gt; to strip the manifest from the .pyd files of interest using the /ALLOWISOLATION:NO option.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's great information. Thanks Jason.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2011 17:37:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/amp-amp-quot-dll-load-failed-the-specified/m-p/164405#M12620</guid>
      <dc:creator>PhilMorefield</dc:creator>
      <dc:date>2011-07-12T17:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: "DLL Load Failed: The specified procedure could not be found."</title>
      <link>https://community.esri.com/t5/python-questions/amp-amp-quot-dll-load-failed-the-specified/m-p/164406#M12621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; This is due to the nature of the build of the ArcGIS desktop applications. It establishes its own process-level settings in Windows for various binary runtime settings, which in turn causes a failure in any compiled module which has an embedded manifest within it. The binary Python modules (.pyd) include such a manifest, and&amp;nbsp;&amp;nbsp; &lt;A href="http://bugs.python.org/issue7833" rel="nofollow"&gt;as noted on the Python.org web site's issue tracker&lt;/A&gt;, the issue was not fixed for Python 2.6/2.7 and may likely not be fixed in future versions as well.&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;One possible workaround is to use the&amp;nbsp;&amp;nbsp; &lt;A href="http://msdn.microsoft.com/en-us/library/xd3shwhf(v=VS.100).aspx" rel="nofollow"&gt;Microsoft utility editbin&lt;/A&gt; to strip the manifest from the .pyd files of interest using the /ALLOWISOLATION:NO option.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jason- &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So when I follow your instructions for the file in question ("netCDF4.pyd") the output I get is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color:&amp;quot;blue&amp;quot;;"&gt;netCDF4.pyd : warning LNK4228: '/ALLOWISOLATION' invalid for a DLL; ignored&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts? Does this mean the file was compiled with the /GL option?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 20:48:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/amp-amp-quot-dll-load-failed-the-specified/m-p/164406#M12621</guid>
      <dc:creator>PhilMorefield</dc:creator>
      <dc:date>2011-07-20T20:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: "DLL Load Failed: The specified procedure could not be found."</title>
      <link>https://community.esri.com/t5/python-questions/amp-amp-quot-dll-load-failed-the-specified/m-p/164407#M12622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I recieved the same error message each time I executed the Feature Class To Geodatabase geoprocessing tool with ArcGIS Desktop 10.0 SP 2 &amp;amp; Python 2.6. After a repair of ArcGIS Desktop the problem had disappeared.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2011 07:54:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/amp-amp-quot-dll-load-failed-the-specified/m-p/164407#M12622</guid>
      <dc:creator>KristofVydt</dc:creator>
      <dc:date>2011-07-25T07:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: "DLL Load Failed: The specified procedure could not be found."</title>
      <link>https://community.esri.com/t5/python-questions/amp-amp-quot-dll-load-failed-the-specified/m-p/164408#M12623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have the same error, trying to load the NetCDF Python module. Would just like to know if somebody resolved this issue, as indicated by the possible workaround?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Aug 2011 14:02:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/amp-amp-quot-dll-load-failed-the-specified/m-p/164408#M12623</guid>
      <dc:creator>RussellEgypt</dc:creator>
      <dc:date>2011-08-14T14:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: "DLL Load Failed: The specified procedure could not be found."</title>
      <link>https://community.esri.com/t5/python-questions/amp-amp-quot-dll-load-failed-the-specified/m-p/164409#M12624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&lt;SPAN&gt;There are two reasons why the netcdf4-python windows binaries from &amp;lt;&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://code.google.com/p/netcdf4-python/" rel="nofollow" target="_blank"&gt;http://code.google.com/p/netcdf4-python/&lt;/A&gt;&lt;SPAN&gt;&amp;gt; won't work from within ArcGIS10:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) The hdf5dll.dll file used by ArcGIS is incompatible with the one required by netcdf4-python's netcdf.dll. Some functions are missing. Hence the error message when loading netcdf.dll. Copying all netCDF4-python provided DLLs from "C:\Python26\ArcGIS10.0\lib\site-packages" to "C:\Program Files\ArcGIS\Desktop10.0\Bin" worked but might interfere with ArcGIS functions (no tested). Also there should be no other netcdf.dll files in the Windows DLL search path.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) ArcGIS-python ships with numpy-1.3, which is quite outdated and will not work with extensions compiled with the latest numpy. Importing netcdf4-python will crash. Upgrading to numpy-1.6.1 solved this but might influence the arcpy package (not tested).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;Embedded manifests are not the problem here. NetCDF4.pyd was compiled with the patch from &amp;lt;&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://bugs.python.org/issue7833" rel="nofollow" target="_blank"&gt;http://bugs.python.org/issue7833&lt;/A&gt;&lt;SPAN&gt;&amp;gt; and also netcdf.dll and all dependent DLLs are linked with the 'MANIFEST:NO' option.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 21:07:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/amp-amp-quot-dll-load-failed-the-specified/m-p/164409#M12624</guid>
      <dc:creator>ChristophGohlke</dc:creator>
      <dc:date>2011-08-19T21:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: "DLL Load Failed: The specified procedure could not be found."</title>
      <link>https://community.esri.com/t5/python-questions/amp-amp-quot-dll-load-failed-the-specified/m-p/164410#M12625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;There are two reasons why the netcdf4-python windows binaries from &amp;lt;http://code.google.com/p/netcdf4-python/&amp;gt; won't work from within ArcGIS10:&lt;BR /&gt;&lt;BR /&gt;1) The hdf5dll.dll file used by ArcGIS is incompatible with the one required by netcdf4-python's netcdf.dll. Some functions are missing. Hence the error message when loading netcdf.dll. Copying all netCDF4-python provided DLLs from "C:\Python26\ArcGIS10.0\lib\site-packages" to "C:\Program Files\ArcGIS\Desktop10.0\Bin" worked but might interfere with ArcGIS functions (no tested). Also there should be no other netcdf.dll files in the Windows DLL search path.&lt;BR /&gt;&lt;BR /&gt;2) ArcGIS-python ships with numpy-1.3, which is quite outdated and will not work with extensions compiled with the latest numpy. Importing netcdf4-python will crash. Upgrading to numpy-1.6.1 solved this but might influence the arcpy package (not tested).&lt;BR /&gt;&lt;BR /&gt;Embedded manifests are not the problem here. NetCDF4.pyd was compiled with the patch from &amp;lt;http://bugs.python.org/issue7833&amp;gt; and also netcdf.dll and all dependent DLLs are linked with the 'MANIFEST:NO' option.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Christoph. I'd read that bug report and got even more confused since it looked like the manifest issue had been fixed. Long story short, I ended up building an installer for Konrad Hinsen's ScientificPython module which is available here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://sourcesup.cru.fr/frs/download.php/3745/ScientificPython-2.9.1.win32-py2.6.msi" rel="nofollow" target="_blank"&gt;https://sourcesup.cru.fr/frs/download.php/3745/ScientificPython-2.9.1.win32-py2.6.msi&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's 100% compatible with versions of Python/numpy shipped with ArcGIS 10.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2011 19:14:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/amp-amp-quot-dll-load-failed-the-specified/m-p/164410#M12625</guid>
      <dc:creator>PhilMorefield</dc:creator>
      <dc:date>2011-08-25T19:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: "DLL Load Failed: The specified procedure could not be found."</title>
      <link>https://community.esri.com/t5/python-questions/amp-amp-quot-dll-load-failed-the-specified/m-p/164411#M12626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;There are two reasons why the netcdf4-python windows binaries from &amp;lt;http://code.google.com/p/netcdf4-python/&amp;gt; won't work from within ArcGIS10:&lt;BR /&gt;&lt;BR /&gt;1) The hdf5dll.dll file used by ArcGIS is incompatible with the one required by netcdf4-python's netcdf.dll. Some functions are missing. Hence the error message when loading netcdf.dll. Copying all netCDF4-python provided DLLs from "C:\Python26\ArcGIS10.0\lib\site-packages" to "C:\Program Files\ArcGIS\Desktop10.0\Bin" worked but might interfere with ArcGIS functions (no tested). Also there should be no other netcdf.dll files in the Windows DLL search path.&lt;BR /&gt;&lt;BR /&gt;2) ArcGIS-python ships with numpy-1.3, which is quite outdated and will not work with extensions compiled with the latest numpy. Importing netcdf4-python will crash. Upgrading to numpy-1.6.1 solved this but might influence the arcpy package (not tested).&lt;BR /&gt;&lt;BR /&gt;Embedded manifests are not the problem here. NetCDF4.pyd was compiled with the patch from &amp;lt;http://bugs.python.org/issue7833&amp;gt; and also netcdf.dll and all dependent DLLs are linked with the 'MANIFEST:NO' option.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Christoph. I'd read that bug report and got even more confused since it looked like the manifest issue had been fixed. Long story short, I ended up building an installer for Konrad Hinsen's ScientificPython module which is available here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://sourcesup.cru.fr/frs/download.php/3745/ScientificPython-2.9.1.win32-py2.6.msi" rel="nofollow" target="_blank"&gt;https://sourcesup.cru.fr/frs/download.php/3745/ScientificPython-2.9.1.win32-py2.6.msi&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's 100% compatible with versions of Python/numpy shipped with ArcGIS 10.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2011 19:23:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/amp-amp-quot-dll-load-failed-the-specified/m-p/164411#M12626</guid>
      <dc:creator>PhilMorefield</dc:creator>
      <dc:date>2011-08-25T19:23:59Z</dc:date>
    </item>
  </channel>
</rss>

