I installed the nao Python SDK(naoqi) and when I run the script from the console it is correct, This is my code:
__author__ = 'raul'
from naoqi import ALProxy
tts = ALProxy("ALTextToSpeech", "192.168.1.121", 9559)
tts.say("Hello World")
but when I run my script I have the following error with PyCharm:
/System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 /Users/raul/Documents/untitled/main.py
Traceback (most recent call last):
File "/Users/raul/Documents/untitled/main.py", line 3, in <module>
from naoqi import ALProxy
ImportError: No module named naoqi
How can I add the nao sdk to my project in Pycharm?
i export the nao sdk:
$ export PYTHONPATH=${PYTHONPATH}:/Users/Raul/Documents/naoSDK
$ export DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:/Users/Raul/Documents/naoSDK
Thanks!!