This script is for Slackware 14.1 only and may be outdated.

SlackBuilds Repository

14.1 > Python > nxt-python (2.2.2)

nxt-python is a python 2.x driver/interface for the Lego Mindstorms NXT robot.


In order to use nxt-python with an NXT kit, you should add a 'lego' group to your system, and add yourself to that group:

# groupadd lego
# usermod -a -G lego YourUserName

You will also want to set up a udev rule to identify NXT hardware and grant the 'lego' group permission to use it.

A sample rule is included for you in /usr/share/nxt-python, but you may want to verify the vendor code of the NXT unit.

To verify the vendor code, connect the NXT hardware to your computer and then run:


Look at the ID for the Lego device; it will probably be 0694, but if not, then change the value in the sample udev rule to match.

Save the sample udev rule (70-lego.rules) to /etc/udev/rules.d/

Log out and log back in, and you should now have full control, via Python, over your NXT hardware.

Requires at least one of these
pyusb (for USB communication)
pybluez (for bluetooth communication)

Maintained by: klaatu
Keywords: lego,nxt,mindstorm
ChangeLog: nxt-python


Source Downloads:
nxt-python-2.2.2.tar.gz (39b76db07ba22811651555ed33c35821)

Download SlackBuild:
nxt-python.tar.gz.asc (FAQ)

(the SlackBuild does not include the source)

Validated for Slackware 14.1

See our HOWTO for instructions on how to use the contents of this repository.

Access to the repository is available via:
ftp git cgit http rsync

© 2006-2024 Project. All rights reserved.
Slackware® is a registered trademark of Patrick Volkerding
Linux® is a registered trademark of Linus Torvalds