intrig-unicamp / mininet-wifi

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

ImportError: cannot import name 'OVSKernelAP' from 'mininet.node' #533

Closed mfatihkoc closed 2 months ago

mfatihkoc commented 2 months ago

Screenshot from 2024-04-12 11-31-02

hi

how to fix following error?

best

ramonfontes commented 2 months ago

The error means that you haven't installed all the mn-wifi dependencies. Please make sure that you have installed mn-wifi successfully.

mfatihkoc commented 2 months ago

I follow here what else to follow the mininetwifi dependency then

https://github.com/ramonfontes/mn-wifi-ebook/blob/main/beginner.md

mfatihkoc commented 2 months ago

my mininet wifi version is 2.6

mfatihkoc commented 2 months ago

from

https://github.com/ramonfontes/reproducible-research/blob/master/mininet-wifi/IEEE-Access-2017/README.md

Screenshot from 2024-04-12 12-31-56

I am in the mininet-wifi folder and I follow above Reproducibility steps many times. cloned and deleted de to errors. are you sure this are updated?

ramonfontes commented 2 months ago

make install will only work if you have mininet-wifi installed.

ramonfontes commented 2 months ago

By the way, it seems to me that you are using python3. The code in 2017 was prepared for python2.

mfatihkoc commented 2 months ago

Python 2.7.18 dowloaded now.

ImportError: No module named matplotlib.pyplot occuring, I am not sure that I need to dowload again this modules or what to do?

you have not updated with the current versions these code scripts? are you able to run by 2024 this codes?

ramonfontes commented 2 months ago

you have not updated with the current versions these code scripts?

Why would I do that? I can't check every code I produce.

are you able to run by 2024 this codes?

Yes if I have all dependencies satisfied.

mfatihkoc commented 2 months ago

from mininet.node import Controller, OVSKernelSwitch, OVSKernelAP, Car ImportError: cannot import name 'OVSKernelAP' from 'mininet.node' (/usr/local/lib/python3.10/dist-packages/mininet/node.py)

this is regarding OVSKernelAP error Screenshot from 2024-04-12 13-43-45

so should I UPDATE the code to the python 3 way or is that posible to run with python2 but with this I see errors of modules

ramonfontes commented 2 months ago

You have to run the code as it is. However, you have to solve the issues with dependencies. There is no point in sending screenshots of missing dependencies when the error msg is already there. It already says what you should do: install matplotlib with pyplot support.

mfatihkoc commented 2 months ago

I send because my matplotlib is already running with python3 itself easly with another simple example of python where I tested with different code, however running with python2 is problematic.