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

六眼飞鱼酱① 提交于 2019-12-02 12:10:22
andio

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).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!