Alan Jhonn Aguiar Schwyn <alanjas@...> writes: > > > >usb.core.USB Error: [Errno 13] Access denied (insufficient permissions) > Classic problems of permissions. Check your UDEV rule. > Do in a console: > > lsusb > > You see the device? And with: > > sudo lsusb > > > > Date: Wed, 10 Apr 2013 14:49:02 -0400From: jragin- Re5JQEeQqe8AvxtiuMwx3w@public.gmane.orgTo: pyusb-users- 5nwgofrqmnerv+lv9mx5urnah6klm...@public.gmane.org.netSubject: [pyusb- users] Issue reading interrrupt endpointsI have a Logitech NuLooq 3D mouse that I would like to get to work on my Raspberry Pi. There are drivers (spacenav ) available for Linux that were supposed to work, but I wasn’t able to get them to work on my Raspberry Pi. I gave up on getting them to work after a week, so right now I am trying to use Python to interface with the NuLooq. Since I am just starting to learn Python, I am doing all my development in PyDev for Eclipse on my Mac. I have the libusb and pyusb modules installed. And everything is working fine. In fact I am able to send a control transfer to turn on all the LEDS of the NuLooq, however, I am not able to read on the end point. Can someone help me out, what am I doing wrong? Thanks in advance. > Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress 0x81 EP 1 INbmAttributes 3 Transfer Type Interrupt > Synch Type None Usage Type Data wMaxPacketSize 0x0008 1x 8 bytes bInterval 10Please see attached files. I get the following errors when I run the python script. > Traceback (most recent call last): File "/Users/JRMN/Documents/Python/NotWorking.py", line 21, in <module> data = device.read(endpoint.bEndpointAddress,endpoint.wMaxPacketSize) File "/usr/local/lib/python3.3/site-packages/usb/core.py", line 654, in read > self._ctx.managed_claim_interface(self, intf) File "/usr/local/lib/python3.3/site-packages/usb/core.py", line 112, in managed_claim_interface self.backend.claim_interface(self.handle, i) File "/usr/local/lib/python3.3/site-packages/usb/backend/libusb1.py", line 519, in claim_interface > _check(_lib.libusb_claim_interface(dev_handle, intf)) File "/usr/local/lib/python3.3/site-packages/usb/backend/libusb1.py", line 403, in _check raise USBError(_str_error[ret], ret, _libusb_errno[ret]) > usb.core.USBError: [Errno 13] Access denied (insufficient permissions) > > ------------------------------------------------------------------------- ----- > Precog is a next-generation analytics platform capable of advanced > analytics on semi-structured data. The platform includes APIs for building > apps and a phenomenal toolset for data science. Developers can use > our toolset for easy data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter___________________ ____________________________ > pyusb-users mailing list > pyusb-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pyusb-users > > > ------------------------------------------------------------------------- ----- > Precog is a next-generation analytics platform capable of advanced > analytics on semi-structured data. The platform includes APIs for building > apps and a phenomenal toolset for data science. Developers can use > our toolset for easy data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > > _______________________________________________ > pyusb-users mailing list > pyusb-users@... > https://lists.sourceforge.net/lists/listinfo/pyusb-users >
I get -bash: lsusb: command not found. But I think that's because I am on a Mac, right? ------------------------------------------------------------------------------ Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis & visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter _______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users