Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenNet Installation #127

Open
hanisami opened this issue Dec 2, 2018 · 1 comment
Open

OpenNet Installation #127

hanisami opened this issue Dec 2, 2018 · 1 comment

Comments

@hanisami
Copy link

hanisami commented Dec 2, 2018

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants