[Mini-NDN] mininet error

Ashlesh Gawande (agawande) agawande at memphis.edu
Thu Oct 13 08:57:30 PDT 2016


Can you attach the output for sudo ./util/install.sh -nv?


Don't know why it cannot find mn.


Are you running as root user? May be try non-root and use sudo.


Ashlesh

________________________________
From: Sepehr Abdous <sepehrabdous at yahoo.com>
Sent: Thursday, October 13, 2016 10:41:53 AM
To: Ashlesh Gawande (agawande); Junxiao Shi
Cc: mini-ndn at lists.cs.ucla.edu
Subject: Re: [Mini-NDN] mininet error

when I write sudo mn I get the following error:
# mn
Traceback (most recent call last):
  File "/usr/local/bin/mn", line 4, in <module>
    __import__('pkg_resources').run_script('mininet===2.3.0d1', 'mn')
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 719, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1496, in run_script
    raise ResolutionError("No script named %r" % script_name)
pkg_resources.ResolutionError: No script named 'mn'

and when I write sudo minindn, I get the following:
# minindn
Parse of /usr/local/etc/mini-ndn/default-topology.conf done.
*** Creating network
*** Adding controller
*** Adding hosts:
a b c d
*** Adding switches:

*** Adding links:
Traceback (most recent call last):
  File "/usr/local/bin/minindn", line 4, in <module>
    __import__('pkg_resources').run_script('Mini-NDN==0.2.0', 'minindn')
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 719, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1504, in run_script
    exec(code, namespace, namespace)
  File "/usr/local/lib/python2.7/dist-packages/Mini_NDN-0.2.0-py2.7.egg/EGG-INFO/scripts/minindn", line 400, in <module>
    execute(options)
  File "/usr/local/lib/python2.7/dist-packages/Mini_NDN-0.2.0-py2.7.egg/EGG-INFO/scripts/minindn", line 282, in execute
    net = Mininet(topo,host=NdnHost,link=TCLink)
  File "/home/sepehr/mini-ndn/mininet/mininet/net.py", line 172, in __init__
    self.build()
  File "/home/sepehr/mini-ndn/mininet/mininet/net.py", line 500, in build
    self.buildFromTopo( self.topo )
  File "/home/sepehr/mini-ndn/mininet/mininet/net.py", line 487, in buildFromTopo
    self.addLink( **params )
  File "/home/sepehr/mini-ndn/mininet/mininet/net.py", line 398, in addLink
    link = cls( node1, node2, **options )
  File "/home/sepehr/mini-ndn/mininet/mininet/link.py", line 561, in __init__
    params2=params )
  File "/home/sepehr/mini-ndn/mininet/mininet/link.py", line 451, in __init__
    node1, node2, deleteIntfs=False )
  File "/home/sepehr/mini-ndn/mininet/mininet/link.py", line 495, in makeIntfPair
    deleteIntfs=deleteIntfs )
  File "/home/sepehr/mini-ndn/mininet/mininet/util.py", line 195, in makeIntfPair
    ( intf1, intf2, cmdOutput ) )
Exception: Error creating interface pair (a-eth0,b-eth0): RTNETLINK answers: Operation not supported


Sepehr Abdous
Faculty: abdous at ce.sharif.edu<mailto:abdous at ce.sharif.edu>
Gmail: sepehrabdous1375 at gmail.com<mailto:sepehrabdous at yahoo.com>
Cellphone:+989194030591
School of computer engineering
Sharif University of Technology
Tehran, Iran


On Thursday, October 13, 2016 6:58 PM, Ashlesh Gawande (agawande) <agawande at memphis.edu> wrote:


Can you post the complete output of the following:
sudo mn
?

Does "sudo minindn" also fail?

You are using Mininet from github source, right?
(https://github.com/mininet/mininet)

Ashlesh
________________________________
From: Sepehr Abdous <sepehrabdous at yahoo.com>
Sent: Thursday, October 13, 2016 10:22:13 AM
To: Ashlesh Gawande (agawande); Junxiao Shi
Cc: mini-ndn at lists.cs.ucla.edu
Subject: Re: [Mini-NDN] mininet error

mu ubuntu version is 16.04.1
and kernel version 4.4.23

I used steps stated in http://mininet.org/download/#option-3-installation-from-packages option 2

I used the command:
sudo ./util/install.sh -nv
and no error occured !

Sepehr Abdous
Faculty: abdous at ce.sharif.edu<mailto:abdous at ce.sharif.edu>
Gmail: sepehrabdous1375 at gmail.com<mailto:sepehrabdous at yahoo.com>
Cellphone:+989194030591
School of computer engineering
Sharif University of Technology
Tehran, Iran


On Thursday, October 13, 2016 6:18 PM, Ashlesh Gawande (agawande) <agawande at memphis.edu> wrote:


Junxiao is probably correct, can you give your operating system details?

Can you please detail the steps you followed to install Mininet?

Can you also go to the Mininet folder and try:
sudo ./util/install.sh -nv
and see if there are any errors?

Ashlesh
________________________________
From: Mini-NDN <mini-ndn-bounces at lists.cs.ucla.edu> on behalf of Junxiao Shi <shijunxiao at email.arizona.edu>
Sent: Wednesday, October 12, 2016 5:51:27 PM
To: Sepehr Abdous
Cc: mini-ndn at lists.cs.ucla.edu
Subject: Re: [Mini-NDN] mininet error

Hi Sepehr

The kernel might be missing some modules. Use Vagrant ubuntu/trusty64 template, which is known to work properly.

Yours, Junxiao

On Wed, Oct 12, 2016 at 1:29 PM, Sepehr Abdous <sepehrabdous at yahoo.com<mailto:sepehrabdous at yahoo.com>> wrote:
Hello All,
I've tried to install mini-ndn by following steps in https://github.com/named-data/ mini-ndn/blob/master/INSTALL.m d<https://github.com/named-data/mini-ndn/blob/master/INSTALL.md>
and in one aspect, it requires installing mini_net,
again I follow the exact steps stated but when I try to use
sudo mn --test pingall
to see if it works well...
I encounter this error:
Exception: Error creating interface pair (h1-eth0,s1-eth1): RTNETLINK answers: Operation not supported
do you have any idea how can I handle it?

Sepehr Abdous
Faculty: abdous at ce.sharif.edu<mailto:abdous at ce.sharif.edu>
Gmail: sepehrabdous1375 at gmail.com<mailto:sepehrabdous at yahoo.com>
Cellphone:+989194030591
School of computer engineering
Sharif University of Technology
Tehran, Iran




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/mini-ndn/attachments/20161013/6eeeb175/attachment.html>


More information about the Mini-NDN mailing list