<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";
        mso-fareast-language:DA;}
span.pun
        {mso-style-name:pun;}
span.pln
        {mso-style-name:pln;}
span.typ
        {mso-style-name:typ;}
span.kwd
        {mso-style-name:kwd;}
span.str
        {mso-style-name:str;}
span.lit
        {mso-style-name:lit;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:3.0cm 2.0cm 3.0cm 2.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DA" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi! <o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><span lang="EN-US">I am new to the GDAL world and I&#8217;m struggling with installing OSGeo4W to a working state.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I have downloaded and installed the latest edition OSGeo4W. The install goes smoothly. I open the OSGeo4W Command shell and enter Python. I have seen that I can test the basic Python/GDAL binding(?) by entering<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">&gt;&gt;&gt; from osgeo import gdal<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">This results in the following error:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;mso-fareast-language:DA">Traceback (most recent call last):<br>
&nbsp; File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;<br>
&nbsp; File &quot;C:\OSGeo4W\apps\Python27\lib\site-packages\osgeo\__init__.py&quot;, line 21,<br>
in &lt;module&gt;<br>
&nbsp; &nbsp; _gdal = swig_import_helper()<br>
&nbsp; File &quot;C:\OSGeo4W\apps\Python27\lib\site-packages\osgeo\__init__.py&quot;, line 17,<br>
in swig_import_helper<br>
&nbsp; &nbsp; _mod = imp.load_module('_gdal', fp, pathname, description)<br>
ImportError: DLL load failed: The operating system cannot run %1.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I have read that this error might indicate that the installed python/gdal libraries are incompatible, but I&#8217;m wondering if my OSGeo4W installation is obstructed by another installation? The following three lines are added
 to my path by the OSGeo4W Command shell:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<pre><span class="pln"><span lang="EN-US">C</span></span><span class="pun"><span lang="EN-US">:\</span></span><span class="typ"><span lang="EN-US">OSGeo4W</span></span><span class="pun"><span lang="EN-US">\</span></span><span class="pln"><span lang="EN-US">bin</span></span><span lang="EN-US"><br><span class="pln">C</span><span class="pun">:\</span><span class="typ">OSGeo4W</span><span class="pun">\\</span><span class="pln">apps</span><span class="pun">\</span><span class="pln">msys</span><span class="pun">\</span><span class="pln">bin</span><br><span class="pln">C</span><span class="pun">:\</span><span class="typ">OSGeo4W</span><span class="pun">\\</span><span class="pln">apps</span><span class="pun">\</span><span class="typ">Python27</span><span class="pun">\</span><span class="typ">Scripts</span><o:p></o:p></span></pre>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I have searched through my system looking for gdal*.dll, but I have found none located within any of the folders in my PATH.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">What can I do to troubleshoot this problem?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Regards, Casper<o:p></o:p></span></p>
</div>
</body>
</html>