Ask Your Question

SimpleCV Errors: VIDIOC_QUERYMENU_Invalid argument and Select Timeout

asked 2013-02-01 00:26:47 -0500

danm_daniel gravatar image

updated 2013-02-01 00:28:22 -0500

I see a lot of people have this same question, but there doesn't seem to be a sound solution. Following advice from the "VIDIOC_QUERYMENU: Invalid argument and Select Timeout with SimpleCV" thread, I tried 2 different cameras that are RPi verified peripherals, and both return this same error.

To recap, I'm running Raspbian Wheezy on Raspberry Pi, have a webcam (powered by hub) and working with simple viewer (I know the computer recognizes the cam because its ID is returned after lsusb command). When I execute the following commands, the error occurs.

  • $ python
  • >>>import SimpleCV
  • >>> from SimpleCV import Camera
  • >>> cam=Camera()

I tried arguments -1 and 0 for Camera function as well. After heavy googling, I can't seem to find any solutions.

Aside from any solutions (which would be much appreciated), has anybody actually got SimpleCV working with a webcam on the Raspberry Pi Rev B??

PS in case this helps, I'm following instructions straight from the "Getting Started with Raspberry Pi" which installs SimpleCV with the following commands:

  • $sudo apt-get update
  • $sudo apt-get install python-opencv python-scipy python-numpy python-pip
  • $sudo pip install https://github DOT com/ingenuitas/SimpleCV/zipball/master

    • reason for DOT in URL is because my "karma" on this site is "insufficient to post links"
edit retag flag offensive close merge delete


PS I tried $ sudo python as well

danm_daniel gravatar imagedanm_daniel ( 2013-02-01 00:33:30 -0500 )edit

4 Answers

Sort by ยป oldest newest most voted

answered 2013-02-06 19:53:09 -0500

xamox gravatar image

I know it's kind of annoying but it still works fine. I've gotten so use the warning that I don't even notice it anymore. I would do what kscottz suggest and just try getting an image off it. Here is a direct copy and paste of me doing it on my system.

SimpleCV:1> c = Camera()
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument

SimpleCV:2> i = c.getImage()

SimpleCV:3> i
SimpleCV:3: <SimpleCV.Image Object size:(640, 480), filename: (None), at memory location: (0x36257a0)>

SimpleCV:4: <SimpleCV.Display Object resolution:((640, 480)), Image Resolution: (640, 480) at memory location: (0x3623e18)>
edit flag offensive delete link more

answered 2013-02-03 12:19:42 -0500

kscottz gravatar image

This is just off the top of my head, but I know on Ubuntu the camera will throw that message but SimpleCV grabs the camera instance just fine. Does a call to cam.getImage() fail and if so what message does it return? What kind of camera are you using? I think we had an intern get SimpleCV running on a RaspberryPi I will ping him and see if he knows.

edit flag offensive delete link more


Any luck on this one. Same problem here but no image. Camera is fine with other software on the Pi.

Kevcook gravatar imageKevcook ( 2013-06-06 05:27:12 -0500 )edit

answered 2013-06-06 05:28:45 -0500

I also get the /bin/sh: 1: lsof: not found error as well.

edit flag offensive delete link more

answered 2013-04-05 13:39:56 -0500

MhAckNI gravatar image

@kscottz: The same error message appears while using the Fedora OS as well.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2013-02-01 00:26:47 -0500

Seen: 4,267 times

Last updated: Jun 06 '13