Open SifatTaj opened 5 years ago
I have the same question too! Hope someone can give a help!
It seems that there are problems in current version of ns-3-dev.
in line 51 of ns-3-dev/src/visualizer/visualizer/core.py
from . import hud
in line 2 of ns-3-dev/src/visualizer/visualizer/hud.py
from . import core
They import each other, which causes infinite loops.
You need to build the former version which does not apply the latest commit. The commands are below.
git clone https://github.com/named-data-ndnSIM/ns-3-dev.git ns-3
cd ns-3
git log -n2
git reset --hard <the second commit hash>
cd ..
git clone --recursive https://github.com/named-data-ndnSIM/ndnSIM.git ns-3/src/ndnSIM
Then probably no errors will be reported.
@jo4965 Thanks for your reply! I had solved this problem! I replaced the whole "visualizer" folder with another "visualizer' folder which are from the "ns-3 allinone" library!
However, I found other problem as well. It was about the visualization label position. I copied some codes from
visualizer/core.py 1365-1368 if angle < -PI_OVER_2: angle += math.pi else: angle -= math.pi
I totally solved this problem! Thanks a lot!
Derek
@LAIMX I'm glad you already solved it. The problematic current version was committed 2 months ago. The "ns-3 allinone" library may have older version of ns-3-dev than the current one, so it works well.
I am running Linux ubuntu 4.15.0-52-generic #56~16.04.1-Ubuntu SMP Thu Jun 6 12:03:31 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
CONFIGURATION >> https://pastebin.com/jd2PwQMp BUILT >> https://pastebin.com/WdYYXfVH
Previously, my visualiser cannot works and cannot be installed but I managed to setup and built successfully based on
git clone https://github.com/named-data-ndnSIM/ns-3-dev.git ns-3 cd ns-3 git log -n2 git reset --hard
cd .. git clone --recursive https://github.com/named-data-ndnSIM/ndnSIM.git ns-3/src/ndnSIM
Then, I had enabled the examples in configuration and can compile successfully. But i got this error when I run the simple ndn simulation with visualiser (./waf --run=ndn-simple --vis)
Waf: Entering directory /home/lrtndn/Desktop/ndnSIM_working/ns-3/build' Waf: Leaving directory
/home/lrtndn/Desktop/ndnSIM_working/ns-3/build'
Build commands will be stored in build/compile_commands.json
'build' finished successfully (14.574s)
Could not load plugin 'show_last_packets.py': could not import gobject (could not find _PyGObject_API object)
Could not load icon applets-screenshooter due to missing gnomedesktop Python module
Traceback (most recent call last):
File "
When I am trying to run an example with
--vis
I get the following errorMy build
My configuration