[gdal-dev] Inifitine recursion in ogr.py

Casper Børgesen (CABO) CABO at NIRAS.DK
Tue Nov 13 23:13:13 PST 2012


Hi!

I am using GDAL 1.9.2 x64, Python 3.3 x64 and Windows 7 and I have a problem with infinite recursion in ogr.py. My initial call is:

            feature = ogr.Feature(layer.GetLayerDefn())

and the call stack:

__init__

Python\lib\site-packages\osgeo\ogr.py

__getattr__

Python\lib\site-packages\osgeo\ogr.py

GetField

Python\lib\site-packages\osgeo\ogr.py

GetFieldIndex

Python\lib\site-packages\osgeo\ogr.py

__getattr__

Python\lib\site-packages\osgeo\ogr.py

GetField

Python\lib\site-packages\osgeo\ogr.py

... repeating...

...


I have tried using Eclipse 4.2 with Pydev 2.7 and PyScripter 2.5.3, and in both cases the debug functionality is messed up after the above initial call. When just running the script, no problems occur.
What can I do to avoid this problem?


Best regards

Casper
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20121114/098ff74a/attachment.html>


More information about the gdal-dev mailing list