Python preparation

7.5. Python preparation#

While eCAL is written in C++, it also offers a great python integration. In this chapter we show how to setup python for eCAL, so you can start using the samples from _getting_started_howto_pubsub_string_hello_world.

Important

The eCAL Python integration is called python3-ecal5. With the 5 at the end. The other name has already been taken by another package.

7.5.1. Dependencies#

First, you have to install some more development dependencies:

  • Windows:

    • Python 3 64-bit (https://www.python.org/downloads/)

    • The eCAL python integration. Choose the appropiate version from the download_archive and download the .whl file. Open a command prompt in your donwload directory and install the python whl with:

      pip install ecal5-****-win_amd64.whl
      
  • Ubuntu:

    • Python 3:

      sudo apt install python3 python3-pip
      
    • The eCAL Python integration.

      • If you have installed eCAL from a PPA:

        sudo apt install python3-ecal5
        
      • If you are not using a PPA, choose the appropiate version from the download_archive and download the .whl file. Open a terminal in your donwload directory and install the python whl with:

        sudo pip3 install ecal5-*-linux_x86_64.whl