intrig-unicamp / mininet-wifi

Emulator for Software-Defined Wireless Networks
https://mn-wifi.readthedocs.io/
Other
446 stars 241 forks source link

Battery.py error #464

Closed wassim-ba closed 1 year ago

wassim-ba commented 1 year ago

Hello !

I got an error concerning the example energy topology.

*** Creating nodes *** Configuring nodes Traceback (most recent call last): File "battery.py", line 37, in <module> topology() File "battery.py", line 23, in topology net.configureNodes() AttributeError: 'Mininet_wifi' object has no attribute 'configureNodes'

My Mininet WiFi is well installed, and the energy.py script seems to be execute.

Thanks

wassim-ba commented 1 year ago

I found the error, I just changed the method to "net.configureWifiNodes()" because my VM is not up to date. However, I always have an error on the execution of the sensor1.wintfs[0].consumption command which is not recognized.

ramonfontes commented 1 year ago

git pull and sudo make install fix the issue.