Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Error in simple code

I just installed SimpleCV on my RaspberryPi (hopefully correct) but I just can't get this simple code (copied from the Example Codes) to run!

from SimpleCV import *
cam = Camera()

while (1):
        i = cam.getImage()


VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
Traceback (most recent call last):
  File "Webcamblob/", line 6, in <module>
  File "/usr/local/lib/python2.7/dist-packages/SimpleCV/", line 5684, in show
    d = Display(self.size())
  File "/usr/local/lib/python2.7/dist-packages/SimpleCV/", line 157, in __init__
    self.screen = pg.display.set_mode(resolution, flags)
error: Unable to open a console terminal
Exception in thread Thread-1 (most likely raised during interpreter shutdown):
Traceback (most recent call last):
  File "/usr/lib/python2.7/", line 551, in __bootstrap_inner
  File "/usr/local/lib/python2.7/dist-packages/SimpleCV/", line 26, in run
<type 'exceptions.TypeError'>: 'NoneType' object is not iterable

I hope anyone can help me, i do not know what to do anymore.