View Single Post
  #1   Spotlight this post!  
Unread 05-02-2015, 11:33
team-4480's Avatar
team-4480 team-4480 is offline
Debug? What's that?
FRC #4480
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Minnesooota
Posts: 222
team-4480 will become famous soon enoughteam-4480 will become famous soon enough
Python: USBCamera does not work?

Hi! We ran into a problem when trying to set up a USBCamera with RobotPy and Python. This code gives us an error:
Code:
        self.usb_camera=wpilib._impl.USBCamera()
wpilib._impl.CameraServer.setAutomaticCapture(self.usb_camera)
We get a module has no attribute to USBCamera and CameraServer error. I tried importing wpilib._impl but that didn't help anything. Thanks a bunch in advance!