Yes, I just reinstalled it to make sure, but I still get the timeout error.


On Thu, Jul 18, 2013 at 1:46 AM, Wander Lairson Costa <
wander.lair...@gmail.com> wrote:

> Did you try the latest version on github [1] ?
>
> [1] https://github.com/walac/pyusb
>
> 2013/7/17 Elizabeth Tolman <etol...@princeton.edu>:
> > Thanks for helping me out!  Here is all of the info about the device:
> >
> > bus-0/\\.\libusb0-0005--0x1a86-0xe008     1A86/E008
> > - Manufacturer : WCH.CN
> > - Product      : USB to Serial
> >   wTotalLength:         41
> >   bNumInterfaces:       1
> >   bConfigurationValue:  1
> >   iConfiguration:       4
> >   bmAttributes:         80h
> >   MaxPower:             50
> >     bInterfaceNumber:   0
> >     bAlternateSetting:  0
> >     bNumEndpoints:      2
> >     bInterfaceClass:    3
> >     bInterfaceSubClass: 0
> >     bInterfaceProtocol: 0
> >     iInterface:         0
> >       bEndpointAddress: 82h
> >       bmAttributes:     03h
> >       wMaxPacketSize:   8
> >       bInterval:        5
> >       bRefresh:         0
> >       bSynchAddress:    0
> >       bEndpointAddress: 02h
> >       bmAttributes:     03h
> >       wMaxPacketSize:   8
> >       bInterval:        5
> >       bRefresh:         0
> >       bSynchAddress:    0
> >
> >
> > And here is the output of the debugging:
> >
> >
> > 2013-07-18 00:24:32,960 ERROR:usb.backend.libusb10:Error loading libusb
> 1.0
> > back
> > end
> > Traceback (most recent call last):
> >   File "C:\Python27\lib\site-packages\usb\backend\libusb10.py", line
> 648, in
> > get
> > _backend
> >     _lib = _load_library()
> >   File "C:\Python27\lib\site-packages\usb\backend\libusb10.py", line
> 198, in
> > _lo
> > ad_library
> >     l = WinDLL(libname)
> >   File "C:\Python27\lib\ctypes\__init__.py", line 365, in __init__
> >     self._handle = _dlopen(self._name, mode)
> > TypeError: expected string or Unicode object, NoneType found
> > 2013-07-18 00:24:32,963 ERROR:usb.backend.openusb:Error loading OpenUSB
> > backend
> > Traceback (most recent call last):
> >   File "C:\Python27\lib\site-packages\usb\backend\openusb.py", line 701,
> in
> > get_
> > backend
> >     _lib = _load_library()
> >   File "C:\Python27\lib\site-packages\usb\backend\openusb.py", line 248,
> in
> > _loa
> > d_library
> >     raise OSError('USB library could not be found')
> > OSError: USB library could not be found
> > 2013-07-18 00:24:32,970 INFO:usb.core:find(): using backend
> > "usb.backend.libusb0
> > 1"
> > 2013-07-18 00:24:32,970
> > DEBUG:usb.backend.libusb01:_LibUSB.enumerate_devices()
> > 2013-07-18 00:24:38,154
> > DEBUG:usb.backend.libusb01:_LibUSB.get_device_descriptor
> > (<usb.backend.libusb01._usb_device object at 0x0189DE90>)
> > 2013-07-18 00:24:38,155
> > DEBUG:usb.backend.libusb01:_LibUSB.get_device_descriptor
> > (<usb.backend.libusb01._usb_device object at 0x0189DF30>)
> > 2013-07-18 00:24:38,157
> > DEBUG:usb.backend.libusb01:_LibUSB.get_device_descriptor
> > (<usb.backend.libusb01._usb_device object at 0x018A30D0>)
> > 2013-07-18 00:24:38,157
> > DEBUG:usb.backend.libusb01:_LibUSB.get_device_descriptor
> > (<usb.backend.libusb01._usb_device object at 0x018A3170>)
> > Device found
> > 2013-07-18 00:24:38,158
> > DEBUG:usb.backend.libusb01:_LibUSB.get_configuration_des
> > criptor(<usb.backend.libusb01._usb_device object at 0x018A3170>, 0)
> > 2013-07-18 00:24:38,160
> > DEBUG:usb.backend.libusb01:_LibUSB.open_device(<usb.back
> > end.libusb01._usb_device object at 0x018A3170>)
> > 2013-07-18 00:24:38,160
> > DEBUG:usb.backend.libusb01:_LibUSB.set_configuration(650
> > 3984, 1)
> > 2013-07-18 00:24:38,161
> > DEBUG:usb.backend.libusb01:_LibUSB.get_configuration_des
> > criptor(<usb.backend.libusb01._usb_device object at 0x018A3170>, 0)
> > 2013-07-18 00:24:38,161
> > DEBUG:usb.backend.libusb01:_LibUSB.get_interface_descrip
> > tor(<usb.backend.libusb01._usb_device object at 0x018A3170>, 0, 0, 0)
> > 2013-07-18 00:24:38,163
> > DEBUG:usb.backend.libusb01:_LibUSB.get_configuration_des
> > criptor(<usb.backend.libusb01._usb_device object at 0x018A3170>, 0)
> > 2013-07-18 00:24:38,163
> > DEBUG:usb.backend.libusb01:_LibUSB.get_interface_descrip
> > tor(<usb.backend.libusb01._usb_device object at 0x018A3170>, 0, 0, 0)
> > 2013-07-18 00:24:38,164
> > DEBUG:usb.backend.libusb01:_LibUSB.get_configuration_des
> > criptor(<usb.backend.libusb01._usb_device object at 0x018A3170>, 0)
> > 2013-07-18 00:24:38,164
> > DEBUG:usb.backend.libusb01:_LibUSB.get_endpoint_descript
> > or(<usb.backend.libusb01._usb_device object at 0x018A3170>, 0, 0, 0, 0)
> > 2013-07-18 00:24:38,164
> > DEBUG:usb.backend.libusb01:_LibUSB.get_interface_descrip
> > tor(<usb.backend.libusb01._usb_device object at 0x018A3170>, 0, 0, 0)
> > 2013-07-18 00:24:38,165
> > DEBUG:usb.backend.libusb01:_LibUSB.get_configuration_des
> > criptor(<usb.backend.libusb01._usb_device object at 0x018A3170>, 0)
> > 2013-07-18 00:24:38,165
> > DEBUG:usb.backend.libusb01:_LibUSB.get_configuration_des
> > criptor(<usb.backend.libusb01._usb_device object at 0x018A3170>, 0)
> > 2013-07-18 00:24:38,167
> > DEBUG:usb.backend.libusb01:_LibUSB.get_interface_descrip
> > tor(<usb.backend.libusb01._usb_device object at 0x018A3170>, 0, 0, 0)
> > 2013-07-18 00:24:38,167
> > DEBUG:usb.backend.libusb01:_LibUSB.get_configuration_des
> > criptor(<usb.backend.libusb01._usb_device object at 0x018A3170>, 0)
> > 2013-07-18 00:24:38,167
> > DEBUG:usb.backend.libusb01:_LibUSB.get_interface_descrip
> > tor(<usb.backend.libusb01._usb_device object at 0x018A3170>, 0, 0, 0)
> > 2013-07-18 00:24:38,168
> > DEBUG:usb.backend.libusb01:_LibUSB.get_configuration_des
> > criptor(<usb.backend.libusb01._usb_device object at 0x018A3170>, 0)
> > 2013-07-18 00:24:38,170
> > DEBUG:usb.backend.libusb01:_LibUSB.get_endpoint_descript
> > or(<usb.backend.libusb01._usb_device object at 0x018A3170>, 0, 0, 0, 0)
> > 2013-07-18 00:24:38,170
> > DEBUG:usb.backend.libusb01:_LibUSB.get_interface_descrip
> > tor(<usb.backend.libusb01._usb_device object at 0x018A3170>, 0, 0, 0)
> > 2013-07-18 00:24:38,171
> > DEBUG:usb.backend.libusb01:_LibUSB.get_configuration_des
> > criptor(<usb.backend.libusb01._usb_device object at 0x018A3170>, 0)
> > 2013-07-18 00:24:38,171
> > DEBUG:usb.backend.libusb01:_LibUSB.claim_interface(65039
> > 84, 0)
> > 2013-07-18 00:24:38,171
> > DEBUG:usb.backend.libusb01:_LibUSB.intr_read(6503984, 13
> > 0, 0, 130, 8)
> > Traceback (most recent call last):
> >   File "testforquestion.py", line 62, in <module>
> >     main()
> >   File "testforquestion.py", line 55, in main
> >     data = endpoint.read(0x082, 8)
> >   File "C:\Python27\lib\site-packages\usb\core.py", line 301, in read
> >     return self.device.read(self.bEndpointAddress, size, self.interface,
> > timeout
> > )
> >   File "C:\Python27\lib\site-packages\usb\core.py", line 654, in read
> >     self.__get_timeout(timeout)
> >   File "C:\Python27\lib\site-packages\usb\_debug.py", line 60, in
> do_trace
> >     return f(*args, **named_args)
> >   File "C:\Python27\lib\site-packages\usb\backend\libusb01.py", line
> 501, in
> > int
> > r_read
> >     timeout)
> >   File "C:\Python27\lib\site-packages\usb\backend\libusb01.py", line
> 568, in
> > __r
> > ead
> >     timeout
> >   File "C:\Python27\lib\site-packages\usb\backend\libusb01.py", line
> 384, in
> > _ch
> > eck
> >     raise USBError(errmsg, ret)
> > usb.core.USBError: [Errno None] usb_reap: timeout error
> > 2013-07-18 00:24:38,211
> > DEBUG:usb.backend.libusb01:_LibUSB.release_interface(650
> > 3984, 0)
> > 2013-07-18 00:24:38,211
> > DEBUG:usb.backend.libusb01:_LibUSB.close_device(6503984)
> >
> >
> >
> > On Wed, Jul 17, 2013 at 5:49 PM, Wander Lairson Costa
> > <wander.lair...@gmail.com> wrote:
> >>
> >> 2013/7/17 Elizabeth Tolman <etol...@princeton.edu>:
> >> > I'm running Windows 7.   I can get a bit of information about the
> device
> >> > from the test program of libusb, if that would be helpful for you.
>  I'm
> >> > having a bit of trouble understanding how to use the debug feature.
> >> > When I
> >> > type "export PYUSB_DEBUG_LEVEL=debug"  into the Python command line, I
> >> > get
> >> > an error message with "invalid syntax."
> >> >
> >>
> >> Please, post here the information about you device (configurations,
> >> interfaces, endpoints, etc..)
> >>
> >> --
> >> Best Regards,
> >> Wander Lairson Costa
> >>
> >>
> >>
> ------------------------------------------------------------------------------
> >> See everything from the browser to the database with AppDynamics
> >> Get end-to-end visibility with application monitoring from AppDynamics
> >> Isolate bottlenecks and diagnose root cause in seconds.
> >> Start your free trial of AppDynamics Pro today!
> >>
> >>
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> >> _______________________________________________
> >> pyusb-users mailing list
> >> pyusb-users@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/pyusb-users
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > See everything from the browser to the database with AppDynamics
> > Get end-to-end visibility with application monitoring from AppDynamics
> > Isolate bottlenecks and diagnose root cause in seconds.
> > Start your free trial of AppDynamics Pro today!
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> > _______________________________________________
> > pyusb-users mailing list
> > pyusb-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/pyusb-users
> >
>
>
>
> --
> Best Regards,
> Wander Lairson Costa
>
>
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> pyusb-users mailing list
> pyusb-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pyusb-users
>
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to