Python SDK - Installation Guide¶
Supported Operating Systems¶
OS | Version |
---|---|
Linux | Ubuntu 16.04 Xenial Xerus - 64bits only |
Windows | Microsoft Windows 10 64bits |
Mac | Mac OS X 10.12 Sierra |
Installing the SDK¶
Windows¶
Step | Action | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Python Make sure to download Python 2.7. You can find the installer here: http://python.org/download/ |
|||||||||||||
NAOqi for Python Extract: You can download the latest release from Developer Center website. For further details, see: Downloading & Installing SoftBank Robotics Software. |
|||||||||||||
Set the following environment variables:
|
|||||||||||||
Download and install the “Microsoft Visual C++ 2010 Redistributable Package (x86)”. (You can skip this step if you have already installed Choregraphe.) |
Mac¶
Step | Action | ||||||||
---|---|---|---|---|---|---|---|---|---|
Make sure the System Integrity Protection is disabled. For further details, see: [Apple] Configuring System Integrity Protection. |
|||||||||
Python
|
|||||||||
NAOqi for Python Extract: You can download the latest release from Developer Center website. For further details, see: Downloading & Installing SoftBank Robotics Software. |
|||||||||
Set the following environment variables:
By doing for example: $ export PYTHONPATH=${PYTHONPATH}:/path/to/python-sdk/lib/python2.7/site-packages
$ export DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:/path/to/python-sdk/lib
$ export QI_SDK_PREFIX=/path/to/python-sdk
|
|||||||||
Optionally, re-enable System Integrity Protection. |
Linux¶
Step | Action | ||||||
---|---|---|---|---|---|---|---|
Python Make sure to install Python2.7. There are many distributions shipped
with Python3 by default, so you should make sure to install the
|
|||||||
NAOqi for Python Extract: You can download the latest release from Developer Center website. For further details, see: Downloading & Installing SoftBank Robotics Software. |
|||||||
Set the following environment variables:
By doing for example: $ export PYTHONPATH=${PYTHONPATH}:/path/to/python-sdk/lib/python2.7/site-packages
$ export QI_SDK_PREFIX=/path/to/python-sdk
|
Checking the installation of the Python SDK¶
Windows¶
Run the default IDE (IDLE) that comes with the python installer.
Mac¶
Make sure to use
/usr/local/bin/python
Try to run:
import naoqi
Linux¶
Simply run:
import naoqi
If you do not get any error message, congratulations ! You are now ready to use the Python SDK.
If you do get an error message, please see: Python SDK - Troubleshooting.
Note for previous 1.10 users¶
Previously, 1.10 users did not have a separate Python SDK and had to set
PYTHONPATH to naoqi/sdk/lib
.
This method will not work anymore, (unless you are very lucky), so please do use the new Python SDK.