{"action":"created","issue":{"url":"https://api.github.com/repos/dlinknctu/OpenNet/issues/11","labels_url":"https://api.github.com/repos/dlinknctu/OpenNet/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/dlinknctu/OpenNet/issues/11/comments","events_url":"https://api.github.com/repos/dlinknctu/OpenNet/issues/11/events","html_url":"https://github.com/dlinknctu/OpenNet/issues/11","id":54195761,"number":11,"title":"problems in wifiroaming.py example forunbound method intfName()","user":{"login":"visenchou","id":10515993,"avatar_url":"https://avatars.githubusercontent.com/u/10515993?v=3","gravatar_id":"","url":"https://api.github.com/users/visenchou","html_url":"https://github.com/visenchou","followers_url":"https://api.github.com/users/visenchou/followers","following_url":"https://api.github.com/users/visenchou/following{/other_user}","gists_url":"https://api.github.com/users/visenchou/gists{/gist_id}","starred_url":"https://api.github.com/users/visenchou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/visenchou/subscriptions","organizations_url":"https://api.github.com/users/visenchou/orgs","repos_url":"https://api.github.com/users/visenchou/repos","events_url":"https://api.github.com/users/visenchou/events{/privacy}","received_events_url":"https://api.github.com/users/visenchou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-13T13:53:03Z","updated_at":"2015-01-14T07:50:10Z","closed_at":null,"body":"Hello sir,\r\n    When I input the last instruction : sudo ./waf --pyrun ../../../mininet/examples/wifiroaming.py , It shows \r\n\r\nWaf: Entering directory `/home/zhouys/repos/ns-3-allinone/ns-3.18/build'\r\nWaf: Leaving directory `/home/zhouys/repos/ns-3-allinone/ns-3.18/build'\r\n'build' finished successfully (1.320s)\r\n\r\nModules built:\r\nantenna                   aodv                      applications             \r\nbridge                    buildings                 config-store             \r\ncore                      csma                      csma-layout              \r\ndsdv                      dsr                       emu                      \r\nenergy                    fd-net-device             flow-monitor             \r\ninternet                  lte                       mesh                     \r\nmobility                  mpi                       netanim                  \r\nnetwork                   nix-vector-routing        olsr                     \r\npoint-to-point            point-to-point-layout     propagation              \r\nspectrum                  stats                     tap-bridge               \r\ntest (no Python)          topology-read             uan                      \r\nvirtual-net-device        visualizer                wifi                     \r\nwimax                    \r\n\r\nModules not built (see ns-3 tutorial for explanation):\r\nbrite                     click                     openflow                 \r\n\r\n*** Adding controller\r\nTraceback (most recent call last):\r\n  File \"../../../mininet/examples/wifiroaming.py\", line 154, in <module>\r\n    WifiNet()\r\n  File \"../../../mininet/examples/wifiroaming.py\", line 119, in WifiNet\r\n    tb = addfunc (node, wichannel, wissid)\r\n  File \"build/bdist.linux-i686/egg/mininet/ns3.py\", line 491, in addSta\r\n    \r\n  File \"build/bdist.linux-i686/egg/mininet/ns3.py\", line 446, in add\r\n    \r\nTypeError: unbound method intfName() must be called with Link instance as first argument (got Host instance instead)\r\nCommand ['/usr/bin/python', '../../../mininet/examples/wifiroaming.py'] exited with code 1\r\n\r\nwhat is wrong with it ?\r\ncould do do me a favor ?\r\nthank you!"},"comment":{"url":"https://api.github.com/repos/dlinknctu/OpenNet/issues/comments/69880229","html_url":"https://github.com/dlinknctu/OpenNet/issues/11#issuecomment-69880229","issue_url":"https://api.github.com/repos/dlinknctu/OpenNet/issues/11","id":69880229,"user":{"login":"kansokusha","id":2024544,"avatar_url":"https://avatars.githubusercontent.com/u/2024544?v=3","gravatar_id":"","url":"https://api.github.com/users/kansokusha","html_url":"https://github.com/kansokusha","followers_url":"https://api.github.com/users/kansokusha/followers","following_url":"https://api.github.com/users/kansokusha/following{/other_user}","gists_url":"https://api.github.com/users/kansokusha/gists{/gist_id}","starred_url":"https://api.github.com/users/kansokusha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kansokusha/subscriptions","organizations_url":"https://api.github.com/users/kansokusha/orgs","repos_url":"https://api.github.com/users/kansokusha/repos","events_url":"https://api.github.com/users/kansokusha/events{/privacy}","received_events_url":"https://api.github.com/users/kansokusha/received_events","type":"User","site_admin":false},"created_at":"2015-01-14T07:50:10Z","updated_at":"2015-01-14T07:50:10Z","body":"Our wifiroaming.py example in the dev branch works on ns-3.21 and Mininet 2.2.0b3.\r\nPlease refer to the dev branch installation instruction.\r\n\r\nThere are two errors when running this script.\r\n1. Unable to contact the remote controller at 127.0.0.1:6633\r\nThis script requires a controller which is running at 127.0.0.1:6633.\r\n2. AttributeError: type object 'wifi.StaWifiMac' has no attribute 'ACTIVE'\r\nOpenNet has some features need ns-3 python API scan to make them work with ns-3."}}