title: python getting Segmentation fault: 11 on OS 10.13
body: <p>Im getting <code>Segmentation fault: 11</code> error on my mac 10.13.6</p>
  
  <p>I'm running a virtualenv with Python 3.6.5 Anaconda</p>
  
  <p>I'm running a pixel flood filling script </p>
  
  <pre><code>img = cv2.imread(image,1)
  surface = cv2.Canny(img,100,200)
  
  def floodfill(x, y, oldColor, newColor):
  
      # assume surface is a 2D image and surface[x][y] is the color at x, y.
  
      if surface[x][y] != oldColor: # the base case
  
          return
  
      surface[x][y] = newColor
  
      floodfill(x + 1, y, oldColor, newColor) # right
  
      floodfill(x - 1, y, oldColor, newColor) # left
  
      floodfill(x, y + 1, oldColor, newColor) # down
  
      floodfill(x, y - 1, oldColor, newColor) # up
  
  floodfill(0, 0, 0, 100)
  plt.imshow(edges, cmap='gray')
  plt.show()
  </code></pre>
  
  <p>any suggestions?</p>