title: OpenCV error: the function is not implemented
body: <p>I'm trying to get OpenCV working with Python on my Ubuntu machine.  I've downloaded and installed OpenCV, but when I attempt to run the following python code (which should capture images from a webcam and push them to the screen)</p>
  
  <pre class="lang-py prettyprint-override"><code>import cv
  
  cv.NamedWindow("w1", cv.CV_WINDOW_AUTOSIZE)
  capture = cv.CaptureFromCAM(0)
  
  def repeat():
      frame = cv.QueryFrame(capture)
      cv.ShowImage("w1", frame)
      time.sleep(10)
  
  while True:
      repeat()
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre class="lang-none prettyprint-override"><code>The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or
  Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and
  pkg-config, then re-run cmake or configure script
  </code></pre>
  
  <p>So I do what they ask: install the packages, move to the folder from whence I installed OpenCV, and run</p>
  
  <pre><code>sudo make uninstall
  make
  sudo make install
  </code></pre>
  
  <p>But when I try to run the python, it gives me the same error.  Am I missing something?</p>