named-data / mini-ndn

Mininet-based NDN emulator (mailing list: http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn)
https://minindn.memphis.edu
GNU General Public License v3.0
72 stars 41 forks source link

modulenotfound error for mininet.log, mininet.wifi and other modules #61

Closed sachintiptur closed 1 year ago

sachintiptur commented 3 years ago

Hi All,

I am installing mini-ndn on a VM with ubuntu 18.04 following all the instructions on the wiki. But i am seeing below error after installing and executing mini-ndn examples:

sudo python examples/nlsr/pingall.py Traceback (most recent call last): File "examples/nlsr/pingall.py", line 26, in from mininet.log import setLogLevel ImportError: No module named mininet.log

Can you please let me know if I am missing any configurations or steps.

Thanks, Sachin

dulalsaurab commented 3 years ago

Probably mininet is not installed in your system. Can you please verify that? you can try sudo mn or run any of the examples inside mininet/examples directory.

sachintiptur commented 3 years ago

I have installed and pingall worked fine.

/home/ndn/mininet ndn@ndn:~/mininet$ sudo mn Creating network Adding controller Adding hosts: h1 h2 Adding switches: s1 Adding links: (h1, s1) (h2, s1) Configuring hosts h1 h2 Starting controller c0 Starting 1 switches s1 ... *** Starting CLI: mininet>

dulalsaurab commented 3 years ago

Can you check if your default python is python2 or python3? If it's python2, try executing the examples using python3 -- sudo python3 examples/mnndn.py. I had this problem earlier.

sachintiptur commented 3 years ago

I tried both versions, still same issue. How can i uninstall and re/install again?

Also is it possible to run ndn-traffic-generator tools on mini-ndn nodes to generate bulk traffic?