title: Pygame wont load my camera on Mac?
body: <p>I am trying to access my webcam on Pygame to take pictures and save them BUT everytime I run the code: </p>
  
  <pre><code>import pygame.camera
  
  import pygame.image
  
  import sys
  
  pygame.camera.init()
  
  cameras = pygame.camera.list_cameras()
  
  print ("Using camera %s ..." % cameras[0])
  
  webcam = pygame.camera.Camera(cameras[0])
  
  webcam.start()
  
  # grab first frame
  
  img = webcam.get_image()
  
  WIDTH = img.get_width()
  
  HEIGHT = img.get_height()
  
  screen = pygame.display.set_mode( ( WIDTH, HEIGHT ) )
  
  pygame.display.set_caption("pyGame Camera View")
  
  while True :
  
   for e in pygame.event.get() :
  
       if e.type == pygame.QUIT :
  
           sys.exit()
  
   # draw frame
  
   screen.blit(img, (0,0))
  
   pygame.display.flip()
  
   # grab next frame    
  
   img = webcam.get_image()
  </code></pre>
  
  <p>I get this in IDLE: </p>
  
  <pre><code>Traceback (most recent call last):
    File "/Users/Victor/Documents/Python Related/Python Code for Class/blah.py", line 5, in &lt;module&gt;
      pygame.camera.init()
    File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pygame/camera.py", line 42, in init
      from pygame import _camera
  ImportError: cannot import name '_camera'
  </code></pre>
  
  <p>Is there something I am doing wrong or another module I can install on Python that can take pictures through the internal or external webcam of the device and store it or send it where it needs to be? </p>
  
  <p>Thank you</p>