[Ryu-devel] ImoprtEror

2018-05-19 Thread 张之阳
Hello everyone, I met a strange thing today. I downloaded Controller1.py and run the cmd "ryu-manager --ofp-tcp-listen-port 6633 ofctl_rest.py Controller1.py" was OK. However, after I modified the Controller.py and run the cmd"ryu-manager --ofp-tcp-listen-port 6633 ofctl_rest.py Controller1.p

[Ryu-devel] Importing classes

2018-05-19 Thread nail göksel
Hello, I'm not a python professional. I cannot import my own class file in ryu application. In main ryu application class i have simply wrote: from class1 import Class1 in class1 file: class Class1(): def __init__(self, value): some code... def increase(self): some code