How to install lightblue (bluetooth) module on Snow Leopard?

后端 未结 1 1284
情书的邮戳
情书的邮戳 2021-01-27 03:11

I\'m trying to install the bluetooth module from lightblue.

My system: Mac OS X Snow Leopard 10.6.8, Python 2.7, gcc 4.2 & 4.0, xcode v.3.2.3 . I checked , i also go

相关标签:
1条回答
  • 2021-01-27 03:41

    I accidentally found the solution, I grabbed this from : lightblue

    For Mac OS 10.6 users:

    1. Open src/mac/_lightblue.py and change signature="v@:@iB" to signature="v@:@iZ" (line 468)
    2. Download and unzip LightAquaBlue-python-MacOS10.6.zip, which contains a LightAquaBlue directory. Move this directory into your python site-packages library, e.g. /Library/Python/2.6/site-packages
    3. Download and unzip LightAquaBlue-framework-MacOS10.6.zip, which contains a (completely different) LightAquaBlue directory. Move this directory into src/mac to replace the existing src/mac/LightAquaBlue directory. This should fix the architecture/build problems that existed with the old LightAquaBlue xcode project.
    4. Run python setup.py install as per normal to install.

    Now when running python setup.py install ,I got this : ** BUILD SUCCEEDED ** Using pip will fail, except we alter some of installation source folders as above. I got 'build succeeded', but haven't tested the module yet, as I need to finish other installation steps. I'm installing nxt-python ( python interface to control/program my lego mindstorm NXT -> nxt-python).

    0 讨论(0)
提交回复
热议问题