<?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 Question about missing dll when calling executable in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/question-about-missing-dll-when-calling-executable/m-p/432219#M14532</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you Jscheirer!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This code works with the line: import os before it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;s.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Apr 2010 20:26:41 GMT</pubDate>
    <dc:creator>SamLitschert</dc:creator>
    <dc:date>2010-04-23T20:26:41Z</dc:date>
    <item>
      <title>Question about missing dll when calling executable</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/question-about-missing-dll-when-calling-executable/m-p/432215#M14528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've converted a python program to an .exe using py2exe. When I try to run it from the command line, I get the following error: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"The program can't start because GeoprocessingLib.dll is missing from your computer. Try reinstalling the program to fix this problem."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The GeoprocessingLib.dll is in C:\Program Files (x86)\ArcGIS\Bin. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm running ArcView 9.2, PythonWin 2.4 on Windows 7, 64 bit pc. Is the program just looking in the wrong place? How would I fix that? Does anyone have any idea what is wrong? The python exe will eventually be called from a vba application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sam&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Apr 2010 22:05:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/question-about-missing-dll-when-calling-executable/m-p/432215#M14528</guid>
      <dc:creator>SamLitschert</dc:creator>
      <dc:date>2010-04-07T22:05:47Z</dc:date>
    </item>
    <item>
      <title>Question about missing dll when calling executable</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/question-about-missing-dll-when-calling-executable/m-p/432216#M14529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;you might want to look into excluding the arcgisscripting.pyd module in your exe project, so it will find the correct one via PYTHONPATH: &lt;/SPAN&gt;&lt;A href="http://www.py2exe.org/index.cgi/ExcludingDlls"&gt;http://www.py2exe.org/index.cgi/ExcludingDlls&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Apr 2010 23:56:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/question-about-missing-dll-when-calling-executable/m-p/432216#M14529</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2010-04-07T23:56:25Z</dc:date>
    </item>
    <item>
      <title>Question about missing dll when calling executable</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/question-about-missing-dll-when-calling-executable/m-p/432217#M14530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, I have tried excluding GeoprocessingLib.dll and GeoprocessingLib.pyd since I am not sure which to exclude. I still get the same error message.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is the correct PYTHONPATH?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sam&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Apr 2010 19:56:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/question-about-missing-dll-when-calling-executable/m-p/432217#M14530</guid>
      <dc:creator>SamLitschert</dc:creator>
      <dc:date>2010-04-08T19:56:44Z</dc:date>
    </item>
    <item>
      <title>Question about missing dll when calling executable</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/question-about-missing-dll-when-calling-executable/m-p/432218#M14531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;%installdir%\bin&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alternately, add &lt;/SPAN&gt;&lt;SPAN style="font-family:&amp;quot;Courier New&amp;quot;;"&gt;os.environ["PATH"] += r";c:\program files\arcgis\desktop10.0\bin"&lt;/SPAN&gt;&lt;SPAN&gt; to the very top of your Python script so it adds the ArcGIS install's bin to the DLL import path. You might want to make it more robust by looking for the correct install path with &lt;/SPAN&gt;&lt;SPAN style="font-family:&amp;quot;Courier New&amp;quot;;"&gt;&lt;A href="http://docs.python.org/library/_winreg.html" rel="nofollow"&gt;_winreg&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Apr 2010 20:10:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/question-about-missing-dll-when-calling-executable/m-p/432218#M14531</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2010-04-08T20:10:57Z</dc:date>
    </item>
    <item>
      <title>Question about missing dll when calling executable</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/question-about-missing-dll-when-calling-executable/m-p/432219#M14532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you Jscheirer!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This code works with the line: import os before it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;s.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Apr 2010 20:26:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/question-about-missing-dll-when-calling-executable/m-p/432219#M14532</guid>
      <dc:creator>SamLitschert</dc:creator>
      <dc:date>2010-04-23T20:26:41Z</dc:date>
    </item>
  </channel>
</rss>

