title: Why python.exe stopped working?
body: <p>I try to use OpenCV for Python. I have just two lines of the code:</p>
  
  <pre><code>import cv
  capture = cv.CreateFileCapture('test.avi')
  </code></pre>
  
  <p>If I run this code from the command line, Windows creates a window with the following message:</p>
  
  <pre><code>python.exe stopped working
  A problem caused the program to stop working correctly.
  Windows will close the program and notify you if a solution is available.
  </code></pre>
  
  <p>What can be the a reason of that?</p>
  
  <hr>
  
  <p>I would like to add some details. Not sure if they are relevant. In the examples that I found people use <code>cvCreateFileCapture</code> instead of <code>cv.CreateFileCapture</code>. But in this case my program generate a NameError (cvCreateFileCapture is not found).</p>
  
  <p>In general I was able to do a simple stuff with the OpenCV (so, it is installed and it works). For example I was able to change format of an image:</p>
  
  <pre><code>import cv
  im = cv.LoadImageM("test.jpg")
  print type(im)
  cv.SaveImage("test.png", im)
  </code></pre>
  
  <p><strong>ADDED</strong></p>
  
  <p>"In OpenCV2.2\samples\python" I found many *.py samples. I run some of them and they work fine (I see some animation and so on). The I tried to find a file that contains "CreateFileCapture". I found only one such file (minidemo.py) and I run it. As a result I got the same problem as described above.</p>