Visualizer problem again !!

629 views
Skip to first unread message

shashank korada

unread,
Oct 5, 2011, 7:25:17 PM10/5/11
to ns-3-users
hiiii

i have a few doubts..it would be a huge help to me if someone can help
me out..
i am using fedora 11 and working on ns3-3.11...i wanted to use the
visualizer and so downloaded the tarball pygraphviz-1.1 copied into
the ns3.11 directory and untarred it..
i tried to use ./build.py but the console showed no such file or
directory ..irrespective of this i went ahead and ran two programs..
before doing all this i checked the configuration of python on my
pc..upon giving the command "./waf configure"
it showed
pythonmodule pygcc xml :not found
mpic++ :not found
python API scanning support :not enabled
MPI support :not enabled
GSL :not enabled
(rest all were either 'enabled' or 'ok')
then i ran the two codes giving the command
1) ./waf --pyrun src/flow-monitor/examples/wifi-olsr-flowon.py --
visualize

after the usual messages on the console such as build successfull etc
i get

no visualization support (no module named pygraph viz) //this line
was repeated several times
Traceback (most recent call last)
File "<string>" line2,in <module>
Fie "/home/cpu56/ns-allinone/ns-3.11/src/visualizer/visualizer/
core.py" line 1474,in start import sys
Runtime error:maximum recursion depth exceeded while calling a object

2) mesh.cc ..i changed the wscript(src/mesh/examples) and added
'visualizer' to it
and then ran the program
./waf --run "src/mesh/examples/mesh --x-size=2 --y-size=2 --step=100 --
start=0 --time=1 --packet-interval=1 --packet-size=1024 --
interfaces=1" --visualize

(have set the parameters such that only 1 packet is
transferred ..actually wanted to see the route the packet takes)

i get the following on the console

Waf: Entering directory `/home/cpu56/ns-allinone-3.11/ns-3.11/build'
Waf: Leaving directory `/home/cpu56/ns-allinone-3.11/ns-3.11/build'
'build' finished successfully (2.465s)

Modules built:
aodv applications bridge
click config-store core
csma csma-layout dsdv
emu energy flow-monitor
internet lte mesh
mobility mpi netanim
network nix-vector-routing ns3tcp
ns3wifi olsr openflow
point-to-point point-to-point-layout propagation
spectrum stats tap-bridge
template test tools
topology-read uan virtual-net-device
visualizer wifi wimax


assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName:
ns3::VisualSimulatorImpl not found", file=../src/core/model/type-
id.cc, line=443
Command ['/home/cpu56/ns-allinone-3.11/ns-3.11/build/debug/src/mesh/
examples/mesh', '--x-size=2', '--y-size=2', '--step=100', '--start=0',
'--time=1', '--packet-interval=1', '--packet-size=1024', '--
interfaces=1', '--pcap=1', '--
SimulatorImplementationType=ns3::VisualSimulatorImpl'] terminated with
signal SIGSEGV. Run it under a debugger to get more information (./waf
--run <program> --command-template="gdb --args %s <args>"). """"


The last few lines is a new error i am encountering after having
downloaded pygraphviz-1.1 ,so after dis i thought probably i have to
merge pyviz and ns3..and so i used "hg pull -u ../ns-3-pyviz-1.1" but
i got "hg:no such command" so i realized i dont have mercurial
i tried installing mercurial after downloading the .rpm file but all i
get after i enter the command "rpm -ivf
mercurial-1.5.4.1.fc11.src.rpm" are some warnings..
someone told me that fc11 is in old archive and some changes have to
be made..
can someone please tell me how do i get to install the visualizer and
run it..what version of pyvizgraph should i be using ?? and what about
the mercurial??
sorry for the lengthy post but i didnt want to sound vague..
it would be of great help if you guys can guide me ..

Regards,
Shashank

Mitch Watrous

unread,
Oct 6, 2011, 3:08:22 PM10/6/11
to ns-3-users
Have you read the PyViz wiki:

http://www.nsnam.org/wiki/index.php/PyViz

I think need you need to install the Python modules listed there:

sudo apt-get install python-dev python-pygraphviz python-kiwi
python-pygoocanvas python-gnome2 python-gnomedesktop python-rsvg

Just do yum rather than apt-get on your machine, i.e.

sudo yum install python-dev python-pygraphviz python-kiwi python-
pygoocanvas python-gnome2 python-gnomedesktop python-rsvg

Mitch

Dongsheng

unread,
Oct 13, 2011, 3:00:50 PM10/13/11
to ns-3-users
I use Fedora and I installed all the modules but still had problem
with Visualizer. When I tried to run the sample, it says No
visualization support (No module named pygraphviz).
Command ['/usr/bin/python', 'src/flow-monitor/examples/wifi-olsr-
flowmon.py', '--SimulatorImplementationType=ns3::VisualSimulatorImpl']
terminated with signal SIGSEGV. Run it under a debugger to get more
information (./waf --run <program> --command-template="gdb --args %s
<args>").
Anyone use Fedora ran across this problem?

Thanks
Dongsheng
Reply all
Reply to author
Forward
0 new messages