2011/1/3 mike s <mikescal...@hotmail.com>: > > > > Hi, > I'm trying to start interfacing with USB devices with Python which led me to > PyUSB. I have installed the following software already: > Mac OSX 10.6.5 > Xcode 3.2.3 > Python 2.6.6 and 3.2 > pkg-config-0.18.1 > libusb-1.0.8 > pyusb-1.0.0-a1 > > In Python (2.6) I can have it import the usb.core and usb.util but when I go > to run a sample test program (below) > import usb.core > import usb.util > import sys > > # find our device > dev = usb.core.find(idVendor=0x8086, idProduct=0x00b2) > > # was it found? > if dev is None: > raise ValueError('Device not found') > > # set the active configuration. With no arguments, the first > # configuration will be the active one > dev.set_configuration() > > print "all done" > I get this error and not the proper one > Traceback (most recent call last): > File "/Users/admin/Desktop/python test/find wacom", line 7, in <module> > dev = usb.core.find(idVendor=0x8086, idProduct=0x00b2) > File > "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/usb/core.py", > line 829, in find > raise ValueError('No backend available') > ValueError: No backend available > > I've looked around and found a few forums addressing the issue but didn't > really get a clear answer. I found one that talked about making some changes > to a file but wasn't real clear on what exactly the changes were. Any help > would be greatly appreciated. > Thanks, > mike scalisi > Sorry for the long delay, I just missed your email in my inbox. Please, set the environment varivale PYUSB_DEBUG_LEVEL=debug, run the script again and post the output you get.
-- Best Regards, Wander Lairson Costa LCoN - Laboratório de Computação Natural - Natural Computing Laboratory (http://www.mackenzie.com.br/lcon.html) Programa de Pós-Graduação em Engenharia Elétrica (PPGEE) Faculdade de Computação e Informática (FCI) Universidade Presbiteriana Mackenzie - SP - Brazil ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users