As some background, this is what I posted to the NXT-python forum: 

I have been trying to get my lego mindstorms nxt to run with python.

This is the error I'm getting when I run spin.py:

>>> Host: 00:16:53:07:CB:5F Name: Johnny 5 Strict: True
USB: True BT: True Fantom: True FUSB: False FBT: True
USB module unavailable, not searching there
Fantom module unavailable, not searching there
Traceback (most recent call last):
 File "C:\Python26\Lib\SITE-P~1\PYTHON~2\pywin\framework
\scriptutils.py", line 322, in RunScript
   debugger.run(codeObject, __main__.__dict__,
 start_stepping=0)
 File "C:\Python26\Lib\SITE-P~1\PYTHON~2\pywin\debugger\__init__.py",
line 60, in run
   _GetCurrentDebugger().run(cmd, globals,locals, start_stepping)
 File
 "C:\Python26\Lib\SITE-P~1\PYTHON~2\pywin\debugger\debugger.py",
line 655, in run
   exec cmd in globals, locals
 File "C:\Users\trizion\Desktop\nxt-python-2.2.0\examples\spin.py",
line 12, in <module>
   b = nxt.locator.find_one_brick(debug=True)
 File "C:\Python26\lib\site-packages\nxt\locator.py", line 137, in
find_one_brick
   raise BrickNotFoundError
BrickNotFoundError


my .nxt-python file is this:
[Brick]
strict = 0
host = 00:16:53:07:CB:5F
name = Johnny 5
method = usb=True, bluetooth=True, fantomusb=True

It is running on NXT 1.31 using NXT-python 2.2.0 and the most recent
pyUSB 0.4.3 . My computer is running windows 7 and python 2.6, if that
changes anything.

Their suggestion was to run
"import usb" 

When I do, I get this error:
>>> import usb
Traceback (most recent call last):
  File
 "<interactive input>", line 1, in <module>
ImportError: DLL load failed: The specified module could not be found.

I am so lost right now, please someone help. Thank you in advance. 
------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to