This is a peculiar one:
This works:
callback = CreateLocationCallback(locations)
dist_callback = callback.distance
routing.SetArcCostEvaluatorOfAllVehicles(dist_callback)
...
assignment = routing.SolveWithParameters(search_parameters)
This does not
callback = CreateLocationCallback(locations)
routing.SetArcCostEvaluatorOfAllVehicles(callback.distance)
...
assignment = routing.SolveWithParameters(search_parameters)
Occurs on OSX, perhaps something to do with not using python reference counts correctly??
I also encountered the same problem. Your tentative solution saves my life...
Most likely quirks in the GC.
As the API has changed a lot since 7.0, I will close the bug.
Most helpful comment
I also encountered the same problem. Your tentative solution saves my life...