When you install Choregraphe, the SDK will be installed. Pass the SDK path through python before launching.
naoqi-console
#!/bin/bash
NAOQI_PATH=[Choregarphe.app path]/Contents/Resources/lib
#Pass the SDK path to python
export PYTHONPATH=${PYTHONPATH}:${NAOQI_PATH}
export DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:${NAOQI_PATH}
/usr/bin/python
sh naoqi-console
$ sh naoqi-console
Python 2.7.10 (default, Jul 14 2015, 19:46:27)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>> import naoqi
that's all
Recommended Posts