I want to run pycm19a (http://m.lemays.org/projects/x10-cm19a-linux-driver).
It doesn't work. It does:
Traceback (most recent call last):
File "pycm19a.orig.py", line 346, in <module>
Dev.get_interface_altsetting(),
AttributeError: 'Device' object has no attribute 'get_interface_altsetting'
Where:
...
Dev = usb.core.find(idVendor=0x0bc7, idProduct=0x0002)
...
OutEp = usb.util.find_descriptor(
Dev.get_interface_altsetting(),
custom_match = \
lambda e: \
usb.util.endpoint_direction(e.bEndpointAddress) ==
usb.util.ENDPOINT_OUT
)
...
It looks like pyusb has changed since that was written so I looked into
patching it.
But not even the tutorial (
http://pyusb.sourceforge.net/docs/1.0/tutorial.html) runs. It just gives
me:
Traceback (most recent call last):
File "test.py", line 18, in <module>
alternate_settting = usb.control.get_interface(dev, interface_number)
File "/.../usb/control.py", line 242, in get_interface
data_or_wLength = 1
File "/.../usb/core.py", line 702, in ctrl_transfer
self.__get_timeout(timeout)
File "/.../usb/backend/libusb10.py", line 596, in ctrl_transfer
timeout))
File "/.../usb/backend/libusb10.py", line 403, in _check
raise USBError(_str_error[ret], ret, _libusb_errno[ret])
usb.core.USBError: [Errno 32] Pipe error
I tried the version my distribution (Gentoo) gives me in its package
manager (1.0.0a1) and directly running against git head, and get this same
behavior. I got this same error after a few changes to pycm19a. This
happens even when running as root, so it's not likely to be a permissions
issue.
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users