Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Tip
titleOops!

Before you can go on, you need to install Python:

  • Download Python 2.7.x from https://www.python.org/ (NOT Python 3!)

    Warning

    At the time of writing, Python 2.7.10 was just released. It doesn't work for compiling the OpenWSN code in emulation mode, for the reasons detailed in http://comments.gmane.org/gmane.comp.python.cython.user/13394.

    At the time of writing, we recommend you use Python 2.7.9.

    Let's hope Python 2.7.11 fixes this bug. If you read this and Python 2.7.11 was already released and works, please edit this page, or leave a comment at the bottom.


  • Add the following directories to your PATH environment variable:
    • C:\Python27
    • C:\Python27\Scripts
  • Verify you can call python:

    Code Block
    languagebash
    C:\Users\Thomas>python --version
    Python 2.7.9


  • Install pywin32, an extension for Windows. You will need it to interact with the TAP virtual interface
  • Install the Microsoft Visual C++ for Windows. You will need it to compile the yappi module which will be installed with pip at next
  • Install the OpenWSN Python dependencies (from the openwsn-sw\ and coap\ directory on your Desktop):

    Code Block
    languagebash
    C:\Users\Thomas\Desktop\openwsn-sw> pip install -r requirements.txt
    C:\Users\Thomas\Desktop\coap> pip install -r requirements.txt


  • Install SCons, the build environment:

    Code Block
    languagebash
    C:\Users\Thomas\Desktop\openwsn-sw> pip install --egg scons


    Note

    If you have any problem with the installation of SCons, try the following command

    Code Block
    languagebash
    pip install --index-url=http://pypi.python.org/simple --trusted-host pypi.python.org --egg scons



...