p4-utils icon indicating copy to clipboard operation
p4-utils copied to clipboard

No module named 'mininet' Issue

Open sankalpmittal1911-BitSian opened this issue 3 years ago • 1 comments

Hello all, I have installed P4-utils and P4 from scratch on my ubuntu 20.04 server from scratch using the following command: curl -sSL https://raw.githubusercontent.com/nsg-ethz/p4-utils/master/install-tools/install-p4-dev.sh | bash

However when I try to run any P4 code, it gives the following error:

from mininet.clean import cleanup, sh
ModuleNotFoundError: No module named 'mininet'

Is it the issue of ubuntu version since the installation script is only tested on ubuntu 18.04.4? Can someone help?

Thank you!

Hi @sankalpmittal1911-BitSian, sorry for the late reply,

Could you solve it?

It could be do to 20.04 since our scripts have only been tested up to 18.04. However, your error seems to be mininet, which is one of our dependencies.

Mininet is installed here: https://github.com/nsg-ethz/p4-utils/blob/master/install-tools/install-p4-dev.sh#L513

Can you try to run that manually? Or could you check why that went wrong?

edgar-costa avatar Feb 07 '22 11:02 edgar-costa