I wanted to read the usb data. for that i am using the pyusb library. and i had written a script
import usb.core
import usb.util
device = usb.core.find(bDeviceClass=9) # 9 is for hub type usb device
if device is None:
sys.exit("Could not find Id System Barcode Reader.")
if device.is_kernel_driver_active(0):
print "Kernal Driver Active!"
while running this its giving me the error. like
usb.core.USBError: [Errno 13] Access denied (insufficient permissions)