[gdal-dev] SystemErrors when running GDAL with python3 bindings
Aman Thakral
aman at thakral.ca
Sat Dec 17 14:13:38 PST 2016
Hi All,
I'm trying to add python3 support to a personal project:
https://github.com/granularag/pyspatial/tree/feature/python2_3_support
My unit tests pass with python2, but fail with python3. I'm getting the
following errors:
StopIteration
During handling of the above exception, another exception occurred:
SystemError: <built-in function delete_SpatialReference> returned a result
with an error set
During handling of the above exception, another exception occurred:
SystemError: <built-in function delete_Geometry> returned a result with an
error set
I recently compiled a local GDAL 2.1.2 and am running the tests as follows:
#!/bin/bash
set -e
set -x
export GDAL_HOME=$HOME/local
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GDAL_HOME/lib
nosetests -v
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.
Not sure what the difference is here between the python2 and python3
versions.
My python versions are 2.7 and 3.5.
Is this a known problem? Any help would be greatly appreciated.
Thanks!
Aman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20161217/e2372cb9/attachment.html>
More information about the gdal-dev
mailing list