<div dir="ltr"><span style="color:rgb(0,0,0);font-size:12.8px">Hi All,</span><div style="color:rgb(0,0,0);font-size:12.8px"><br>I'm trying to add python3 support to a personal project:</div><div style="color:rgb(0,0,0);font-size:12.8px"><br></div><div style="color:rgb(0,0,0);font-size:12.8px"><a href="https://github.com/granularag/pyspatial/tree/feature/python2_3_support" target="_blank">https://github.com/granularag/<wbr>pyspatial/tree/feature/<wbr>python2_3_support</a><br></div><div style="color:rgb(0,0,0);font-size:12.8px"><br></div><div style="color:rgb(0,0,0);font-size:12.8px">My unit tests pass with python2, but fail with python3.  I'm getting the following errors:</div><div style="color:rgb(0,0,0);font-size:12.8px"><font face="monospace, monospace"><br></font></div><div style="color:rgb(0,0,0);font-size:12.8px"><div><font face="monospace, monospace">StopIteration</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">During handling of the above exception, another exception occurred:<br></font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">SystemError: <built-in function delete_SpatialReference> returned a result with an error set</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">During handling of the above exception, another exception occurred:</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">SystemError: <built-in function delete_Geometry> returned a result with an error set</font></div><div><br></div></div><div style="color:rgb(0,0,0);font-size:12.8px">I recently compiled a local GDAL 2.1.2 and am running the tests as follows:</div><div style="color:rgb(0,0,0);font-size:12.8px"><br></div><div style="color:rgb(0,0,0);font-size:12.8px"><div>#!/bin/bash</div><div>set -e</div><div>set -x</div><div><br></div><div>export GDAL_HOME=$HOME/local</div><div>export LD_LIBRARY_PATH=$LD_LIBRARY_<wbr>PATH:$GDAL_HOME/lib</div><div>nosetests -v</div></div><div style="color:rgb(0,0,0);font-size:12.8px"><br></div><div style="color:rgb(0,0,0);font-size:12.8px">Has anyone see these errors before?  My system wide gdal is 1.11.2 that I am using for python 2.  I tried using my system wide GDAL with python3 as well, but get the same errors.</div><div style="color:rgb(0,0,0);font-size:12.8px"><br></div><div style="color:rgb(0,0,0);font-size:12.8px">Not sure what the difference is here between the python2 and python3 versions.</div><div style="color:rgb(0,0,0);font-size:12.8px"><br>My python versions are 2.7 and 3.5.</div><div style="color:rgb(0,0,0);font-size:12.8px"><br></div><div style="color:rgb(0,0,0);font-size:12.8px">Is this a known problem?  Any help would be greatly appreciated.</div><div style="color:rgb(0,0,0);font-size:12.8px"><br>Thanks!</div><div style="color:rgb(0,0,0);font-size:12.8px">Aman</div></div>