I am a new user to PyUSB and LibUSB and am trying to set the device
configuration, but have permission issues.

My system information is:
OS Version: Linux 2.6.32-27-generic #49-Ubuntu SMP Thu Dec 2 00:51:09 UTC
2010 x86_64 GNU/Linux
Libusb Version: libusb-1.0-0
PyUSB Version: 1.0.0-alpha-1

Code Snippet:
-----------------------------------------
import usb.core
DELLC_USB_VEND_ID = 0x413C
DELLC_USB_PROD_ID = 0x2005

dev = usb.core.find(idVendor=DELLC_USB_VEND_ID, idProduct=DELLC_USB_PROD_ID)
if dev is None:
  print "Device not found, quiting"
  return
try:
  dev.set_configuration()
except IOError:
  print "Unable to set the device configuration"
-----------------------------------------
Output:
-----------------------------------------
libusb couldn't open USB device /dev/bus/usb/003/003: Permission denied.
libusb requires write access to USB device nodes.
Unable to set the device configuration
-----------------------------------------

A search of some sites suggest releasing the kernel lock on the device,
using udev to remount the device within the user's privileges or running the
script with root privileges. However, I was wondering what the preferred
method for gaining read/write privileges to the device and how to accomplish
this.

-- 

Thanks,
Daemeon
------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to