intrig-unicamp/mininet-wifi

Matplotlib incompatible versions

prximenes opened this issue · 2 comments

Hello, I have a problem using the library with the latest versions of matplotlib. In matplotlib version 3.7.2 (https://github.com/matplotlib/matplotlib/releases/tag/v3.7.2), the following support has been removed:

"Remove some NumPy function overrides from pylab"

In the "mn_wifi/vanet.py" file, some functions are imported as follows, which is no longer supported:

from pylab import ginput as ginp, math, cos, sin, np

I'll try to solve it by downgrading matplotlib to version 3.7.1, but anyone who installs via apt cannot install an outdated version.

Hi, I found the same issue. I modified the Dockerfile to install matplotlib 3.7.1 but the error persist. Do you have any idea how to proceed? Should I downgrade numpy as well?

Hi, I found the same issue. I modified the Dockerfile to install matplotlib 3.7.1 but the error persist. Do you have any idea how to proceed? Should I downgrade numpy as well?

Hello, I solved this issue by modifying the way that "math" was imported in the "mn_wifi/vanet.py" and "mn_wifi/replaying.py" files. I just deleted "from pylab import math" and added "import math" in both files and now it seems to be working correctly with the latest version of matplotlib.

I forked the mininet-wifi and made these changes here: mininet-wifi modified