I have a number of data processing scripts that worked a few months ago but now getting seg faults. In one script I had to pull out code from a method and embed in the calling method. In this case, I am performing the simplest of tasks. I am trying to use OGR and Shapely to find the nearest street to a point.
OSX 10.12.6
Python 3.5.2 :: Anaconda custom (x86_64)
Shapely 1.6.1
from osgeo import ogr, osr
from shapely.geometry import Point
...
def FilterNearbyStreets (self, logLevel, pntSource):
shpPoint = Point(pntSource.GetX(), pntSource.GetY())
enoughSegments = False
bufferSize = 0.001
while (enoughSegments != True):
print ("About to buffer {}".format(bufferSize))
buffer = shpPoint.buffer(bufferSize)
print ("Buffered!!!")
We never get to Buffered!!!
Segmentation fault: 11
conda install shapely
conda install
andpip install
ever if C extension modules like osgeo.ogr and shapely are involved.