I had the same problem and it took quite a while to figure out.
Code:
try:
self.camera = wpilib.USBCamera()
self.camera.startCapture()
self.camServ = wpilib.CameraServer()
self.camServ.startAutomaticCapture(self.camera)
except:
self.camera = None
So you create a camera object, start it, then start the camera server. The try/except is in case you want to test without the camera, and it won't break.