You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The top-level README of this repository has a section "Obtaining required software" which lists these three supported methods of doing so:
Download and run a virtual machine with the P4 development tools already installed.
Build a virtual machine, compiling and installing the P4 development tools within it.
Install the P4 development tools on an existing system with a supported version of Ubuntu Linux.
Did you follow the instructions for one of those three options? If so, which one?
If you did not follow one of those options, note that there are an unlimited number of things you might have tried to install the software, and I can't debug them all. It is much more efficient in both of our times if you follow one of the recommended ways of installing the software.
For example, a few minutes ago I followed the instructions for the first option "Download and run a virtual machine with the P4 development tools already installed", and when I tried make run in the load_balance directory, I did not get any errors about Python modules not being found.
i want to work on p4 load balancing, I'm facing issues while building,
tutorials/exercises/load_balance$ make
mkdir -p build pcaps logs
p4c-bm2-ss --p4v 16 --p4runtime-files build/load_balance.p4.p4info.txtpb -o build/load_balance.json load_balance.p4
load_balance.p4(105): [--Wwarn=unused] warning: 'ecmp_base' is unused
action set_ecmp_select(bit<16> ecmp_base, bit<32> ecmp_count) {
^^^^^^^^^
load_balance.p4(105): [--Wwarn=unused] warning: 'ecmp_count' is unused
action set_ecmp_select(bit<16> ecmp_base, bit<32> ecmp_count) {
^^^^^^^^^^
load_balance.p4(105): [--Wwarn=unused] warning: Unused action parameter ecmp_base
action set_ecmp_select(bit<16> ecmp_base, bit<32> ecmp_count) {
^^^^^^^^^
load_balance.p4(105): [--Wwarn=unused] warning: Unused action parameter ecmp_count
action set_ecmp_select(bit<16> ecmp_base, bit<32> ecmp_count) {
^^^^^^^^^^
sudo PATH=/home/iwave/tests/p4_load/tutorials/exercises/load_balance/p4env/bin:/home/iwave/.cargo/bin:/home/iwave/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin python3 ../../utils/run_exercise.py -t topology.json -j build/load_balance.json -b simple_switch_grpc
Traceback (most recent call last):
File "../../utils/run_exercise.py", line 29, in
import p4runtime_lib.simple_controller
File "/home/iwave/tests/p4_load/tutorials/utils/p4runtime_lib/simple_controller.py", line 25, in
from . import bmv2, helper
File "/home/iwave/tests/p4_load/tutorials/utils/p4runtime_lib/bmv2.py", line 16, in
from p4.tmp import p4config_pb2
ModuleNotFoundError: No module named 'p4.tmp'
make: *** [../../utils/Makefile:36: run] Error 1
The text was updated successfully, but these errors were encountered: