I have a fresh install of Ubuntu 12.04, ran all the updates, then ran sudo apt-get install build-essential python-dev libsdl1.2-dev python-pygame
. However, when I run the following in the python interpreter:
import pygame
import pygame.camera
pygame.init()
pygame.camera.init()
cam = pygame.camera.Camera("/dev/video0",(640,480))
cam.get_image()
I get:
Fatal Python error: (pygame parachute) Segmentation Fault
Aborted (core dumped)
Any suggestions?
Update: this occurs with a fresh install of 11.10 as well.