dlinknctu / OpenNet

A Simulator for Software-Defined Wireless Local Area Network
GNU General Public License v2.0
72 stars 44 forks source link

OpenNet Installation #127

Open hanisami opened 5 years ago

hanisami commented 5 years ago

Hi,

I am using Ubuntu 14.04. I followed the instruction on Github to build and run OpenNet.

In ./install.sh, It is crushing on waf build for ns3. I built ns3.22 myself and continued the execution of install.sh without ns3. Everything was installed. When I am trying to run python mininet/examples/opennet/wifi/two-ap-one-sw.py, I am getting this error:

File "two-ap-one-sw.py", line 22, in import mininet.ns3 File "build/bdist.linux-x86_64/egg/mininet/ns3.py", line 45, in File "/usr/local/lib/python2.7/dist-packages/ns/core.py", line 5, in from . import _core ImportError: cannot import name _core

In addition, running wifi-cluster.py is giving this error: File "wifi-cluster.py", line 12, in from mininet.opennet import * File "build/bdist.linux-x86_64/egg/mininet/opennet.py", line 7, in ImportError: No module named netanim

Any help is appreciated.

Thank you

kansokusha commented 5 years ago

Hi hanisami,

In this case, the script reports "No module named netanim", netanim is an NS-3 module, and it seems it can not be imported. OpenNet shall be built via install.sh, install.sh will ensure python binding of NS-3 can be triggered, once python binding is completed, NS-3 modules shall be able to used in python.

What crush scenario do you counter when build NS-3? CPU at least 2 core and RAM more than 2 GB is recommended to build OpenNet.