title: Python AttributeError: 'module' object has no attribute 'DIST_L2'
body: <p>I am trying to use <code>cv2.distanceTransform()</code> method in Python. And I am getting an error when running the following line of code:</p>
  
  <pre><code>dist_transform = cv2.distanceTransform(opening,cv2.DIST_L2,5)
  </code></pre>
  
  <p>I get the following error when running this code:</p>
  
  <blockquote>
    <p>AttributeError: 'module' object has no attribute 'DIST_L2'</p>
  </blockquote>
  
  <p>Similar questions have been asked before, and i know that  this problem occurs when you import 'something' when your python file name is 'something.py'.
  However, my python file name is segment3.py.</p>
  
  <p>Can anyone please help me with this? I am trying to do segmentation using watershed algorithm.
  I am working on Fedora20.
  Thanks in advance!</p>