def __init__(self, **traits):
        super(CameraDialog, self).__init__(**traits)

        # Load the plugins
        self.plugins = pkg_resources.get_entry_map('beams', 'camera_plugins')

        if 'dummy' not in self.plugins.keys():
            raise IOError("Plugin directory isn't configured properly")

        # Try to select the webcam
        try:
            self._select_plugin_by_name('webcam')
        except __HOLE__:
            self.select_fallback()
dataset/ETHPy150Open ptomato/Beams/beams/CameraDialog.py/CameraDialog.__init__