Closed inadquatecoding closed 1 year ago
I have resolved this issue, for reference I am using Python 3.10.7, on Ubuntu.
The problem here was that the pox installation directory wasn't added to my PYTHONPATH. What you need to do is
Figure out where your python installation looks for site packages if not obvious.
python -m site --user-site
Go to the site packages directory (yours might be different)
cd /home/user.local/lib/python3.10/site-packages
Create a .pth file here and add your pox directory. This does it in one line.
echo "/home/user/Downloads/pox" > pox.pth
This resolves the problem of missing libraries.
Previous issue was #262
I'm trying to modify the L2_learning script, and re-implement a portion of L2_learning myself using Pox.
"When controler sees a packet with destination address Y, source address X and source port P, controller will lean that a packet from address X arrived at port P, then if a packet arrives with destination X, it will be sent through port P."
I digress, when I try opening the example L2_learning script in Visual studio code, the IDE does not see the libraries being imported.
I have ran
and both result in
However Pylance is not seeing the packages existing, even after a machine restart. Is there something I've missed in getting these libraries? I have pox installed.