intrig-unicamp / mininet-wifi

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

mn: error: no such option: --wifi #183

Closed arifadhan17 closed 6 years ago

arifadhan17 commented 6 years ago

Hello

I got some issues when i try to make a topology. Can someone help me? Please.

sudo mn --wifi --topo single,3 Usage: mn [options] (type mn -h for details)

mn: error: no such option: --wifi

ramonfontes commented 6 years ago

Dear,

Did you install mininet-wifi?

arifadhan17 commented 6 years ago

Yes sir, and i have fix that issues yesterday. So, i got new issues. In your videos in this link https://www.youtube.com/watch?v=vAdtw1546oo the controller have QoS menu in VND. But, I dont get it in my VND that i have install from your github. Can you help me ?

On Sat, Jul 28, 2018 at 4:45 PM, Ramon Fontes notifications@github.com wrote:

Dear,

Did you install mininet-wifi?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/183#issuecomment-408595809, or mute the thread https://github.com/notifications/unsubscribe-auth/AOishswv3ZVhquZ5SLwBRGnzK3ZMBU9Qks5uLDKvgaJpZM4Vk9D1 .

ramonfontes commented 6 years ago

I removed that from VND. Use OF controller instead. Btw, please consider to use the VND repository for questions about VND.

arifadhan17 commented 6 years ago

Oke sir, thank you. Next time if I will ask VND un the repository

On Wed, Aug 1, 2018, 4:58 PM Ramon Fontes notifications@github.com wrote:

I removed that from VND. Use OF controller instead. Btw, please consider to use the VND repository for questions about VND.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/intrig-unicamp/mininet-wifi/issues/183#issuecomment-409521497, or mute the thread https://github.com/notifications/unsubscribe-auth/AOishpFWR7h5PamhfltMVA1FoslIHXNZks5uMXvigaJpZM4Vk9D1 .

shrutimunde commented 4 years ago

mn: error: no such option: --wifi i am getting this error ..i tried to reinstall mininet-wifi but getting the same error

zilmarij commented 3 years ago

Hello

I got some issues when i try to make a topology. Can someone help me? Please.

sudo mn --wifi --topo single,3 Usage: mn [options] (type mn -h for details)

mn: error: no such option: --wifi

Hi,

I am getting the same error as you did. How did you get around this?

Regards, Zilmarij Iqbal

ramonfontes commented 3 years ago

The error means that you haven't installed Mininet-WiFi.

wudamu-76 commented 3 years ago

dear friend, can you help me? I am getting same error too. here is how I download it. thank you for you tell me!

git clone #https://github.com/intrig-unicamp/mininet-wifi cd mininet-wifi sudo util/install.sh -Wlnfv

EngHassanJ commented 2 years ago

i got this problem and try many solution doesn't work

Cannot fetch index base URL https://pypi.python.org/simple/ Could not find any downloads that satisfy the requirement matplotlib==2.1.1 Cleaning up... No distributions at all found for matplotlib==2.1.1 Storing debug log for failure in /root/.pip/pip.log

ramonfontes commented 2 years ago

Could you please tell us which "many solutions" did you try?

EngHassanJ commented 2 years ago

Could you please tell us which "many solutions" did you try?

install python and also pip install noise and other solution people published

can you please tell me what is the main cause of this issue ?

ramonfontes commented 2 years ago

Which pip version do you have?

EngHassanJ commented 2 years ago

~# pip --versio pip 1.5.4 from /usr/lib/python2.7/dist-packages (python 2.7)

ramonfontes commented 2 years ago

~# pip --versio pip 1.5.4 from /usr/lib/python2.7/dist-packages (python 2.7)

What?? 1.5.4 from 2014?? 21.3 is the most recent version of PIP. :(

EngHassanJ commented 2 years ago

ops?? i have been upgrade

but the following problem show : /mininet-wifi# mn --wifi Usage: mn [options] (type mn -h for details)

mn: error: no such option: --wifi

ramonfontes commented 2 years ago

Have you completed the installation of mn-wifi? I don't think so...

QQ6699 commented 2 years ago

Hello

I got some issues when i try to make a topology. Can someone help me? Please.

sudo mn --wifi --topo single,3 Usage: mn [options] (type mn -h for details)

mn: error: no such option: --wifi

Hello, I have met the same problem.Could you tell me how to solve it?I have installed mininet in my ubuntu 20.4, could I install mininet and mininet wifi in the same system?Thank you very much!

ramonfontes commented 2 years ago

If you have Mininet-WiFi you also have Mininet. However, if you install Mininet-WiFi and then Mininet, you won't have Mininet-WiFi.

QQ6699 commented 2 years ago

If you have Mininet-WiFi you also have Mininet. However, if you install Mininet-WiFi and then Mininet, you won't have Mininet-WiFi.

I installed mininet last month, today I tried to install mininet wifi, then after I installed it, I met this issue: mn: error: no such option: --wifi

ramonfontes commented 2 years ago

If you haven't overwritten it by Mininet this means that you haven't installed Mininet-WiFi successfully. Please make sure you have installed it successfully.

QQ6699 commented 2 years ago

But I used a new ubuntu system(20.4) which does not have mininet and mininet-wifi. After I installed mininet-wifi, sudo mn can work but sudo mn --wifi has the same mistake, it showed mn does not have such an option for wifi.

ramonfontes commented 2 years ago

After I installed mininet-wifi, sudo mn can work but sudo mn --wifi has the same mistake, it showed mn does not have such an option for wifi.

Please make sure you have installed Mininet-WiFi successfully. If you have installed all dependencies successfully, you can also try running sudo make install from the mininet-wifi root directory.

emanueli001 commented 2 years ago

Hello,

I have the same problem and I have Mininet-Wifi installed:

emanuel@emanuel-VirtualBox:~/Desktop/mininet-wifi$ sudo mn --wifi Usage: mn [options] (type mn -h for details)

mn: error: no such option: --wifi

ramonfontes commented 2 years ago

I have the same problem and I have Mininet-Wifi installed

I'm sure you don't have Mininet-Wifi installed. Or you installed mininet after installing Mininet-Wifi. You cannot have 2 /bin/mn.

emanueli001 commented 2 years ago

I have the same problem and I have Mininet-Wifi installed

I'm sure you don't have Mininet-Wifi installed. Or you installed mininet after installing Mininet-Wifi. You cannot have 2 /bin/mn.

But, if you see, I tried to execute the code from the mininet-wifi folder where I have installed it:

step 1: $ sudo apt-get install git step 2: $ git clone https://github.com/intrig-unicamp/mininet-wifi step 3: $ cd mininet-wifi step 4: $ sudo util/install.sh -Wlnfv

Everything is installed except for: Reading state information... Done Package python-matplotlib is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

E: Package 'python-matplotlib' has no installation candidate.

The other files are all done.

What can I do?

ramonfontes commented 2 years ago

But, if you see, I tried to execute the code from the mininet-wifi folder where I have installed it:

Sorry, I don't know what did you mean.

E: Package 'python-matplotlib' has no installation candidate. The other files are all done.

This confirms what I said: you don't have mn-wifi installed. You cannot have mn-wifi installed if there is some dependency missing.

Still regarding the python-matplotlib package, this happens when you try to install a package about which APT does not have any idea. So, if you are new to Linux I suggest giving a read on how to add sources to APT.

emanueli001 commented 2 years ago

But, if you see, I tried to execute the code from the mininet-wifi folder where I have installed it:

Sorry, I don't know what did you mean.

E: Package 'python-matplotlib' has no installation candidate. The other files are all done.

This confirms what I said: you don't have mn-wifi installed. You cannot have mn-wifi installed if there is some dependency missing.

Still regarding the python-matplotlib package, this happens when you try to install a package about which APT does not have any idea. So, if you are new to Linux I suggest giving a read on how to add sources to APT.

I checked and I have already the newest version of python3, pip3 and I have already installed matplotlib

I don't now what to do, because all seems right

ramonfontes commented 2 years ago

You can have the newest version of python3 but your system is using python2, right? You are trying to install python-matplotlib and not python3-matplotlib. :(

emanueli001 commented 2 years ago

You can have the newest version of python3 but your system is using python2, right? You are trying to install python-matplotlib and not python3-matplotlib. :(

No, also the matplotlib is installed with pip3.

Can it be that one of the files has the problem?

Since I'm getting this error: Package python-matplotlib is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

E: Package 'python-matplotlib' has no installation candidate

ramonfontes commented 2 years ago

What is the result for python --version?

emanueli001 commented 2 years ago

What is the result for python --version?

Python 3.8.10

ramonfontes commented 2 years ago

Can you run sudo make install from the mn-wifi's root dir?

emanueli001 commented 2 years ago

cc -Wall -Wextra -DVERSION=\"PYTHONPATH=. python -B bin/mn --version\" mnexec.c -o mnexec Traceback (most recent call last): File "bin/mn", line 27, in from mn_wifi.net import VERSION File "./mn_wifi/net.py", line 17, in from mininet.util import (macColonHex, ipStr, ipParse, ipAdd, ImportError: cannot import name BaseString install -D mnexec /usr/bin/mnexec PYTHONPATH=. help2man -N -n "create a Mininet network." \ --no-discard-stderr "python -B bin/mn" -o mn.1 help2man -N -n "execution utility for Mininet." \ -h "-h" -v "-v" --no-discard-stderr ./mnexec -o mnexec.1 install -D -t /usr/share/man/man1 mn.1 mnexec.1 python setup.py install Traceback (most recent call last): File "setup.py", line 11, in from mn_wifi.net import VERSION File "/home/emanuel/mininet-wifi/mn_wifi/net.py", line 17, in from mininet.util import (macColonHex, ipStr, ipParse, ipAdd, ImportError: cannot import name BaseString make: *** [Makefile:59: install] Error 1

ramonfontes commented 2 years ago

Please run also sudo make install in mininet-wifi/mininet.

emanueli001 commented 2 years ago

install -D mnexec /usr/bin/mnexec install -D -t /usr/share/man/man1 mn.1 mnexec.1 python setup.py install Traceback (most recent call last): File "setup.py", line 11, in from mn_wifi.net import VERSION File "/home/emanuel/mininet-wifi/mn_wifi/net.py", line 17, in from mininet.util import (macColonHex, ipStr, ipParse, ipAdd, ImportError: cannot import name BaseString make: *** [Makefile:59: install] Error 1

ramonfontes commented 2 years ago

File "/home/emanuel/mininet-wifi/mn_wifi/net.py", line 17, in

Are you running sudo make install from mininet-wifi/mininet?? It makes no sense to have mn_wifi/net.py here

ramonfontes commented 2 years ago

emanuel@emanuel-VirtualBox:~/mininet-wifi$ sudo make install in mininet-wifi/mininet

What??? Are you running sudo make install in mininet-wifi/mininet??? Honestly, please pay attention to what you are doing. :(

Unfortunately I can't stay with you that long.

emanueli001 commented 2 years ago

Sorry, was a wrong screen :/

This is the screen: cc -Wall -Wextra -DVERSION=\"PYTHONPATH=. python -B bin/mn --version\" mnexec.c -o mnexec Traceback (most recent call last): File "bin/mn", line 27, in from mn_wifi.net import VERSION File "./mn_wifi/net.py", line 17, in from mininet.util import (macColonHex, ipStr, ipParse, ipAdd, ImportError: cannot import name BaseString install -D mnexec /usr/bin/mnexec PYTHONPATH=. help2man -N -n "create a Mininet network." \ --no-discard-stderr "python -B bin/mn" -o mn.1 help2man -N -n "execution utility for Mininet." \ -h "-h" -v "-v" --no-discard-stderr ./mnexec -o mnexec.1 install -D -t /usr/share/man/man1 mn.1 mnexec.1 python setup.py install Traceback (most recent call last): File "setup.py", line 11, in from mn_wifi.net import VERSION File "/home/emanuel/Desktop/mininet-wifi/mn_wifi/net.py", line 17, in from mininet.util import (macColonHex, ipStr, ipParse, ipAdd,

nounou23 commented 2 years ago

hi, i'm facing the same problem but in a strang way !! note: i've installed mininet in a folder called mininet then mininet wifi in a folder called mininetwifi entred in the mininetwifi folder and excuted these commands:

++++++++++++++++++++++++++++++++

hanene@hanene-HP-ProDesk-400-G4-SFF:~/MininetWiFi/mininet-wifi$ sudo mn --version
2.3.1b1

++++++++++++++++++++++++++++++++ the first time by typing>>

hanene@hanene-HP-ProDesk-400-G4-SFF:~/MininetWiFi/mininet-wifi$ sudo mn --wifi
Usage: mn [options]
(type mn -h for details)

mn: error: no such option: --wifi

+++++++++++++++++++++++++++++++ the second time by copying and pasting it gived >>

hanene@hanene-HP-ProDesk-400-G4-SFF:~/MininetWiFi/mininet-wifi$ sudo mn
--wifi
*** Creating network
*** Adding controller
*** Adding hosts:
h1 h2 
*** Adding switches:
s1 
*** Adding links:
(h1, s1) (h2, s1) 
*** Configuring hosts
h1 h2 
*** Starting controller
c0 
*** Starting 1 switches
s1 ...
*** Starting CLI:
mininet> nodes
available nodes are: 
c0 h1 h2 s1
mininet> exit
*** Stopping 1 controllers
c0 
*** Stopping 2 links
..
*** Stopping 1 switches
s1 
*** Stopping 2 hosts
h1 h2 
*** Done
completed in 472.489 seconds
--wifi : commande introuvable
++++++++++++++++++++++++++++++++

Who can tell me what is the problem pls??

ramonfontes commented 2 years ago

You cannot have two mn commands for two different applications. Mininet-WiFi inherits Mininet and it has all the features supported by Mininet. The directory you install is not relevant.

nounou23 commented 2 years ago

thank you for your fast response ,so what can i do plz to use mininet wifi for vanet aps ? should i remove mininet and reinstall mininet wifi?