Gerry
2015-01-12 13:09:56 UTC
This message was sent earlier but it never showed up on the mail list.
In fact there are no mails showing up from Jan 1 - Jan 11, 2015...
All of the errors that show up in PyUSB happen in the PyUSB.core file
when I try to read from a device.
-------- Forwarded Message --------
Subject: PyUSB problems
Date: Mon, 12 Jan 2015 20:09:19 +0800
From: Gerry <***@gerbreown.com>
To: pyusb-***@lists.sourceforge.net
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
In fact there are no mails showing up from Jan 1 - Jan 11, 2015...
All of the errors that show up in PyUSB happen in the PyUSB.core file
when I try to read from a device.
-------- Forwarded Message --------
Subject: PyUSB problems
Date: Mon, 12 Jan 2015 20:09:19 +0800
From: Gerry <***@gerbreown.com>
To: pyusb-***@lists.sourceforge.net
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