>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 -0400
From: jra...@gmail.com
To: pyusb-users@lists.sourceforge.net
Subject: [pyusb-users] Issue reading interrrupt endpoints
I 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 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 10
Please 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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users