Hello, I'm running pyusb-1.0.0-a1 (installed as per README file) on a fresh installation of ubuntu 11.10 64 bit (kernel version 3.0.0-12-generic) on which both libusb 0.1-4 [2:0.1.12-18] an libusb 1.0-0 [2:1.0.8-4] are installed.
I was trying to follow the tutorial but I quickly got stucked on the following problem: >>> import usb.core >>> import usb.util >>> dev = usb.core.find(idVendor=0x04D8, idProduct=0x0043) >>> dev <usb.core.Device object at 0x7f808bda2a50> >>> import sys >>> for cfg in dev: ... sys.stdout.write(str(cfg.bConfigurationValue) + '\n') ... 1 >>> dev.set_configuration() #the same for dev.set_configuration(1) libusb couldn't open USB device /dev/bus/usb/004/003: Permission denied. libusb requires write access to USB device nodes. Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python2.7/dist-packages/usb/core.py", line 530, in set_configuration self._ctx.managed_set_configuration(self, configuration) File "/usr/local/lib/python2.7/dist-packages/usb/core.py", line 91, in managed_set_configuration self.managed_open() File "/usr/local/lib/python2.7/dist-packages/usb/core.py", line 70, in managed_open self.handle = self.backend.open_device(self.dev) File "/usr/local/lib/python2.7/dist-packages/usb/_debug.py", line 52, in do_trace return f(*args, **named_args) File "/usr/local/lib/python2.7/dist-packages/usb/backend/libusb10.py", line 446, in open_device _check(_lib.libusb_open(dev.devid, byref(handle))) File "/usr/local/lib/python2.7/dist-packages/usb/backend/libusb10.py", line 357, in _check raise USBError(_str_error[retval.value]) usb.core.USBError: Access denied (insufficient permissions) >>> A quick google search points to issues linked to the MacOS kernel... but the fact is that I am running on GNU/linux. What am I doing wrong? Thanks in advance for your help and support! :) /mac ------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Ciosco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users