<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.5700.6" name=GENERATOR>
<STYLE>
<!--
 /* Font Definitions */
 @font-face
        {font-family:宋体;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@宋体";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:10.5pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Verdana;
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
 /* Page Definitions */
 @page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;
        layout-grid:15.6pt;}
div.Section1
        {page:Section1;}
-->
</STYLE>
</HEAD>
<BODY>
<DIV>
<DIV><FONT face=Verdana size=2><FONT face=Verdana size=2>to Mateusz 
Loskot:</FONT></DIV></DIV>
<DIV>
<DIV><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana size=2>thank you very much!</FONT></DIV>
<DIV><FONT face=Verdana size=2>I'm sorry to my unclearly language.</FONT></DIV>
<DIV><FONT face=Verdana size=2>I use the IDE PythonWin.</FONT></DIV>
<DIV>According to your direction i have solved my problem.</DIV>
<DIV>It's really like you say,i have set the Python path but not set the OS's 
Path to search my dll,so the problem occur.</DIV>
<DIV>Thanks again!</DIV>
<DIV><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV align=left>
<DIV align=left><FONT face=Verdana size=2>
<HR style="WIDTH: 122px; HEIGHT: 2px" SIZE=2>
</FONT></DIV>
<DIV><FONT color=#c0c0c0><FONT face=Verdana size=2>贠建明</FONT></DIV>
<DIV><FONT face=Verdana size=2>2006-11-06</FONT></FONT></DIV></DIV>
<DIV><FONT face=Verdana size=2>
<HR>
</FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>发件人:</STRONG> Mateusz 
Loskot</FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>发送时间:</STRONG> 
2006-11-06&nbsp;00:35:48</FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>收件人:</STRONG> 
gdal-dev@lists.maptools.org</FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>抄送:</STRONG> </FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>主题:</STRONG> Re: [Gdal-dev] 
Beginner problem - can't load DLL</FONT></FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana size=2>
<DIV>贠建明&nbsp;wrote:</DIV>
<DIV>&gt;&nbsp;what&nbsp;is&nbsp;the&nbsp;detail&nbsp;to&nbsp;set&nbsp;up&nbsp;my&nbsp;IDE&nbsp;to&nbsp;work&nbsp;with&nbsp;the&nbsp;FWTools's&nbsp;python</DIV>
<DIV>&gt;&nbsp;version?</DIV>
<DIV>&nbsp;</DIV>
<DIV>What&nbsp;do&nbsp;you&nbsp;mean&nbsp;"my&nbsp;IDE"?</DIV>
<DIV>&nbsp;</DIV>
<DIV>&gt;&nbsp;I&nbsp;have&nbsp;modify&nbsp;my&nbsp;set&nbsp;up&nbsp;by&nbsp;it&nbsp;still&nbsp;report&nbsp;can't&nbsp;load&nbsp;Dll.</DIV>
<DIV>&gt;&nbsp;&nbsp;</DIV>
<DIV>&gt;&nbsp;I&nbsp;have&nbsp;Edit&nbsp;all&nbsp;the&nbsp;value&nbsp;under&nbsp;Tools|Edit&nbsp;python&nbsp;path|&nbsp;&nbsp;to</DIV>
<DIV>&gt;&nbsp;'C:\\FWTools'&nbsp;like</DIV>
<DIV>&gt;&nbsp;but&nbsp;when&nbsp;i&nbsp;check&nbsp;the&nbsp;sys.path&nbsp;it's&nbsp;value&nbsp;like&nbsp;the&nbsp;following&nbsp;message:</DIV>
<DIV>&nbsp;</DIV>
<DIV>What's&nbsp;Tools|Edit?</DIV>
<DIV>&nbsp;</DIV>
<DIV>&gt;&nbsp;PythonWin&nbsp;2.3.5&nbsp;(#62,&nbsp;Feb&nbsp;&nbsp;9&nbsp;2005,&nbsp;16:17:08)&nbsp;[MSC&nbsp;v.1200&nbsp;32&nbsp;bit&nbsp;(Intel)]</DIV>
<DIV>&gt;&nbsp;on&nbsp;win32.</DIV>
<DIV>&gt;&nbsp;Portions&nbsp;Copyright&nbsp;1994-2004&nbsp;Mark&nbsp;Hammond&nbsp;(mhammond@skippinet.com.au</DIV>
<DIV>&gt;&nbsp; &lt;mailto:mhammond@skippinet.com.au 
&gt;)&nbsp;-&nbsp;see&nbsp;'Help/About&nbsp;PythonWin'&nbsp;for</DIV>
<DIV>&gt;&nbsp;further&nbsp;copyright&nbsp;information.</DIV>
<DIV>&gt; &gt; &gt; &gt;&nbsp;import&nbsp;sys</DIV>
<DIV>&gt; &gt; &gt; &gt;&nbsp;print(sys.path)</DIV>
<DIV>&gt;&nbsp;['',&nbsp;'C:\\WINDOWS\\system32\\python23.zip',&nbsp;'C:\\FWTools\\bin',</DIV>
<DIV>&gt;&nbsp;'C:\\FWTools\\pymod',&nbsp;'C:\\Python23\\DLLs',&nbsp;'C:\\Python23\\lib',</DIV>
<DIV>&gt;&nbsp;'C:\\Python23\\lib\\plat-win',&nbsp;'C:\\Python23\\lib\\lib-tk',</DIV>
<DIV>&gt;&nbsp;'C:\\Python23\\Lib\\site-packages\\pythonwin',&nbsp;'C:\\Python23',</DIV>
<DIV>&gt;&nbsp;'C:\\Python23\\lib\\site-packages',</DIV>
<DIV>&gt;&nbsp;'C:\\Python23\\lib\\site-packages\\win32',</DIV>
<DIV>&gt;&nbsp;'C:\\Python23\\lib\\site-packages\\win32\\lib']</DIV>
<DIV>&gt; &gt; &gt; &gt;&nbsp;import&nbsp;gdal</DIV>
<DIV>&gt;&nbsp;Traceback&nbsp;(most&nbsp;recent&nbsp;call&nbsp;last):</DIV>
<DIV>&gt;&nbsp;&nbsp;&nbsp;File&nbsp;" &lt;interactive&nbsp;input 
&gt;",&nbsp;line&nbsp;1,&nbsp;in&nbsp;?</DIV>
<DIV>&gt;&nbsp;&nbsp;&nbsp;File&nbsp;"C:\FWTools\pymod\gdal.py",&nbsp;line&nbsp;191,&nbsp;in&nbsp;?</DIV>
<DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;import&nbsp;_gdal</DIV>
<DIV>&gt;&nbsp;ImportError:&nbsp;DLL&nbsp;load&nbsp;failed:&nbsp;找不到指定的模块。</DIV>
<DIV>&nbsp;</DIV>
<DIV>I&nbsp;suppose&nbsp;the&nbsp;problem&nbsp;is&nbsp;that&nbsp;GDAL&nbsp;DLL&nbsp;can't&nbsp;be&nbsp;found&nbsp;by&nbsp;your&nbsp;IDE,</DIV>
<DIV>whatever&nbsp;the&nbsp;IDE&nbsp;means.</DIV>
<DIV>Try&nbsp;to&nbsp;add&nbsp;path&nbsp;where&nbsp;GDAL&nbsp;DLL&nbsp;file&nbsp;lives&nbsp;to&nbsp;system-wide&nbsp;or&nbsp;user's</DIV>
<DIV>PATH&nbsp;environment&nbsp;variable.</DIV>
<DIV>sys.path&nbsp;represents&nbsp;Python's&nbsp;PYTHONPATH,&nbsp;not&nbsp;Windows&nbsp;PATH&nbsp;where&nbsp;exe&nbsp;and</DIV>
<DIV>dll&nbsp;files&nbsp;are&nbsp;searched&nbsp;for.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Alternatively,&nbsp;you&nbsp;can&nbsp;try&nbsp;to&nbsp;open&nbsp;FWTools&nbsp;command&nbsp;line&nbsp;(use&nbsp;shortcut&nbsp;in</DIV>
<DIV>Start&nbsp;Menu&nbsp;- 
&gt;&nbsp;FWTools)&nbsp;and&nbsp;run&nbsp;your&nbsp;IDE&nbsp;from&nbsp;command&nbsp;line,&nbsp;then&nbsp;it&nbsp;should</DIV>
<DIV>inherit&nbsp;PATH&nbsp;settings&nbsp;from&nbsp;FWTools&nbsp;shell.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Cheers</DIV>
<DIV>--&nbsp;</DIV>
<DIV>Mateusz&nbsp;Loskot</DIV>
<DIV><A href="http://mateusz.loskot.net">http://mateusz.loskot.net</A></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV></FONT></DIV></FONT></DIV></BODY></HTML>