NAOqi library to python sdk in ubuntu -


i unable run import naoqi gives error. shows no such modules found. after troubleshooting path/to/python-sdk. after gives error , not work. please step step solution. thank you

[dependencies]: python 2.7, boost library 1.55

[boost 1.55] [attention: has built gcc 4.8. install in case not have it.]

  • download boost 1.55 boost_1_55_0.tar.bz2 here

  • extract:
    $ tar --bzip2 -xf boost_1_55.tar.gz2

  • as described here have modify "boost_1_55_0/tools/build/v2/user-config.jam":
    $ echo "using gcc : 4.8 g++-4.8 ; " >> tools/build/src/user-config.jam

  • choose want install library , run:
    $ ./bootstrap.sh --prefix=/path/to/installation

  • build , install:
    $ ./b2 --toolset=gcc-4.8 install

  • add installation directory ld_library_path:
    $ export ld_library_path=${ld_library_path}:/path/to/installation


[naoqi python sdk]

  • choose directory , extract pynaoqi-python-2.7-naoqi-x.x-linux64.tar.gz in it.

  • set corresponding environmental variables:
    $ export pythonpath=$pythonpath:/path/to/naoqi/python/sdk
    $ export ld_library_path=$ld_library_path:/path/to/naoqi/python/sdk

  • check if went well. open python terminal (python, ipython, etc) , run:
    import naoqi

  • if no error, ready go.


cheers!


Comments