Posts Tagged ‘ os x ’

nxt-python in OS X

Setting up nxt-python in OS X requires a little extra effort. As described on its installation page, you will need to install LightBlue, which is Bluetooth API for Python. And in order to install LightBlue to OS X 10.6, a few manual operation needs to be done.

Nevertheless, the installation of LightBlue failed. It turns out I need to add the directory of PyObjC to my PYTHONPATH in order for it to work, which in my case (Python 2.6) is:

/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/PyObjC

Also, wherever you have placed the LightAquaBlue directory (the one in Step 2 for Mac OS 10.6 users, not the one in Step 3) will need to be in PYTHONPATH, too, e.g.:

/Library/Python/2.6/site-packages

Then you should be able to setup and install nxt-python without a problem.

Yay! MINDSTORMS NXT 2.0

Too bad, it doesn’t come with batteries and the NXT needs 6 AA while I only had 4. I went on installing the software on my MBP using the Snow Leopard fix downloaded from MINDSTORMS website. Unfortunately I got the “A required file is broken” message when starting NXT-G, a quick search suggested that re-run one of the driver packages (legodriver.pkg) that come with the CD would fix the problem.

Then I noticed the program crashes upon exiting. Again a quick search suggested that it does not work well with Adobe Flash Player 10.1. Removing the flash player using the uninstaller provided by Adobe and installing instead the version supplied with the CD fixed the problem.

Then somehow I am getting an error message:

Insecure Startup Items folder detected. Items in the Startup Items folder ("/Library/StartupItems/") have not been started because the folder does not have the proper security settings.

Once again a quick search showed that a file permission repair may fix the problem and luckily it did work for me.

Google rocks!