intrig-unicamp / mininet-wifi

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

Matplotlib issue #440

Closed Rahi63 closed 1 year ago

Rahi63 commented 2 years ago

Hello, I am new to SDN and Mininet. Could you please guide me on how to solve this problem? Thank you

sudo mn --wifi [sudo] password for lab1:

Bad key "lines.markeredgecolor" on line 12 in /usr/share/matplotlib/mpl-data/stylelib/classic.mplstyle. You probably need to get an updated matplotlibrc file from http://github.com/matplotlib/matplotlib/blob/master/matplotlibrc.template or from the matplotlib source distribution

Bad key "lines.markerfacecolor" on line 11 in /usr/share/matplotlib/mpl-data/stylelib/classic.mplstyle. You probably need to get an updated matplotlibrc file from http://github.com/matplotlib/matplotlib/blob/master/matplotlibrc.template or from the matplotlib source distribution Adding stations: sta1 sta2 sta3 sta4 Adding access points: ap1 ap2 ap3 ap4 *** Configuring wifi nodes... Warning! If you already had Mininet-WiFi installed please run util/install.sh -W and then sudo make install. Warning! Error when loading mac80211_hwsim. Please run sudo 'mn -c' before running your code. Further information available at /tmp/mn-wifi-mac80211_hwsim.log.

ramonfontes commented 2 years ago

This is not a mac80211_hwsim issue. One of the messages say:

You probably need to get an updated matplotlibrc file from
[http://github.com/matplotlib/matplotlib/blob/master/matplotlibrc.template](https://github.com/matplotlib/matplotlib/blob/master/matplotlibrc.template)
or from the matplotlib source distribution

What should you do??

Rahi63 commented 2 years ago

Thank you for your response. I executed this command first: sudo apt-get install linux-image-extra-uname -r

but I got an error:

sudo apt-get install linux-image-extra-$(uname -r) Reading package lists... Done Building dependency tree
Reading state information... Done E: Unable to locate package linux-image-extra-5.13.0-41-generic E: Couldn't find any package by glob 'linux-image-extra-5.13.0-41-generic' E: Couldn't find any package by regex 'linux-image-extra-5.13.0-41-generic'

and then, according to another topic (error in loading mac80211_hwsim #169), I applied the commends, but the problem was not solved.

ramonfontes commented 2 years ago

Did you solve the problem with matplotlib??

Rahi63 commented 2 years ago

Not yet. I don't know how should I update matplotlibrc file because the link that you sent me doesn't work.

ramonfontes commented 2 years ago

Pardon, which link I sent to you? Wasn't it issued by your system??

Rahi63 commented 2 years ago

I updated matplotlibrc file but I got an error when I ran my topology:

Warning! If you already had Mininet-WiFi installed please run util/install.sh -W and then sudo make install. Warning! Error when loading mac80211_hwsim. Please run sudo 'mn -c' before running your code. Further information available at /tmp/mn-wifi-mac80211_hwsim.log.

ramonfontes commented 2 years ago

What is the result for sudo modprobe mac80211_hwsim?

Rahi63 commented 2 years ago

nothing. lab1@ubuntu:~$ sudo modprobe mac80211_hwsim lab1@ubuntu:~$

after that when I run: sudo mn --wifi I get the same error arning! Error when loading mac80211_hwsim. Please run sudo 'mn -c' before running your code

ramonfontes commented 2 years ago

Please copy here the outcome for sudo mn --wifi -v debug

Rahi63 commented 2 years ago

lab1@ubuntu:~$ sudo mn --wifi -v debug

Bad key "lines.markeredgecolor" on line 12 in /usr/share/matplotlib/mpl-data/stylelib/classic.mplstyle. You probably need to get an updated matplotlibrc file from http://github.com/matplotlib/matplotlib/blob/master/matplotlibrc.template or from the matplotlib source distribution

Bad key "lines.markerfacecolor" on line 11 in /usr/share/matplotlib/mpl-data/stylelib/classic.mplstyle. You probably need to get an updated matplotlibrc file from http://github.com/matplotlib/matplotlib/blob/master/matplotlibrc.template or from the matplotlib source distribution errRun: ['which', 'controller'] /usr/local/bin/controller 0 errRun: ['grep', '-c', 'processor', '/proc/cpuinfo'] 4 0 Setting resource limits Adding stations: errRun: ['which', 'mnexec'] /usr/bin/mnexec 0 errRun: ['which', 'ip', 'addr'] /usr/sbin/ip 1_popen ['mnexec', '-cdn', 'env', 'PS1=\x7f', 'bash', '--norc', '--noediting', '-is', 'mininet:sta1'] 47986 sta1 : ('unset HISTFILE; stty -echo; set +m',) unset HISTFILE; stty -echo; set +m sta1 _popen ['mnexec', '-cdn', 'env', 'PS1=\x7f', 'bash', '--norc', '--noediting', '-is', 'mininet:sta2'] 47988 sta2 : ('unset HISTFILE; stty -echo; set +m',) unset HISTFILE; stty -echo; set +m sta2 Adding access points: errRun: ['which', 'ovs-vsctl'] /usr/bin/ovs-vsctl 0 errRun: ['ovs-vsctl', '-t', '1', 'show'] 7c54e88d-6551-455c-b4fd-920b7675e79c ovs_version: "2.13.5" 0 errRun: ['ovs-vsctl', '--version'] ovs-vsctl (Open vSwitch) 2.13.5 DB Schema 8.2.0 0_popen ['mnexec', '-cd', 'env', 'PS1=\x7f', 'bash', '--norc', '--noediting', '-is', 'mininet:ap1'] 47993*** ap1 : ('unset HISTFILE; stty -echo; set +m',) unset HISTFILE; stty -echo; set +m

added intf lo (0) to node ap1 ap1 : ('ifconfig', 'lo', 'up') ap1 Configuring wifi nodes... Loading 3 virtual wifi interfaces Warning! If you already had Mininet-WiFi installed please run util/install.sh -W and then sudo make install. Warning! Error when loading mac80211_hwsim. Please run sudo 'mn -c' before running your code. Further information available at /tmp/mn-wifi-mac80211_hwsim.log.

ramonfontes commented 2 years ago

Please fix the error with matplotlib

Rahi63 commented 2 years ago

first: I installed successfully following files: pip install matplotlib==2.1.0

then: sudo pip install matplotlib sudo pip install numpy sudo pip install scipy

but I got an error again.

I tried everything I knew and you said, could you please guide me on how I should update matplotlib?