gRPC Python is supported for use with Python 2.7 or Python 3.4 or higher. For the project pourpose we will use Python >= 3.4
- Python >= 3.4
- pip (python-pip) [https://pip.pypa.io/en/stable/quickstart/]
$ pip install virtualenv
for more details regarding virtualenv
['https://virtualenv.pypa.io/en/latest/']
$ virtualenv venv
$ source venv/bin/activate
this command must be executed every time, just before start to work with the project
As soon the virtualenv is active you can install all the dependencies with the command below
$ pip install -r requirements.txt
Clean the already generated gRPC code $ cd grpc-services/protos $ ./cleanup.sh
From the base directory of the project
$ cd grpc-services/protos
$ ./build.sh
first step set the env var PYTHONPATH
$ export PYTHONPATH="${PYTHONPATH}:./grpc-services/protos/gen-py:./twamp:../xdp_experiments/srv6-pfplm/"
then execute the script
$ python ppl/ppl_sender_server.py