Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matplotlib incompatible versions #510

Open
prximenes opened this issue Oct 23, 2023 · 2 comments
Open

Matplotlib incompatible versions #510

prximenes opened this issue Oct 23, 2023 · 2 comments

Comments

@prximenes
Copy link

prximenes commented Oct 23, 2023

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.

@fpoltronieri
Copy link

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?

@JVMergulho
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants