<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=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@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:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
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;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
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="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">I’d like to run the gdalautotest scripts locally, and add some tests, but I’ve not had success getting the environment set up correctly. I assume with the right configuration the build process will generate the Python bindings?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m on Windows running in a VS1027 x86 native tools command prompt. I’ve configured the following environment variables:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">set "GDAL_HOME=C:\devel\GitHub\build"<o:p></o:p></p>
<p class="MsoNormal">set "GDAL_DATA=%GDAL_HOME%\data"<o:p></o:p></p>
<p class="MsoNormal">set "PATH=%PATH%;%GDAL_HOME%\bin"<o:p></o:p></p>
<p class="MsoNormal">set "PYTHONPATH=C:\devel\GitHub\gdal\gdal\pymod"<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">My nmake.local contains:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">MSVC_VER=1910<o:p></o:p></p>
<p class="MsoNormal">VERSION=204<o:p></o:p></p>
<p class="MsoNormal">GDAL_HOME="C:\devel\GitHub\build"<o:p></o:p></p>
<p class="MsoNormal">PYDIR="C:\Python27" <span style="font-family:Wingdings">ß</span> in the PATH inherited by the command prompt<o:p></o:p></p>
<p class="MsoNormal">SWIG="C:\devel\GitHub\swig.exe"<o:p></o:p></p>
<p class="MsoNormal">BINDINGS=python<o:p></o:p></p>
<p class="MsoNormal">HAVE_NUMPY=1<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I run “nmake -f makefile.vc”, then “nmake -f makefile.vc install”, then from the autotest folder “C:\Python27\python.exe run_all.py”. The error is that pymod\gdaltest.py cannot import gdal from osgeo.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I found the gdal\swig\python\osgeo folder and tried adding that to PYTHONPATH. Same result.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black">Alan Stewart<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black">Senior Software Engineer<o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="color:#C00000">Terra</span></b><b><span style="color:#E36C0A">Go
</span></b><b><span style="color:#C00000">Technologies</span></b><span style="font-family:"Times New Roman",serif;color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">3200 Windy Hill Road, Suite 1550W</span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">Atlanta, GA 30339 USA<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">O. +1 678.391.9615<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> <o:p></o:p></span></p>
<p class="MsoNormal"><a href="applewebdata://B24C0762-C7C9-4431-8518-ACC915448B89/www.terragotech.com"><span style="color:purple">www.terragotech.com</span></a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>