Traceback (most recent call last): File "./miniedit.py", line 63, in <module> from mininet.net import info,debug, warn, setLogLevel
ImportError: No module named mininet.net 2 2 Answers
notes you must launch miniedit.py from a remote terminal "that has visualization" using ssh .
MiniEdit is Mininet's graphical user interface. It is provided by the mininet package in all currently supported versions of Ubuntu.
Install mininet from the default Ubuntu repositories.
sudo apt install python2.7 mininetChange directories to the directory containing miniedit.py.
cd /usr/lib/python2.7/dist-packages/mininet/examples/To run MiniEdit, execute this command:
python miniedit.pyThe online MiniEdit instructions say that you need
sudoto start MiniEdit, but whoever wrote those instructions was wrong. In Ubuntu you don't need to be root to start MiniEdit with the python interpreter. It's a bad idea to start graphical applications as root in Ubuntu. You can avoid the unnecessary use ofsudoby starting MiniEdit as an ordinary user.
MiniEdit has a simple user interface that presents a canvas with a row of tool icons on the left side of the window, and a menu bar along the top of the window. Create a custom network topology using MiniEdit by dragging objects from the left panel onto the canvas.
MiniEdit doesn't have any built-in grid lines to align the objects, and whenever you click an object to connect it to another object, it jiggles and sometimes it moves a bit on the canvas. To improve the alignment of the network diagram you can install a screen ruler app with the following command;
sudo apt install screenruler