nsg-ethz / p4-utils

Extension to Mininet that makes P4 networks easier to build
GNU General Public License v2.0
183 stars 67 forks source link

No module named 'mininet' Issue #28

Open sankalpmittal1911-BitSian opened 2 years ago

sankalpmittal1911-BitSian commented 2 years ago

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!

edgar-costa commented 2 years ago

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?