I am trying to create my own sample component. It works fine with simple
invocation but while doing multiple invocation it gives an error.

Details are attached in the text file in the email.

-Kavit
1) Problem with multiple invocation of an component

File location : pox/ext/foo.py

File's content :

def launch(a, __INSTANCE__ = None):
    print "Hello world:"
    print a

        

Error:

mininet@mininet-vm:~/pox$ ./pox.py  foo --a=4 foo --a=5
POX 0.1.0 (betta) / Copyright 2011-2013 James McCauley, et al.
Hello world:
4
Traceback (most recent call last):
  File "/home/mininet/pox/pox/boot.py", line 459, in boot
    if _do_launch(argv):
  File "/home/mininet/pox/pox/boot.py", line 171, in _do_launch
    if launch in sys.modules[name].__dict__:
AttributeError: 'NoneType' object has no attribute '__dict__'


2) Why are we not allowed to change the permission of the file ?

Reply via email to