Reputation: 39
I have problem opening miniedit file, it was working for me two days ago and I have no idea what change I have made it is not waorking today. Here is my command:
➜ examples git:(master) python3 miniedit.py
But I get StrictVersion error in mininet.util
:
Traceback (most recent call last):
File "/home/pooya/mininet/examples/miniedit.py", line 28, in <module>
from mininet.util import (netParse, ipAdd, quietRun,
ImportError: cannot import name 'StrictVersion' from 'mininet.util' (/usr/lib/python3/dist-packages/mininet/util.py)
I already update and upgrade. Plus I tried
sudo apt-get install python3-tk
and remove and re-install mininet but seeing same result each and every time.
Upvotes: 0
Views: 1692
Reputation: 1
You can check the original source code of miniedit.py on https://github.com/mininet/mininet/blob/master/examples/miniedit.py . See the line 28 where there is an import from mininet.util which contains a StrictVersion parameter. Our error is being generated due to this. Thus, navigate to the mininet directory where miniedit.py file is located. Open it using a text editor like gedit and remove the parameter of StrictVersion. If it is explicitly mentioned in the file for import StrictVersion, remove that also. Try to run miniedit.py using python command and it might remove the issue. It worked for me!
Upvotes: 0