Hi, Could you please post the C and Python source codes?
2015-01-12 10:09 GMT-02:00 Gerry <gbr...@gerbreown.com>: > I have just reinstalled Pyusb on my Raspberry Pi. When I try to run the > application I have created I get the following error messages: > "Traceback (most recent call last): > File "gsbwx.py", line 61, in <module> > d1 = device.read(endpoint.bEndpointAddress, endpoint.wMaxPacketSize) > File "/usr/local/lib/python3.2/dist-packages/usb/core.py", line 918, > in read > self.__get_timeout(timeout)) > File "/usr/local/lib/python3.2/dist-packages/usb/backend/libusb0.py", > line 507, in intr_read > timeout) > File "/usr/local/lib/python3.2/dist-packages/usb/backend/libusb0.py", > line 562, in __read > timeout > File "/usr/local/lib/python3.2/dist-packages/usb/backend/libusb0.py", > line 380, in _check > raise USBError(errmsg, ret) > usb.core.USBError: [Errno None] b'No error'" > > I have included the following import statements in my code > "import sys > import usb.core > import usb.backend.libusb1 > import usb.util" > > and all of the error messages are pointing to "libusb0.py" not > "libusb1.py" as in my import statements. > > > I am trying to read an Acurite weather station. I have also tried this > on another computer system and also could not read the device. I have a > program that is written in C and it can read the device so I don't know > why Python can't read it. > > Any suggestions on how to fix the problem will greatly appreciated. > > I sent the above message on Jan 11. I am now getting the following errors: > > "Traceback (most recent call last): > File "gsbwx.py", line 62, in <module> > d1 = device.read(endpoint.bEndpointAddress, endpoint.wMaxPacketSize) > File "/usr/local/lib/python2.7/dist-packages/usb/core.py", line 905, > in read > intf, ep = self._ctx.setup_request(self, endpoint) > File "/usr/local/lib/python2.7/dist-packages/usb/core.py", line 190, > in setup_request > self.managed_claim_interface(device, intf) > File "/usr/local/lib/python2.7/dist-packages/usb/core.py", line 146, > in managed_claim_interface > self.backend.claim_interface(self.handle, i) > File "/usr/local/lib/python2.7/dist-packages/usb/backend/libusb0.py", > line 468, in claim_interface > _check(_lib.usb_claim_interface(dev_handle, intf)) > File "/usr/local/lib/python2.7/dist-packages/usb/backend/libusb0.py", > line 380, in _check > raise USBError(errmsg, ret) > usb.core.USBError: [Errno None] could not claim interface 0: Device or > resource busy > > Any ideas on why this is NOT WORKING??? Are there any other modules that > work with Python and USB??? > > Thanks, > > Gerry > > ------------------------------------------------------------------------------ > New Year. New Location. New Benefits. New Data Center in Ashburn, VA. > GigeNET is offering a free month of service with a new server in Ashburn. > Choose from 2 high performing configs, both with 100TB of bandwidth. > Higher redundancy.Lower latency.Increased capacity.Completely compliant. > vanity: www.gigenet.com > _______________________________________________ > pyusb-users mailing list > pyusb-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pyusb-users -- Best Regards, Wander Lairson Costa ------------------------------------------------------------------------------ New Year. New Location. New Benefits. New Data Center in Ashburn, VA. GigeNET is offering a free month of service with a new server in Ashburn. Choose from 2 high performing configs, both with 100TB of bandwidth. Higher redundancy.Lower latency.Increased capacity.Completely compliant. http://p.sf.net/sfu/gigenet _______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users