intrig-unicamp / mininet-wifi

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

Mininet modules not found running project in Pycharm #411

Closed andredemori closed 2 years ago

andredemori commented 2 years ago

I'm trying to execute a project in PyCharm which does an import of mn_wifi modules, but it is not found. Looks like it hasn't been installed correctly.

from mininet.node import Controller # found
from mn_wifi.link import adhoc # not found
from mn_wifi.net import Mininet_wifi # not found
from mininet.log import info # found

I'm using python 3.8.2, so i installed PyCharm to running a project that uses Mininet-wifi.

Any suggestion about how to find these modules? It seems it's not installed, but I followed all the instructions..

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

In terminal, when I run mn it works

sudo mn --wifi

Adding stations: sta1 sta2 Adding access points: ........

I tried to run it in VM available in githib and this worked, but looks like the installation steps is not updated... I'm using Ubuntu 20.04.

andredemori commented 2 years ago

I'm trying to execute a project in PyCharm which does an import of mn_wifi modules, but it is not found. Looks like it hasn't been installed correctly.

from mininet.node import Controller # found
from mn_wifi.link import adhoc # not found
from mn_wifi.net import Mininet_wifi # not found
from mininet.log import info # found

I'm using python 3.8.2, so i installed PyCharm to running a project that uses Mininet-wifi.

Any suggestion about how to find these modules? It seems it's not installed, but I followed all the instructions..

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

In terminal, when I run mn it works

sudo mn --wifi

Adding stations: sta1 sta2 Adding access points: ........

I tried to run it in VM available in githib and this worked, but looks like the installation steps is not updated... I'm using Ubuntu 20.04.