I created a new bug entry in the tracker for this problem:

https://sourceforge.net/tracker/?func=detail&aid=2989603&group_id=145185&atid=761063

I did it because I would like first port test firmware to USB stack
2.6a and make code stable for Windows and Linux (the two I currently
have installed on my machine).

Wander

2010/4/19 Xiaofan Chen <xiaof...@gmail.com>:
> On Mon, Apr 19, 2010 at 8:51 PM, Xiaofan Chen <xiaof...@gmail.com> wrote:
>> On Mon, Apr 19, 2010 at 8:42 PM, Xiaofan Chen <xiaof...@gmail.com> wrote:
>>> [mc...@myfreebsd ~/Desktop/build/pyusb/tests]$ export 
>>> PYUSB_DEBUG_LEVEL=debug
>>> [mc...@myfreebsd ~/Desktop/build/pyusb/tests]$ python testpk2_1.py
>>> 2010-04-19 20:38:14,825 
>>> DEBUG:usb.backend.libusb01:_LibUSB.enumerate_devices()
>>> Traceback (most recent call last):
>>>  File "testpk2_1.py", line 28, in <module>
>>>    device=opendevice(0x04d8, 0x0033)
>>>  File "testpk2_1.py", line 22, in opendevice
>>>    raise "Device not found"
>>> TypeError: exceptions must be classes or instances, not str
>>>
>>> [mc...@myfreebsd ~/Desktop/build/pyusb/tests]$ python usbenum.py
>>> 2010-04-19 20:42:13,903 
>>> DEBUG:usb.backend.libusb01:_LibUSB.enumerate_devices()
>>
>> So the issue is in _LibUSB.enumerate_devices().
>>
>> Just in case, here is the /usr/include/usb.h from FreeBSD.
>
>
> And the one for Linux.
> http://libusb.svn.sourceforge.net/viewvc/libusb/trunk/libusb/usb.h.in?revision=573&view=markup
>
> And the one for Windows libusb-win32
> http://libusb-win32.svn.sourceforge.net/viewvc/libusb-win32/trunk/libusb/src/usb.h?revision=109&view=markup
>
> Minor differences for libusb-win32 and Linux libusb-0.1:
>
> Under libusb-win32,
>  287 /* Variables */
>  288 #ifndef __USB_C__
>  289 #define usb_busses usb_get_busses()
>  290 #endif
>  345   struct usb_bus *usb_get_busses(void);
>
> Under Linux and Mac OS X (FreeBSD is similar)
>  273 /* Variables */
>  274 extern struct usb_bus *usb_busses;
>
>
> --
> Xiaofan http://mcuee.blogspot.com
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> pyusb-users mailing list
> pyusb-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pyusb-users
>

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to