This is the code I'm trying to run:
In : from osgeo import ogr In : datasource = ogr.Open('testdata.shp') In : datasource.GetLayerCount() Out: 1 In : layer = datasource.GetLayerByIndex(0) In : layer.GetName() Segmentation fault: 11
It doesn't matter what datasource I use. I've tried with several (even different formats) but I keep getting the same result.
Anyone faced this issue before? I've tried reinstalling
gdal (in my computer) and
GDAL (Python bindings) but still no luck. The weirdest thing is that it was working fine 2 days ago, and suddently started failing.
- OS X v10.8.5