This page has deprecated and will be archived. Please go to https://www.bitcraze.io/.

Setting-up python development environment

Up-to-date information on how to run the python client from source can be found in the project readme. This page aims at being a more user-friendly walk-throw.

Windows

Install dependencies:

  1. Python 2.7 32bit (x86) from https://www.python.org/downloads/windows/
  2. PyQTGraph for Python 2.7 32bit from http://www.pyqtgraph.org/

To install python dependencies you can use PIP, a python package manager that is installed with python. To use it launch a Windows command line client by typing “windows key” then “cmd”. In the command line windows type the following (you can copy-paste the lines):

C:\Python27\Scripts\pip.exe install pyusb==1.0.0b2
C:\Python27\Scripts\pip.exe install pysdl2

Download or clone the Crazyflie client. You can download a zip of the sourcec ode from github or clone it using git for windows or a git GUI client.

Now that you have a copy of the Client source code, download SDL2 32bit from the SDL website (http://libsdl.org/download-2.0.php) and copy the file SDL2.dll in the source folder.

You can now run the client from the command line window:

cd <folder where the source code is cloned>
C:\Python27\Python.exe bin\cfclient